{"action":"created","issue":{"url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/51","repository_url":"https://api.github.com/repos/SolarTherm/SolarTherm","labels_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/51/comments","events_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/51/events","html_url":"https://github.com/SolarTherm/SolarTherm/issues/51","id":141742306,"number":51,"title":"Coding style guide","user":{"login":"paul-scott","id":6166217,"avatar_url":"https://avatars.githubusercontent.com/u/6166217?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-scott","html_url":"https://github.com/paul-scott","followers_url":"https://api.github.com/users/paul-scott/followers","following_url":"https://api.github.com/users/paul-scott/following{/other_user}","gists_url":"https://api.github.com/users/paul-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-scott/subscriptions","organizations_url":"https://api.github.com/users/paul-scott/orgs","repos_url":"https://api.github.com/users/paul-scott/repos","events_url":"https://api.github.com/users/paul-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paul-scott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-18T00:27:54Z","updated_at":"2016-03-18T02:11:52Z","closed_at":null,"body":"Another thing we should consider doing is developing a coding style, in terms of how to name variables and the like.  So far I have been somewhat inconsistent, but so are the standard libraries.  For example, when to use camelCase vs underscore separation and the like."},"comment":{"url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/comments/198164855","html_url":"https://github.com/SolarTherm/SolarTherm/issues/51#issuecomment-198164855","issue_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/51","id":198164855,"user":{"login":"paul-scott","id":6166217,"avatar_url":"https://avatars.githubusercontent.com/u/6166217?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-scott","html_url":"https://github.com/paul-scott","followers_url":"https://api.github.com/users/paul-scott/followers","following_url":"https://api.github.com/users/paul-scott/following{/other_user}","gists_url":"https://api.github.com/users/paul-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-scott/subscriptions","organizations_url":"https://api.github.com/users/paul-scott/orgs","repos_url":"https://api.github.com/users/paul-scott/repos","events_url":"https://api.github.com/users/paul-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paul-scott/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T02:11:52Z","updated_at":"2016-03-18T02:11:52Z","body":"My preference would be (which is similar to typical C++ conventions):\r\n\r\n- Classes/models/packages: CamelCase\r\n  - GenericSystem, SolarTherm\r\n- Functions: camelCase (maybe, or maybe just _ separated all lower case)\r\n  - checkVersion, getMetadata\r\n- Variables/parameters:  _ separated with uppercase used if it is a standard physical symbol\r\n  - Q_flow (heat flow), p_start (starting pressure), A_cross (cross sectional area), P_nom (nominal power)\r\n- Constants: _ separated all upercase (or maybe just same as variables/parameters)\r\n  - PI, CONSTANT_NUMBER\r\n\r\nThat said, I won't be working on the project much longer so let me know if you have issue with this.  Also John?"}}