Yeah I swear learning Haskell (or other pure functional languages) well turns programmers into wizards lol, so complicated.
@tiefkluehlfeuer
Жыл бұрын
and do you thinks it is possible to master the witchcraft eventually? :D
@mastapegs
Жыл бұрын
@@tiefkluehlfeuer the functional arts can be learned 😊 I freaking love this content. Moar Haskell!
@nekoill
Жыл бұрын
There are others? Like maybe F#, though I'm not sure, but the rest of functional languages I know aren't pure. Well, maybe clean, but it's pretty much just Haskell without some useful syntax sugar.
@Turalcar
7 ай бұрын
@@tiefkluehlfeuer Not from a Java dev
@bashbunni
Жыл бұрын
It even had chat talking about hard liquor 😂
@yashjha0007
Жыл бұрын
That HUH just did it for me LMAO
@torarinvik4920
Жыл бұрын
"fmap takes a function(strToInt) from one type(string) to another(int) and a functor(list string) applied with one type(list string) returns a functor applied with another type(list int)". def strToInt(string:str) -> int: #function from one type to another(string to int) return int(string) #and a functor(list) applied to one type(string) returns a functor(list) applied with another type(int) def fmap(function,functor[str])-> [int]: #function from type1 list return [function(element) for element in functor] fmap(strToInt,["1","2"]) becomes [1,2]
@johnwalker7422
29 күн бұрын
read ["1","2"]
@A5A5A5A5h
Жыл бұрын
I spent my whole master degree doing category theory and abstract algebra. And yet my daily job involves a OOP language 😂
@PS-dp8yg
Жыл бұрын
Do you need to learn Category Theory and abstract algebra in order to master or learn Haskell?
@A5A5A5A5h
Жыл бұрын
@@AndreiGeorgescu-j9p Because not every OOP job is a code monkey job. I work in a bank so obviously the language choice here is either Java, COBOL and Python(for data science), but the pay is VERY good(since i’m one of the few young programmers here that knows COBOL). Languages are just tools after all and our codebase(millions of LOC) would unfortunately be a completely mess with a language such as Haskell(we tried migrating to Scala once).
@alang.2054
11 ай бұрын
@@PS-dp8ygyou don't have to but it will definitely help
@hdbrot
11 ай бұрын
@@PS-dp8ygNo, but it makes you believe that you should know Haskell by now since it is "just category theory" even if you never did much Haskell so far.
@HappyCheeryChap
Жыл бұрын
A monad is just a monoid in the category of endofunctors. What's the problem?
@bashbunni
Жыл бұрын
What’s the problem? I’m questioning my ability to understand the English language
@HappyCheeryChap
Жыл бұрын
@@bashbunni Funny you replied just now, I just happened to open my "learning-haskell" project a few minutes ago, to try a couple of things, after not having looked at it for a few months. Much like the language itself... it seems that *learning* it also can't just be a simple iterative loop... one subject at a time. Every one thing you try to learn, is going to involve a heap of deeply nested recursive learnings too. Makes it hard to even remember what the original "thing" I intended to learn today was. I've got much bigger priorities of things to do/learn... but it keeps pulling me back in for some reason.
@bashbunni
Жыл бұрын
@@HappyCheeryChap OOF I relate to this so much. I feel the same way, but I think it'll be a good thing in the end 🥺 I got recommended "Learn Haskell by building a blog generator" lhbg-book.link/ which I'm excited to try!
@HappyCheeryChap
Жыл бұрын
@@bashbunni Cool, thanks! Haven't come across this guide before. Good to learn stuff from examples of things you've likely done some form of in the past, or are at least familiar with. Never understood why some guides use stuff like "foo" + "bar", when there's pretty much always some more tangible example they could use.
@immagonthinkalot7792
Жыл бұрын
I like to think of functors, applicatives and monads as boxes. They have something inside and their own rules how to magle the insides together. It is rather fascinating, that this allows to use the same (at some point) familiar syntax for list comprehension, atomic updates and error handling.
@ascourter
Жыл бұрын
Learning Haskell quickly descends into Functors, Monads and letters and parentheses haha. Good luck! You will definitely learn something!
@welltypedwitch
Жыл бұрын
To be fair: that is a pretty strange explanation of fmap/Functor
@at-2974
Жыл бұрын
These types of documentation is called "Gatekeeper". Gatekeeper documentations refer to technical specifications and instructions that can be challenging to comprehend without a solid understanding of advanced mathematical concepts and familiarity with specialized scientific terminology. The purpose of this approach is to create a narrow and exclusive group of individuals who possess the expertise to understand the information and therefore, secure their place in the field and strengthen job security ;)
@bashbunni
Жыл бұрын
it's like reading a math textbook heh
@Ian-zj1bu
Жыл бұрын
Correct.
@legohexman2858
Жыл бұрын
@@AndreiGeorgescu-j9pr/foundthebozo
@BboyKeny
8 ай бұрын
I think it's fine to introduce terms like the ones from Category Theory but it's smart to have a small footnote to translate the term to more commonly known terms. A functor in this case is something you can iterate over, like a list.
@FlaminPigz7
Жыл бұрын
Glorious Haskell. I also went through that book a few months ago, and while I’m far from a Haskell whiz, it was the first time in a while I felt that I was actually learning something new while learning yet another programming language. It’s given me respect for the functional style, so much so that I code python in a fairly functional way now. Doing a lot recursively, creating/using higher order functions, this stuff feels better and more powerful than what I used to do. It’s also kindof like program porn to me lmao, just so elegant mmmm 😂
@bashbunni
Жыл бұрын
My brain is absolutely broken on a regular basis
@notafbihoneypot8487
Жыл бұрын
You're the most brave human ever. I'm learning Rust and that alone hurts my brain. Haskell just needs into be renamed Hell
@bashbunni
Жыл бұрын
brain pain is kinda nice though
@AaravBaori
4 ай бұрын
@@bashbunni huh?
@c1dk1n
Жыл бұрын
This is still me in Haskell and it's been weeks.
@joshuanance664
Жыл бұрын
This is fantastic lmao
@kyra3338
Жыл бұрын
Elm is a much nicer introduction to funtional progamming! Haskell is great once you reach the limits of Elm, the heavier concepts will come more naturally
@QmVuamFtaW4
Жыл бұрын
haskell is a language made for mathematicians and made BY mathematicians.
@QmVuamFtaW4
Жыл бұрын
you have no idea, i use arch.@@AndreiGeorgescu-j9p
@QmVuamFtaW4
8 ай бұрын
yeah but not computer engineering job needs you to know complex math concepts. all you need is basic stuff. @@AndreiGeorgescu-j9p
@maxralph01
6 ай бұрын
It should've been the one named "Brainf**k"
@Kpil3
8 ай бұрын
It's actually dead simple. Unfortunately I feel like a lot of FP learning material is written in a way thay makes it all seem much more confusing and complicated than it is.
@ananyobratapal5521
Жыл бұрын
The what at the end tho lol!
@gwnbw
Жыл бұрын
me reading any programming book
@jacobtb1
Жыл бұрын
And oop is the devil btw..
@bashbunni
Жыл бұрын
I'll truly feel like one of them when I start to believe this. I see the potential
@pazo5296
Жыл бұрын
oh yea... just did my Haskell exam 2 days ago so I can relate, Haskell is different
@arturorochoa9359
Жыл бұрын
Oh I can relate.
@jsd4544
Жыл бұрын
i
@null_bite
Жыл бұрын
lmaoo XD
@CamaradaArdi
Жыл бұрын
It's just that the language is really obtuse. Might want to use other docs
@bashbunni
Жыл бұрын
yeah going to try another resource and use LYAH as more of a reference
@vikingthedude
Жыл бұрын
Are you learning from LearnYouAHaskell?
@bashbunni
Жыл бұрын
Yes! There's also a gitbook for learning haskell by building a blog generator that has been really fun
@vikingthedude
Жыл бұрын
@@bashbunni ohh I should try this out next time i go back to haskell. I read LYAH back in 2018 but since I didn’t have any use for haskell at the time, I’ve basically forgotten it
@nate_codes
Жыл бұрын
…WAT?
@DavidConnerCodeaholic
8 ай бұрын
hunni
@colemichae
8 ай бұрын
Yrp agter 😂😂😂😂
@marksalsbery9826
Жыл бұрын
😂
@ArugulaDev-op6fh
Жыл бұрын
hhhwhy?
@megistusable
9 ай бұрын
Cool, you made fun of functors
@ilyakooo0
3 ай бұрын
Skill issue
@Ian-zj1bu
Жыл бұрын
Just stick to Javascript :)
@bashbunni
Жыл бұрын
What’s Javascript??
@Turalcar
7 ай бұрын
There's still [1,2,3].map(x => x.toString()) JS is technically functional
@obinator9065
6 ай бұрын
hiiiii
@lmvdzande
Жыл бұрын
what the functor?
@CamaradaArdi
Жыл бұрын
Another word for higher order function
@notoriouslycuriouswombat
Жыл бұрын
the 'wat' did it for me
@f_erbey
2 ай бұрын
I'm not a native speaker so when i have seen this i've showed it to one of my native friend as saying "seems like i still don't know English well". And my friend said: "seems like mee too" 🤔
@bjcampolo
19 күн бұрын
What the Functor!?
@jonathan8406
Жыл бұрын
Me Learning Rust hahaha
@modelwrong
Жыл бұрын
I loved the "Huh? What?" at the end. I have felt that so many times. What book are you working through here?
@bashbunni
Жыл бұрын
Learn You a Haskell! I got another recommendation though where it's more of a guide for learning haskell by building a blog generator. Looks great and I think it'll align better with my chaotic learning style, heh github.com/bashbunni/learn-haskell/issues/1
@modelwrong
Жыл бұрын
@@bashbunni thanks Bash! ❤️❤️❤️
@coconutflour9868
Жыл бұрын
I've been learning haskell recently, functors and monads and stuff can sure be rough in the beginning but once you start to get them you'll feel like you have superpowers
@lionel16
Жыл бұрын
Same tbh
@davidprock904
8 ай бұрын
A single comparator can be a function and then you have to think about prefix, infix, postfix. Does that help?
Пікірлер: 86