r/purescript • u/bitch-strangler • Aug 07 '21
This language is super fucking hard
I am dumb as a bag of rocks, no further commentary
23
Upvotes
r/purescript • u/bitch-strangler • Aug 07 '21
I am dumb as a bag of rocks, no further commentary
11
u/CKoenig Aug 07 '21
Ok you are frustrated (very likely just that - not the other one you mentioned).
It's ok to vent - but once you did, and if you still want to try PS out you we can try to figure it out if you tell us a bit about what caused the frustrated posting ;)
9
u/colonelflounders Aug 07 '21
You're not dumb, it's just different. When I was learning Haskell, I felt the same way. Not much you have learned about programming carries over. The type system is different from much of what you have worked with, the syntax is definitely different, and the data structures and control flow you use end up being different too. It is starting over with programming.
As someone suggested it may be easier trying to learn Haskell first because there are more resources for it. Haskell is not that different of a language. The syntax is fairly close, it does differ a bit, but not enough that a quick look at a reference can't fix. Haskell is also lazily evaluated, but for just learning the language it would probably be a better place to start. Purescript and Haskell do have significant differences, but for learning sake, if you learn one, most of that work applies to the other.
If you need help, just ask. Try to make sure you solve all your exercises with your own code, but if you need hints, ideas or clarification ask the community. https://discord.gg/ZzUfvazq That is the Purescript Discord server, there is also the forums.
1
u/Zeta0114942 Aug 07 '21 edited Aug 07 '21
Can i ask? Is rustlang easier, what do you think? Usually it's called hard.
EDIT: I meant rust is called hard.
1
u/ghibe Aug 08 '21
everytime I get frustrated learning something, I remind myself of how hard of a process walking is, and that even the dumbest mf I know managed to get it at some point. and we all ended up taking it for granted.
3
u/natefaubion Aug 08 '21
It is fuckin hard, but it's also fuckin awesome. Please join the Discord or Discourse! Happy to provide any help or insight :) Good luck!
2
u/hanocri666 Sep 23 '21
Keep on banging your head against that wall. I very well remember my first experiences with Haskell; it was PAINFUL even well after I already had some experience with functional programming using Erlang.
What you're experiencing are growing pains though, even if you don't stick to Purescript, it'll influence the way you think in other languages and will make you a better programmer.
Trust me, I'll wait for you on the other side. :) Good luck!
1
u/jiyinyiyong Aug 09 '21
Yes, ADT is a little hard, type class is harder, and wrapping IOs inside Monad is rather crazy, and using type classes over functions is really really nuts. So PureScript is probably not what you currently want.
And what are the problems you are facing? Probably you need another FP language, Clojure? Elixir? ReScript? Scala? or even Rust? you always have another language to try. Just find out you really want.
For PureScript, when it's hard personally I would blame that the tutorials are not teaching different people in different ways. Not all people has backgrounds on algebras and combinator logics.
0
u/[deleted] Aug 08 '21
[deleted] — view deleted comment