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

>he's to stupid too use a functional programming language

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: 88
Thread images: 9

File: Haskell Blue Logo.png (13KB, 629x225px) Image search: [Google]
Haskell Blue Logo.png
13KB, 629x225px
>he's to stupid too use a functional programming language

when will the OOP meme die?
>>
File: 4L_xcuG23ti.jpg (10KB, 258x196px) Image search: [Google]
4L_xcuG23ti.jpg
10KB, 258x196px
>>57830456
I want to learn haskell but can i even use it in real life or is it just for fun?
>>
File: rb.png (89KB, 959x833px) Image search: [Google]
rb.png
89KB, 959x833px
>>57830456
multi paradigm multi happiness
>>
>>57830456
>he's to stupid too
>to
>too
lol
>>
>>57830472
both
>>
no one uses your shitty meme language

learn a real language like C
>>
>>57830491
Hello newfriend
>>
>>57830953
>every grammar mistake is somehow a clever ploy to get (You)s

your a idiot
>>
>>57831031
Okay favela boi
>>
>>57830933
C was already garbage back when it was invented and only survived to this day because it piggybacked the biggest meme of all, UNIX.
>>
>>57830456
You never elaborated why FP is better than OOP.
That's why no one switches to FP.
>>
>>57831031
>gets called out for being oblivious
>rages
lmao
>>
OOP vs FP is a fucking meme.

Some problems are more suited to one, or the other. Dogmatically following one paradigm just shows how fucking stupid you are.
>>
Do I have to learn some advanced math before starting with haskell?
>>
>>57830456
>when will the OOP meme die?
probably around the same time you lose your virginity
>>
>>57830472

i mean, if you want to get a job you may as well learn KOBOL. just learn whatever language u wanna learn
>>
>>57832213
L A M B D A C A L C
>>
>>57832445
>>57832213
in all seriousness, not any more than is necessary for OOP
>>
>>57832374
then it would have ended 9 moths before you were born
>>
>>57831031
lol, cuckold

is this the best meme to weed out the newfag redditors?
>>
>programming in the meme paradigm
>writing obscure code other programmers cant easily contribute to
>wasting time on esoteric programming languages no employer has even heard of

Yeah FP sure is superior to OOP, good luck with that.
>>
>>57832526
>>writing obscure code other programmers are too unintelligent to grasp

Why are you so upset, Sanjay?
>>
>>57830456
but OP, Clojure is infinitely better.
>>
>>57832576
My friend, i must disagree.

While Clojure is a great language, any layman can write it.
The same cannot be said for Haskell.

It truly is the language of the enlightened
>>
>>57832641

>any layman can write it.

Lisp has been around for 50 something years and people are still intimidated by it.
>>
>>57832554
>mocks C because lacks the intelligence to understand code at the level of hardware
>talks shit about coders who don't like the obscure code that results from meme paradigm

I think you're the Rajeesh here.
>>
File: Rlogo.png (541KB, 1450x1100px) Image search: [Google]
Rlogo.png
541KB, 1450x1100px
>>57830456
does this count?
>>
>>57830477
You might like Oz then

>>57832213
no, not at all. You only need a general intuition about how types work.
>>
How is Haskell for programming?
I'm stuck with C# because uni requirements but I don't particularly enjoy it and am looking for a new language.
>>
>>57830456
having used haskell, i assure you its neither simple nor fun

stateless code, pure functions, etc are goat, but some things just need state, imperative coding, etc

the way java 8 does it is perfect
>>
>>57833280
It's a giant meme that you are unlikely to actually use.

Maybe someday.
>>
>>57833163
>Oz
>Getting it to compile

What are you, a belgian wizard?
>>
>be skeptic towards haskell
>do a course on haskell at uni
now i fucking love it
>>
>>57830456

Can you just quick explain to me, what a Monad is?
>>
>>57830456
>pure
>simple
>fun
I've seen politicians lie less.
>>
>>57830472
>I want to learn haskell but can i even use it in real life or is it just for fun?

