monterail/guidelines — pull request #193 by teamon (2014-07-05 18:39:26+00:00)
Title: Javascript naming

How do you deal with the naming in Javascript?
Do you use underscore as in Rails or camelCase as the Javascript prefer?

I tried to use in my latest Angular app to use JS convention and have some naming mismatch. Example

```
$scope.accountGroups = []

SharedWith.fetch().then (response) ->
$scope.sharedWith = response.data
# but in reponse data I get the Array and each object has account_group method :(
```

Maybe variable write using underscore convention but functions in camelcase

So I would have

```
$scope.my_nasty_var = 'Some secret text'

$scope.myAwesomeFunction = (no_camel_case) ->
console.log 'Fuuuuuu'
```