Jump to content

View more

Image of the Day

I've done more tweaks to my color palette selector. #gamedev #screenshotsaturday #madewithunity https://t.co/aJXrC4ruRg
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

My OLD Syntax

4: Adsense
  • You cannot reply to this topic
83 replies to this topic

#81 Sik_the_hedgehog   Members   


Posted 15 September 2013 - 07:58 AM

Reading the comments there reminds me of people who said that if you aren't using camel case you're actively boycotting other programmers by making identifiers less readable... I actually find all lowercase to be more readable than camel case (although if you use all lowercase then you must use underscores, otherwise yes, it's an unreadable mess).


Which reminds me, with my current style things go like this:

  • Identifiers: lowercase
  • Custom types: camel case
  • Constants: uppercase

How would it be with camel case for identifiers? Like this? (going by the Windows API, which does exactly this)

  • Identifiers: camel case
  • Custom types: uppercase
  • Constants: uppercase

Yeah, not hard to see the issue there, constants and types look the same under that convention. Sure, somebody will argue that smart syntax highlighting should take care of that, but you don't always have that available, and you shouldn't rely on it being available either, especially if you're going to be sharing the code (and you should program like you will!).

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

#82 skarab   Members   


Posted 15 September 2013 - 08:50 AM

Using python syntax on C++ project is a nice thing to experience, specially to get cool state machines.

We need to add --ignore--brackets option to GCC, enabled on default settings in the next release (as usual).

#83 Techkid   Members   


Posted 15 October 2013 - 06:56 PM

Well when I'm too lazy to make my code look nice I just press CTRL + SHIFT + F in eclipse and it automatically formats my code. Try it if you use eclipse I.D.E.

#84 mhagain   Members   


Posted 07 November 2013 - 03:41 PM

Checking the OP's profile, and re-reading the post itself, it seems at least possible that he just came to troll or incite a flamewar over brace style.  It's quite a credit to this community that it didn't happen.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.