There are pretty webframeworks to build real life business stuff.


> Yesod
> Snap
> Happstack
>>
>>57832213

> Not at all.

But you need to understand three main techniques before becoming productive.

> Higher order functions
> Lazzyness
> Pattern matching


Anddd I almost forgot the ...

> Monad
>>
>>57833498


>> Higher order functions

Imagine you have a function that takes two arguments

> add x y = x + y

but you just wnat apply one argument.

> add 1

what is the result of (add 1)? It's ...

> add x = x + 1

The result is a funtion that now take just one remaining arument and adds +1 to it.

>> Lazyness

Lazyness is the opposit of strictness. A lazy expression just evaluats to the point where the result is determind. Than it stops and ignors the rest of the expression. E.g. the function take takes the first two elements of the list and returns them. The list [1..] is a infinit list. Starting at 1 and counting up to infinity. In a strict language the list needs to be evaluationed up to infinity before the function take could return the first to elements.

> take 2 [1..]

>> Pattern matching

You can deconstruct arguments like tupel, e.g. a is 1 and b is 2

(a,b) = (1,2)
>>
>>57833614
Congratulation, now you can start building the new facebook inc based on haskell.
>>
>only write pure code
>nothing happens
T... thanks I guess.
>>
>>57833614
Now understand english
>>
>>57833614
You have to go back >>>/r/eddit
>>
>>57833449
One benefit of Haskell is security. You can write incredibly robust web servers in Haskell. Also great for proving properties about your program. Very useful if you want to guarantee your program does EXACTLY what you expect.
>>
>>57834135
>One benefit of Haskell is security
Because no one knows it?
>>
>>57833614
All those features seem retarded. And what's wrong with OOP? It's way more advanced than any model that came before it.
>>
>>57833280
Sorry but if you dislike C# you probably dislike programming.
>>
>>57831044
You are miraculously stupid.
>>
>>57835120
>>57833644

TIL that /g/ is afraid of learning just three now things at once..
>>
>be me
>try hasklel
>need 2d integer matrix
>search for array lib since linked lists are fucking retarded for 2 million values
>find repa
>waste time figuring out the syntax
>get it initialize with values from a fucking image file
>fuckingnotwhatineed.gif
>google how to initialize with single specific value
>no useful results

>go back to glorious D
>ubyte[1000][2000] matrix = 42;
>done

jesus fucking christ
>>
>>57835946
>2d integer matrix
Why not just use a Struct with a 1D Array and a Stride
>>
>>57835120
Erlang user here, pattern matching is pretty comfy, and you can do it on binaries/bitstrings too (in Erlang, idk about Haskell), so you can get bits 3-7 out of a bitstring without having to fuck around with bitwise operators. Another good thing about functional languages is that functions have no side effects, which means that writing parallel code is easier than in non-functional languages (I haven't written parallel code in non-functional languages yet tho, only in Erlang, so I'm not speaking from experience on both). I'm not saying it's better than OOP, but it has its uses and it's definitely not retarded.
>>
>>57833369
Any suggestions for something that's not C#, Java or Python then?
I hear C++ is good.
>>
>>57835377
I don't dislike C# I dislike the fact that it's limited to one platform.
In terms of actually programming it's reasonably simple I'm just more interested in something more useful.

Trying to program in C# on a linux machine is a giant pain in the ass.
>>
>>57830456
as soon as haskell gets a working ecosystem
aka never
>>
>he writes Haskell but uses a SQL database
>he doesn't use event memeing

lmaoing @ ur lifes
>>
>>57835120
This has to be bait.
I am not suggesting that Haskell is the correct way to do things but Java-style OOP is horrible.

I suggest you to take a look at how Go and Rust handle types.
>>
Best book for Haskell then?
>>
>>57832863
>C - high level
>x86 assembly - mid level
>x86 micropts - low level
>>
>>57835014
Because in func programming a function only takes inputs and returns outputs. You can't access things outside the scope of the function.

