• Advertisement
Sign in to follow this  

Use const!

This topic is 2445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Heil const! Der mächtige versprechen speer!
I can recommend writing code which traps the coder in a mistype or misinterpretation. Big fan. :D

Share this post


Link to post
Share on other sites
I once saw code like this:

const int Zero = 0;
const int One = 1;
const int Two = 2;
const int Three = 3;
// ... etc


It continued up to 20.Terrifying.

Share this post


Link to post
Share on other sites

I once saw code like this:

const int Zero = 0;
const int One = 1;
const int Two = 2;
const int Three = 3;
// ... etc


It continued up to 20.Terrifying.

:D oh noo it keeps going! Argh. :'D

How would that ever be neccesary, I wonder? Was it from an example in class?

Share this post


Link to post
Share on other sites

[quote name='MajorTom' timestamp='1305222364' post='4809865']
I once saw code like this:

const int Zero = 0;
const int One = 1;
const int Two = 2;
const int Three = 3;
// ... etc


It continued up to 20.Terrifying.

:D oh noo it keeps going! Argh. :'D

How would that ever be neccesary, I wonder? Was it from an example in class?
[/quote]

I bet there was a
const int First = 0;
const int Second = 1;
const int Third = 2;
const int Fourth = 3;
// ... etc

too for indexing. Up to 256th.

Share this post


Link to post
Share on other sites

Ahah very nice parody

use const!!!!

I LOL'ed :)

These Hitler videos with fake subtitles are considerably less funny if you actually understand what they're saying in the clip. They're just plain weird then.

Share this post


Link to post
Share on other sites

[quote name='janta' timestamp='1305214967' post='4809822']
Ahah very nice parody

use const!!!!

I LOL'ed :)

These Hitler videos with fake subtitles are considerably less funny if you actually understand what they're saying in the clip. They're just plain weird then.
[/quote]


Yes, It's just not very funny when you understand the dialogue. Bruno Ganz's portrayal of Hitler in this film has to be some of the best acting I've seen in a long time.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement