[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
It's 2016, why aren't you programming functionally yet?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 29
Thread images: 3
File: 1463659203682.png (629 KB, 570x691) Image search: [Google]
1463659203682.png
629 KB, 570x691
It's 2016, why aren't you programming functionally yet?
>>
>>54759912
just let your shitty thread die, bro. posting qt's is not a substitute for quality posting.
>>
>>54760020
Bump 2/100
>>
Because I'm not a fucking faggot and have at least a little bit of self respect.
>>
File: 1440435805132.png (74 KB, 412x351) Image search: [Google]
1440435805132.png
74 KB, 412x351
>Need at least a 190 IQ to understand monads
>Only 189
>I'll always be an inferior imperative-programming plebeian
>>
I am. OOP is for college students.
>>
>>54760020
He should trie posting anime cuties instead.
>>
>>54759764
I am
It's overhyped and I can't do anything without some imperative code
>>
>>54759764
>It's 2016, why aren't you programming functionally yet?

Because pure functional programming is a meme
>>
>>54759764
Because any programming done in a company environment in the 21st century is a collective effort that goes through multiple people and reviews and "your" coding ability doesn't matter. Any solo project will either fail in conception, or become so good that whether or not you have horrendous spaghetti code doesn't matter because you can hire someone to fix it for you.
If it doesn't fail in conception, being unable to spaghetti code your way through it would mean it would fail anyway, and then if it works but nobody uses it who cares what the code looks like.

>There is no reason to ever code well
>>
>>54760800
>that goddamn fucking feel
>>
>>54760800
Easy
http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html

I know you are memeing, but for others
>>
I saw this tread a week ago.
>>
>>54759764
I write functions in C. /thread

Btw, why is a picture of a kid being used as the thread starter picture?
>>
Because I'm a C trap
>>
>>54761326
Several different people are creating functional programming threads.
>>
>>54759764
He or she?
>>
File: 1442969396860.jpg (153 KB, 676x958) Image search: [Google]
1442969396860.jpg
153 KB, 676x958
i want to functionally program a slav gf
>>
Why would anyone claim that a paradigm where state isn't a first-class concept is somehow superior to all other paradigms for all cases when many of them (e.g. vidya, image editing, simulation) are inherently stateful?
>>
>>54762245
read, write, state monad

you can define mutable values as well

the idea is to LIMIT state for great good
>>
>>54762351
>the idea is to LIMIT state for great good
That's already how it's done in languages like C, though. Not everything is stored as a global variable, you keep state local except when you need to communicate it between scopes.
>>
but I am, my current project is a big island of functional purity. I try to minimize all the unpure stuff.
>>
>>54761193
>it's somehow a bad thing that large, complex programs can be comprehended and maintained by fewer people
>>
I am, here's some source code.
X11 window hider/unhider.
http://pastebin.com/ncKvYdi3
>>
>>54764065
>FP in c
why
>>
>>54761299
Thanks anon. I am pretty new to FP. Although having years of experience in imperative paradigm, it's hard to grasp even basic FP concepts. That article is holy grail of information and illustrations always make it easier to grasp concepts which are hard to explain using only words.
>>
>>54760894
That's why I like Scala. Mix FP and Imperative and get the best of both.
>>
>>54759764
>It's 2016, why aren't you programming functionally yet?
I did in college, then I realised that very few in the real world does this and your colleagues will complain that your code is unreadable and unmaintainable if you do.
>>
>>54762240
But she could easily be a German.
Thread replies: 29
Thread images: 3

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.