rubymotion-style-guide
rubymotion-style-guide copied to clipboard
snake_case v. camelCase
snake_case
- Standard Ruby
- Already in use in a lot of gems
- Differentiation is nice when using iOS APIs (can clearly tell what is Ruby/iOS)
camelCase
- Standard iOS style
- Always present in some form, whether it's controllers or CocoaPods
- Unifies iOS/RubyMotion code, preventing style from changing mid-method
FIGHT :beers:
HEY! https://github.com/kemiller/rubymotion-style-guide/issues/2
Actually, yours has a better description.
snake_case, but really confusing when mixing up with iOS frameworks or CocoaPods libs. Shouldn't RubyMotion allow us to decide? i.e. providing us with tableView(tableView, cellForRowAtIndexPath: indexPath) as well as table_view(table_view, cell_for_row_at_index_path: index_path). It's less Googleable though...
@ivdma just use https://github.com/jamonholmgren/viper.
:laughing: