News for hackers. Stuff that matters.
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.
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.
Re:Massgate – The central server for the game World in Conflict by perfmode on Thursday December 21, 2017 @11:41PM (#15985328)
That’s a core challenge of writing code in a language as large and complicated and dangerous and rewarding as cpp.
Re:Massgate – The central server for the game World in Conflict by jdright on Thursday December 21, 2017 @10:29PM (#15985060)
There is no common style in C or C++. This is a free for all area, even with clang format.