He's to stupid too use a functional programming language

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

when will the OOP meme die?

I want to learn haskell but can i even use it in real life or is it just for fun?

multi paradigm multi happiness

>he's to stupid too
>to
>too
lol

both

no one uses your shitty meme language

learn a real language like C

Hello newfriend

>every grammar mistake is somehow a clever ploy to get (You)s

your a idiot

Okay favela boi

C was already garbage back when it was invented and only survived to this day because it piggybacked the biggest meme of all, UNIX.

You never elaborated why FP is better than OOP.
That's why no one switches to FP.

>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?

>when will the OOP meme die?
probably around the same time you lose your virginity

i mean, if you want to get a job you may as well learn KOBOL. just learn whatever language u wanna learn

L A M B D A C A L C

in all seriousness, not any more than is necessary for OOP

then it would have ended 9 moths before you were born

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.

>>writing obscure code other programmers are too unintelligent to grasp

Why are you so upset, Sanjay?

but OP, Clojure is infinitely better.

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

>any layman can write it.

Lisp has been around for 50 something years and people are still intimidated by it.

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

does this count?

You might like Oz then

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.

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

It's a giant meme that you are unlikely to actually use.

Maybe someday.

>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

Can you just quick explain to me, what a Monad is?

>pure
>simple
>fun
I've seen politicians lie less.

>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

> 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

>> 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)

Congratulation, now you can start building the new facebook inc based on haskell.

>only write pure code
>nothing happens
T... thanks I guess.

Now understand english

You have to go back

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.

>One benefit of Haskell is security
Because no one knows it?

All those features seem retarded. And what's wrong with OOP? It's way more advanced than any model that came before it.

Sorry but if you dislike C# you probably dislike programming.

You are miraculously stupid.

TIL that Sup Forums 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

>2d integer matrix
Why not just use a Struct with a 1D Array and a Stride

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.

Any suggestions for something that's not C#, Java or Python then?
I hear C++ is good.

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.

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

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?

>C - high level
>x86 assembly - mid level
>x86 micropts - low level

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.

>>simple
LUL

Not him. I love C++, C, Python, and hate C#. What's wrong with me?

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.

is lua a functional programming language?

>not writing perfect C++ code
>hasklel
roflmaoing at your pitiful life, my friend

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

>he hates simplicity, portability, and speed

that's probably because he can't write code for shit
people only promote haskell to write fizzbuzzes on Sup Forums

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

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

It has first class closures, but it doesn't have many of the other distinctive features of functional programming languages.

>tfw studied Haskell but never used it for real projects

I want to learn functional programming this winter break. What language can I learn that I have a chance of using in a job?

Linear logic is the best at safely representing real data flow

>tfw love haskell, trying to use it for real project but the package manager is absolute shit and backwards dependency is broken everywhere

...

Probably Scala. Not many jobs out there with just Haskell

>lazyness
Got that one covered.

what are the features of a functional lang that lua hasnt got?

>portable high performance software is garbage
>only useful OS in the world is a meme

>C++
>not C

talk about pitiful

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

we want to keep the shitters out

let them use their C++

Sounds like your taking shots at OOP in the greentext.

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?

what you just described is partial application not higher order functions you retard

precisely .. i would like the shitters to die off with OOP

>this is what OOP shitters actually believe
You obviously haven't done as I suggested in my post.