[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

real dev doesn't use if

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 39
Thread images: 7

File: hqdefault.jpg (13KB, 480x360px) Image search: [Google]
hqdefault.jpg
13KB, 480x360px
>>
>no true scottsman
>>
well what do they use?
>>
>>58875765
real programmers just write in binary. Obviously you're a phony because I have to explain this to you.
>>
>>58875799
see
>>58875755
>>
>>58875804
>I'll take socio interaction for 800, Alex.
>Q. What is said to try and humor people?
>A. What is a joke?
>>
>>58875799
real programmers write in transistors
>>
>>58875901
real programmers write in half adders built out of redstone in minecraft
>>
>>58875901
kek
>>
real programmers can make an AI with CSS alone
>>
File: 1484673037185.jpg (110KB, 602x500px) Image search: [Google]
1484673037185.jpg
110KB, 602x500px
>>58875404

No problem.

> a == b ? c : d
>>
https://en.wikipedia.org/wiki/Strategy_pattern
>>
>>58875963
dumb trump poster
>>
File: 1481022742335.jpg (82KB, 1280x720px) Image search: [Google]
1481022742335.jpg
82KB, 1280x720px
>>58876036
>autistic screeching
the post
>>
I just use polymorphism

Let the class decide
>>
lambda calculus
>>
>>58875765
Real programmers use branch elimination techniques to remove ALL branches from their programs.
>>
File: smugtrump.jpg (5KB, 310x162px) Image search: [Google]
smugtrump.jpg
5KB, 310x162px
>>58876036
>he doesn't want to MAGA

fag
>>
>>58875765

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.
>>
>>58876149
>oop
>>>/trash/
>>
>>58876711
>goto
you're fired.
>>
>>58875905
/thread.
>>
>>58876711
that's gore anon
>>
>>58876782
What is wrong with goto?
>>
File: 1483073157801.jpg (110KB, 1280x720px) Image search: [Google]
1483073157801.jpg
110KB, 1280x720px
/g/ 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)
>>
>>58875404
i just fucking realize seeing that picture...

(((them)))
>>
>>58875765
>hmm interesting how what obvious bait tastes like
Real devs write everything in a cascaded ternary operator.
>>
>>58875765
>>58875765
!(condition) || (printf("condition is true\n"), 1);
>>
>>58876711
> 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.
>>
File: 1443780209497.gif (609KB, 600x539px) Image search: [Google]
1443780209497.gif
609KB, 600x539px
>>58876965
/board
>>
>>58876782

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

>>58877724

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.
>>
>>58876782
Every if, while and for involves GOTO
>>
>>58877724
That is not always true, especially if you are trying to take advantage of spacial locality of the cache
>>
>>58877817
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.
>>
>>58877724
>every programming language is compiled

retarded point of view famalam
>>
Real Programmers Don't Use Pascal
>>
>>58877970
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.
>>
>>58875404
goto rulz
>>
File: keep-calm-and-shut-it-down-7.png (43KB, 600x700px) Image search: [Google]
keep-calm-and-shut-it-down-7.png
43KB, 600x700px
>>58876965

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

>and yet /g/ persists
Thread posts: 39
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.