Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TeaWhen/coding-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

TeaWhen Coding Style

Commit Log

Complete

Use sentence case. If the commit is issue related, add a prefix "[Verb #ID] " (don’t forget the trailing space). Available verbs are Fix, Close, and On (Fix and Close will close the issue).

For example:

[Fix #3] Migrated to AFNetworking 2.0
[On #2] Trying TEAChart

But not:

migrated to afn 2.0
trying TEAChart

Explicit

Use explicit description.

For example:

Fixed table view cell text overflow

But not:

bug fix

Objective-C Style

Follow NYTimes Style Guide.

Except that we write method implementation’s beginning bracket in a single line, as:

- (IBAction)dateChanged:(UIDatePicker *)sender
{
 self.dateField.text = [sender.date dateString];
}

One thing to emphasize, DO NOT use any abbreviations unless they are very common. Long variable names are not bad.

About

TeaWhen Coding Style

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /