Real dev doesn't use if

...

Other urls found in this thread:

en.wikipedia.org/wiki/Strategy_pattern
twitter.com/AnonBabble

>no true scottsman

well what do they use?

real programmers just write in binary. Obviously you're a phony because I have to explain this to you.

see

>I'll take socio interaction for 800, Alex.
>Q. What is said to try and humor people?
>A. What is a joke?

real programmers write in transistors

real programmers write in half adders built out of redstone in minecraft

kek

real programmers can make an AI with CSS alone

No problem.

> a == b ? c : d

en.wikipedia.org/wiki/Strategy_pattern

dumb trump poster

>autistic screeching
the post

I just use polymorphism

Let the class decide

lambda calculus

Real programmers use branch elimination techniques to remove ALL branches from their programs.

>he doesn't want to MAGA

fag

Instead of doing this:
if (condition) {
a();
}
else {
b();
}
c();

You would do this:
while (condition) {
a();
goto end_conditional;
}
{
b();
}
end_conditional:
c();

Which is mostly similar, except it makes break and continue completely useless.

>oop

>goto
you're fired.

/thread.

that's gore user

What is wrong with goto?

Sup Forums cool kids club checklist

[x] hate OOP
[x] hate IDEs
[x] never produce actually useful software (this is important)
[x] wear knee socks
[x] tiling window manager
[x] dark-like-my-soul customized colors
[x] 40% keyboard with braided cables and pink caps
[x] hate popular Linux distributions (far too intelligent for them)

i just fucking realize seeing that picture...

(((them)))

>hmm interesting how what obvious bait tastes like
Real devs write everything in a cascaded ternary operator.

!(condition) || (printf("condition is true\n"), 1);

> little baby doesn't know compilers nowadays literally gain 0% from coding at that level in terms of optimization because every single optimization your little brain can fathom in that low level an optimization compiler will already rearrange it to what is best anyway.
It's only extremely very large scope whole-application optimizations that a compiler may never catch and even in that venue they lately become increasingly smart.

/board

It's how you'd emulate if/else using while. You could use break if you didn't want to have an else block.

That's not an attempt at an optimization. That's merely an example of how to emulate an if statement without if statements. I am well aware of what compilers are capable of.

Every if, while and for involves GOTO

That is not always true, especially if you are trying to take advantage of spacial locality of the cache

It's not always true bad a good motto is, if you're looking for low-level-and-short-scope optimizations leave it the fuck alone and only deal with the very big picture design of the software-optimization because at the end of the day it's not just a lot of work, but the compiler will do either all of the work of that or some of the work, or the gain might not be needed yet if ever.

>every programming language is compiled

retarded point of view famalam

Real Programmers Don't Use Pascal

I would agree that it almost always is unnecessary and that premature optimization is a bad idea. But if you are developing something that requires real time or incredibly fast performance, then you will have to run profiling and perform optimizations on certain blocks of code.

goto rulz

[x]consciously acknowledge these things going into it and do them anyway

>and yet Sup Forums persists