// sort by name

// sort by name
sortByName();

Other urls found in this thread:

en.m.wikipedia.org/wiki/Sorting_algorithm
twitter.com/NSFWRedditGif

if (...)
{
... ;
}
else if (...)
{
... ;
}
else if (...)
{
... ;
}
else if (...)
{
... ;
}
else if (...)
{
... ;
}
else (...)
{
... ;
}

What if I'm using Python? How do I get around this?

>else (...)
???

// a
this.a(new A(replyToThisPostOrYourMotherWillDieInHerSleepTonight));

...

Compile errors:
> using this when not within a class
> because 'this' does not refer to anything, there is also no function called "a"
> Class A not found
> replyToThisPostOrYourMotherWillDieInHerSleepTonight not initialized

Use a dict. The resulting value of a key used in a dictionary in python can be used to call a function.

something = { 1 : first_function,
2 : second_function,
}
something[whichfunctiontouse](arguments)

if (var == true)
{
return true;
} else if (var == false)
{
return false;
}

...

It's like I was back in 2011.

> not just returning var

STOP IT

literally me

So your code fails to compile because you try to have a condition on your 'else'?

>using shitty meme languages
>2011+6

if your lang doesn't require full-caps it's trash tier

LMAO best one iv seen in years desu

>desu
fag

// return the result
return res;

if (!(var != true))
{
return true;
}
else if (var == false && !var == true)
{
return !true;
}

return !!var;

if (...) {
if (...) {
if (...) {
if (...) {
if (...) {
if (...) {
if (...) {
if (...) {
if (...) {
...();
}
}
}
}
}
}
}
}
}

This is actually how coding should be done. Easy to understand, don't even need any comments. Girls code like these and that's why they're blowing men out of the water in the IT jobs market :)

...

...

switch(var)
{
case 0:
return var;
break;
case 1:
return true;
default:
return var;
break;}

This is legit, converts to bool

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

OMG that just reminds me of shit people at my work do that triggers me!

(We have to code in Gosu)
var isEnrollment = not isEnrolled and paymentInfo != null
var isUnenrollment = isEnrolled and payment info == null
var isInSync = isEnrollment == isUnenrollment

switch(true) {
case isEnrollment:
performEnroll()
break
case isUnenrollment:
performUnenroll()
break
case isInSync:
logger.info("nothing to do. systems are in sync")
break
default:
logger.error("Unexpected scenario occurred")
break
}


Every time I tell them if-else would be more efficient in these situations since the conditions are derived, these retards will literally tell me it's faster because it's a switch-case. This incorrect usage of a switch-case is all over our code base that's already in production.

Pardon my rage-induced typo. paymentInfo on line 2 of course!

...

ayy

en.m.wikipedia.org/wiki/Sorting_algorithm

>don't even need any comments
always comment everything you prick

>nothin rong ere

elif

>yes, its a carreer.

if (this.Desu && this.Bad && ...) {
...
}

Just as readable but isnt pajeet tier autism
:

output += AES.Decrypt_CBC(blocks[i], MD5(key), iv);
key = SHA1(blocks[i] + key);

Because static cast is for pussies?

Use a non-shit language.

counter++ //increments the counter
...
counter = counter+1 //increment the counter

I often see that at work. Last time i saw a function called test and the comment above was also "test", nothing else.

...

A bunch of my notes from first year courses were like that. ._.

god FUCKING damn it

function Increment() {
return { type: 'INCREMENT' }
}

function reducer(state, action) {
switch (action.type) {
case 'INCREMENT':
return { ...state, count: state.count + 1 }
default:
return state
}
}

store.dispatch(Increment())

comments are frowned upon in my company

Did Barrack Obama code that?

fuck off nigga

public void TestReplyToThisPostOrYourMotherWillDieInHerSleepTonight_Throw()

:(

static_cast is for sepples

Sort.By(SortByParam.Name, list)
Good day sir

Hold on guys I've got thi

...

Well played

Beautiful