Re:Massgate – The central server for the game World in Conflict
by ApostleMatthew on Thursday December 21, 2017 @08:43PM
(#15984637)
I'm relatively new to C++, is this style common? I refer to, for example, putting the return of function on a separate line from the name and each of the passed parameters on a separate line as well.
[ Parent
| on HN ]
Re:Massgate – The central server for the game World in Conflict
by perfmode on Thursday December 21, 2017 @09:10PM
(#15984737)
For C++, I subscribe to Google style. It addresses this.
https://google.github.io/styleguide/cppguide.html#Function_D...
Re:Massgate – The central server for the game World in Conflict
by cyberpunk0 on Thursday December 21, 2017 @09:33PM
(#15984828)
Geez how does anyone remember all of that...
Re:Massgate – The central server for the game World in Conflict
by ZeroCool2u on Thursday December 21, 2017 @09:49PM
(#15984884)
Your linter remembers for you.
Re:Massgate – The central server for the game World in Conflict
by CobrastanJorji on Friday December 22, 2017 @02:08AM
(#15985769)
Indeed, the very best kind of coding convention is the automated and enforced kind. Prevents a lot of arguing, leaving more time to argue about the code's actual contents.