[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]

If you take the blue pill you wake up. C++ is the best programming

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: 31
Thread images: 7

If you take the blue pill you wake up. C++ is the best programming language still. Functional programming isn't a thing and you go back to passing around your objects.

But if you take the red pill you see what is on the other side.
>>
You can write functional code in any programming language.

Many "functional" concepts like first-class functions, closures, map/filter/reduce are not "functional" at all, they exist in many imperative languages.
"Functional programming" as described by this board seems to revolve entirely around avoiding mutability and state, 2 things that are literally unavoidable when running software on a CPU, since your CPU is literally one giant state machine.
And people will go to great lengths to avoid state just to bring it back with self-contained state machines known as "monads" that have absolutely nothing to do with the fringe category theory concept of the same name.
Why did they go to all this trouble?
Because you literally can't have I/O without state, and a programming language with no state will heat up the CPU but produce no useful work.
Functional programming is a meme.
>>
File: 1496848625731.jpg (7KB, 250x243px) Image search: [Google]
1496848625731.jpg
7KB, 250x243px
>>60819890
It can be done.
>>
>>60819890
functional concepts were copied from functional languages. Even exceptions were copied from FP.
>>
File: flat,1000x1000,075,f.u1.jpg (180KB, 1000x965px) Image search: [Google]
flat,1000x1000,075,f.u1.jpg
180KB, 1000x965px
>>60819993
We innovate whereas they choose to linger behind.
>>
>>60820149
You "innovate" by transforming your languages into functional languages. You're decades late.
>>
File: CLh0NqWUAAEGRHw.jpg (32KB, 590x578px) Image search: [Google]
CLh0NqWUAAEGRHw.jpg
32KB, 590x578px
>>60820199
>we invented garbage collection
>we invented functions as first class citizens
>we invented immutable datastructures
>now we are mastering multithreaded before you are even close
>and yet we are behind
>>
>>60820238
Everything is false in that post. Everything.
>>
>>60820251
Oh good, so we're not behind.
>>
>>60820348
Ho shit. :)
>>
File: imaguhiuhhihiuhes.jpg (7KB, 243x207px) Image search: [Google]
imaguhiuhhihiuhes.jpg
7KB, 243x207px
>>60820448
my precious arguments ruined by contradiction
>>
assembly is the ultimate red pill
>>
>>60819890
>state [...] literally unavoidable when running software on a CPU, since your CPU is literally one giant state machine

yeah, "stateless" systems never are.
>>
>>60820848
I don't argue with liars.
>>
>>60820848
dumb frogposter
>>
Everyone in this thread needs to get off 4chan and get ready for fucking work
>>
>>60819772
Just don't take both the pills.

We had a guy do that once.

Afterwards all he could say was "parentheses" over and over.
>>
>>60820851
this
>>
File: 1496964568170.jpg (56KB, 645x773px) Image search: [Google]
1496964568170.jpg
56KB, 645x773px
>>60820851
Forth is a bigger redpill than assembler
>>
>>60820994
>implying anybody in this thread has a job
>>
>>60819772
Write a fully-featured RDBMS, or something else of comparable complexity, in a purely functional language. Then maintain it for a year.

Then I will acknowledge that purely functional languages have practical, real-world uses. Until then, my interest in them is purely academic.
>>
>>60820994
I am I am jeez
>>
>>60820994
>not multi-tasking
>not shitposting from work
>>
>>60821039

Thanks, made me chuckle.
>>
>>60819890

/thread
>>
>>60819916
>>60820149
>>60820238
Dumb frog poster
>>
>>60820974
>>60821926

Dumb "dumb frogposter" poster
>>
File: 1475561360616.gif (2MB, 480x360px) Image search: [Google]
1475561360616.gif
2MB, 480x360px
>>60819772
>functional programming
>objectively better than x
Not falling for the functional jew.
>>
>>60821940
Dumb "Dumb "dumb frogposter" poster" poster.
>>
>>60823490 (you)
>>
>>60819890
Why is your view so black and white?
Fact is, imperative languages have some of these concepts them because they were inspired by functional concepts, that's just the way it is. E.g. lambda's, streams in Java 8, etc.

Watch this video, it's an interesting take on things by Simon Peyton Jones, one of the key researchers behind Haskell.

https://www.youtube.com/watch?v=iSmkqocn0oQ&gl=BE
Thread posts: 31
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.