C#
if(true)
{
// stuff
}
Javascript
if(true) {
// stuff
}
CSS
.selector {
/* style! */
}
if(true)
{
// stuff
}
if(true) {
// stuff
}
.selector {
/* style! */
}
private:
int _omg;
int __uberomg;
int some_stupid_calculation = __uberomg + _omg * __uberomg / __uberomg + __othervar + __more_private_variable + __underscore;
Setters and getters. Why, just why?
[quote name='CryoGenesis' timestamp='1349381144' post='4986862']
Setters and getters. Why, just why?
public int SomeValue { get; private set;}
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;
[quote name='froop' timestamp='1349377057' post='4986841']
I also don't like white space everywhere.
if((doSomething(stuff,moreStuff)&&!didSomethingAlready)||(didSomethingAlready&&noNeedToDoMore&&overrideAlreadyDidSomething(manager.name.c_str())))
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”