Its like 80% if the people here don't know what they are talking about, oh wait.
>>>/g/
>>
>>57830456
>>simple
LUL
>>
>>57835377
Not him. I love C++, C, Python, and hate C#. What's wrong with me?
>>
>>57838700
Fucking please. Bait? You're just oversensitive to the truth. Without OOP you don't have code reuse or polymorphism.
>>
>Functional programming is an alternative to OOP
Functional programming is horrendous as fuck and gives no alternative to any OOP concept. Procedural programming is the only flawless paradigm.
>>
File: luacode.png (125KB, 687x852px) Image search: [Google]
luacode.png
125KB, 687x852px
is lua a functional programming language?
>>
File: magician.jpg (3MB, 2448x3264px) Image search: [Google]
magician.jpg
3MB, 2448x3264px
>>57830456
>not writing perfect C++ code
>hasklel
roflmaoing at your pitiful life, my friend
>>
>>57834135
>Also great for proving properties about your program. Very useful if you want to guarantee your program does EXACTLY what you expect
You can only eliminate a small class of bugs in Haskell.
It's not even total.
>>
>>57831044
>he hates simplicity, portability, and speed
>>
>>57844721
that's probably because he can't write code for shit
people only promote haskell to write fizzbuzzes on /g/
>>
>>57839637
"Learn You A Haskell For Great Good"

Literally like that with bad grammar and all. It's available for free on his website. It's really well written. It's the reference book for a Haskell course I'm taking in university.
>>
>>57830456
never.
fp is how ivory tower mathematicians wish computers worked, imperative (plus awareness of concerns like locality) is how they actually do.

> inb4 muh dogshit slow lisp machines
>>
>>57844384
It has first class closures, but it doesn't have many of the other distinctive features of functional programming languages.
>>
File: 1480817007595.jpg (159KB, 844x898px) Image search: [Google]
1480817007595.jpg
159KB, 844x898px
>tfw studied Haskell but never used it for real projects
>>
File: Screenshot_2016-10-11-21-08-05.png (154KB, 1080x1920px) Image search: [Google]
Screenshot_2016-10-11-21-08-05.png
154KB, 1080x1920px
I want to learn functional programming this winter break. What language can I learn that I have a chance of using in a job?
>>
>>57845297
Linear logic is the best at safely representing real data flow

>>57845336
>tfw love haskell, trying to use it for real project but the package manager is absolute shit and backwards dependency is broken everywhere
>>
File: husky-pro-grooming.png (73KB, 2480x3507px) Image search: [Google]
husky-pro-grooming.png
73KB, 2480x3507px
>>57839637
>>
>>57845343
Probably Scala. Not many jobs out there with just Haskell
>>
>>57833498
>lazyness
Got that one covered.
>>
>>57845317
what are the features of a functional lang that lua hasnt got?
>>
>>57831044
>portable high performance software is garbage
>only useful OS in the world is a meme
>>
>>57844548
>C++
>not C

talk about pitiful
>>
>>57832641
>any layman can write it
How is that a bad thing?
>>
It has already in any serious front-end web development gig in 2016. I use OOP for backend/API crafting, but mostly as an organization tool rather than a coding paradigm.

FP would be bigger if F# and Haskell weren't such shit-baskets (still love Haskell).
>>
>>57846525
we want to keep the shitters out

let them use their C++
>>
>>57832526
Sounds like your taking shots at OOP in the greentext.
>>
>>57846566
Hipster elitist confirmed. This is why haskell is viewed as a big fucking impractical meme that NO ONE uses in the real world. You say you want OOP to die, yet you don't want common people to be able to use it?
>>
>>57833614
what you just described is partial application not higher order functions you retard
>>
>>57846566
precisely .. i would like the shitters to die off with OOP
>>
>>57843451
>this is what OOP shitters actually believe
You obviously haven't done as I suggested in my post.
Thread posts: 88
Thread images: 9


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