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 Cornstalks   Crossbones+   -  Reputation: 6974

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 ]

Sponsor:

#22 Heath   Members   -  Reputation: 344

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 Krohm   Crossbones+   -  Reputation: 3049

Posted 05 October 2012 - 02:10 AM

You became a programmer anarchist

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

#24 Hodgman   Moderators   -  Reputation: 29497

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 way2lazy2care   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 Cornstalks   Crossbones+   -  Reputation: 6974

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 Memories are Better   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 Shippou   Members   -  Reputation: 1471

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 ?

 Reactions To Technologies:
1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
3. Anything invented after you're thirty-five is against the natural order of things.

- Douglas Adams 2002


 





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