Jump to content

  • Log In with Google      Sign In   
  • Create Account

You became a programmer anarchist. What are some conventions that you don't want to follow along?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
27 replies to this topic

#21   Crossbones+   -  Reputation: 7022

Posted 05 October 2012 - 12:13 AM

Stop using data structures. Instead, just make a function that takes a bajillion arguments. Example:

// Used to be:
const Image combine(const Image& image1, const Image& image2)
{
...
}

// So now it's:
void combine(const char* buf1, int width1, int height1, int pixelFormat1, const char* buf2, int width2, int height2, int pixelFormat2, char* outBuf, int& outWidth, int& outHeight, int& outPixelFormat)
{
...
}

I'm not entirely sure what the point of this thread is, so this is me guessing like I'm playing along.
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#22   Members   -  Reputation: 349

Posted 05 October 2012 - 12:34 AM

How about you upload a virus that's sorta like in Superman 3. Just be sure and watch the decimal places, or you might have a sudden attack of conscience and start working in construction.

#23   Crossbones+   -  Reputation: 4972

Posted 05 October 2012 - 02:10 AM

You became a programmer anarchist

Does n0t co/\/\put3... ZAP GLITCH ZAP ZAP BUG KILL ZAP

Previously "Krohm"


#24   Moderators   -  Reputation: 48939

Posted 05 October 2012 - 05:02 AM

P.S. Anachism != chaos, deliberate rebellion against rules.
Anarchism == rejection of central authority/acknowledgement of individual authority and voluntary rule abidance with no monopoly on power.

Anarchist programmers would probably still voluntarily adhere to decent guidelines (because they're beneficial to projects), but anyone would be free to participate in the guideline forming process, or democratically propose an alternative set of guidelines, instead of some arbitrary manager forcing the decisions down the hierarchy a la dictatorship style.

Valve is basically an anarchist games company.

Edited by Hodgman, 05 October 2012 - 05:06 AM.


#25   Members   -  Reputation: 782

Posted 05 October 2012 - 06:35 AM

Fucking Hungarian notation will kill me. Fuck that, and fuck that to hell. Underscores are also pain in the ass.

private:
	 int _omg;
	 int __uberomg;

int some_stupid_calculation = __uberomg + _omg * __uberomg / __uberomg + __othervar + __more_private_variable + __underscore;


double underscores make me sad :(

#26   Crossbones+   -  Reputation: 7022

Posted 05 October 2012 - 07:46 AM

Fucking Hungarian notation will kill me. Fuck that, and fuck that to hell. Underscores are also pain in the ass.

private:
	 int _omg;
	 int __uberomg;

int some_stupid_calculation = __uberomg + _omg * __uberomg / __uberomg + __othervar + __more_private_variable + __underscore;


double underscores make me sad Posted Image

You shouldn't even be using double underscores (anywhere). Unless you're implementing C++, in which case, have fun sucka!
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#27   Prime Members   -  Reputation: 769

Posted 05 October 2012 - 08:03 AM

I pretty much try to follow standard conventions like a sheep.

Terminology etc is often 'reworded', for example "reflection", almost anything that requires the use of that word gets reworded in basic words. "Iterate" became "cycle" because well why not ;) and I never use the word compile, its "build" to me. Small things I guess no real complaints yet.

I have been questioned on why I have my own set of unique tokens though but honestly TODO: just isnt good enough for everything.

For XAML bindings, class names have 'Interface' at the end, and Mode is always explicitly declared

#28   GDNet+   -  Reputation: 3039

Posted 05 October 2012 - 09:01 AM

There is always programming everything on one line ( most languages, you can do this ), or using a very over complex language such as BrainF###.

If you don't want to learn an overly complex language, why not simplifying everything by using an outdated language such as FORTH ?

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

Code_Fox_Sig.png





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS