I managed to compile and write my instances for show.
But why is it so hard?
It took me days to notice I had the wrong type of json. Type system was sending me down the wrong path.
Finally, I retrieve the data and show it in a crude way on the page. But is it worth it? I have still to see the benefit of the type system in a practical setting.
How long did you struggle before you were productive?
That is why such languages are not popular and mainstream, it is hard for most people, people are lazy and weak, do not be like people and youâll be rewarded eventually. -)
Can you be more specific? I got stuck yesterday on a silly error. I spotted the solution, not by reading the error message or nonexistent documentation, but by staring at my code on the next day.
I cannot imagine having the luxury of leaving a problem at the back of my mind until it clicks. So how long should I persist and why?
I am lazy and weak, but what would be the reward? I like the aesthetic beauty of the language. But I did not move to a problem where I could see for myself the real pros and cons.
I do understand that with programming languages, people have different concepts of truth. Sifting through the confusion is not easy. I have given up on PureScript at least 3 times. Should I persist just to annoy those condescending TypeScript people?
Part of what made me give up on Purescript at least five times was trying to do complex front ends with Halogen. Halogen is very opinionated about how it approaches things. Iâve lately had a LOT more luck rolling my own bespoke monadic FRP interfaces with Deku and Hyrule. Funny enough though: as my project evolves, it starts to look architecturally a whole lot like Halogen!
In the past, I would give up and go back to work on the satisfyingly approachable back end of my app (which was written in Haskell).
Iâm a weird case though because Iâm doing this for intellectual enrichment and to build the free, open source decentralized tools that I want to see in the world.
But I had no boss hounding me for results to prevent me from coming back for more. If I did, Iâd surely have chosen something a tad less esoteric like React or Typescript.
I kept feeling a strong cognitive dissonance that never went away when I would give up on this language (particularly pronounced with Purescript because, as I said, itâs the only language that does what it does).
No one will judge you if you give up.
It would be a whole lot less boring (IMO) if youâd steer your questions in a more optimistic direction since youâre the only person posting lately.
Me being the only person posting lately is not optimistic, but you mention intellectual enrichment. Could that lead to something positive and optimistic?
Will the extra hard work with compiler errors help me avoid dementia?
I have ideas in my mind that I do not know how to express in code. In back-end languages, I could figure out, at least to some extent, how to do it. But I struggle on the front-end side. I started to learn PureScript, hoping that âexpect the unexpectedâ will somehow be not as bad if I learn PureScript. Did I misinterpret the YouTube videos?
I still feel the satisfaction of figuring out certain things about PureScript and being able to write a few somewhat useful examples.
In back-end languages, I can solve the problems in both directions. While I became somewhat confident with Elm, I still have a problem. Could the intellectual enrichment of PureScript help me to achieve it? The book about PureScript has helped me to clarify certain things about Elm.
I have only few months of high school education. I can not learn in the classroom setting or in a way that many people suggest. I need to experiment and solve problems. With Elm it was easy, with PureScript I hit the wall. Did I overcome to a sufficient degree to make it worth pursue it further? I do not know. The only way to know is to come back to it after few days and try again.
I am a negative man due to my life experiences. I will save you the details and ask you to appreciate the fact that you are lucky and did not learn too much about the negative side of life.
But I am going off topic. I have found how to send the POST request and parse the received data.
But the last two posters made me curious. What is the intellectual reward of PureScript?
In most programming languages, when I solve a problem, I usually feel like I understand the problem better. In PureScript, when I solve a problem, I usually feel like I understand programming better.
I also came from Elm. I had a great experience with it, but I picked up PureScript because I wanted to work on projects that werenât possible with Elm. It took longer to feel comfortable with PureScript but Iâm glad I stuck with it.
Similar things are said about Lisp. I benefited from learning Lisp, even if I will never use it at work.
That is not an easy answer. I can only see it if I create something similar.
How long does it take to get comfortable with PureScript? Itâs my second week of occasional experiments. It takes me a while to spot solutions to the problem when the compiler is not helpful.