Day 5 / 300 - Today we learned in the Haskell Challenge:
- Everything is a function
- Function composition is important in Haskell
- Functions look lean compared to TypeScript
- Floating point precision is bad! Yuck! (0.1 + 0.2 or 0.2 + 0.4)
- Tabs are bad (and my Neovim config is bad too)
- Everything inside a function is an expression
- A function without parameters is called a definition
- Recalled referential transparency from Day 2
- Type definitions are still not very clear to me (why does :t 5 return 5 :: Num a => a but :t "a" returns "a" :: String and not something like "a" :: String a => a?)
Thank you again for your support to everyone who joined me - I hope to see you next time!
Take care!
Day 4 / 300: Yesterday was exciting. I haven't made much progress, but I explored many concepts. Observations and questions from Day 4 of the Haskell Challenge:
- Distrobox export for ghci is broken on host
- Prefix functions can be used as infix
- But how to use infix as prefix functions ("*", "/", and "+")
- The arithmetic operator `/` isn't the same as the function `div`
- Negative numbers always require parentheses when used as arguments
- Use `not` for negating a `Bool`, but `/=` for a negated comparison. But `not True == False` works fine too
- Error messages are hard to read and understand
- `succ "a"` causes an error, but `succ 'a'` works as expected and returns `'b'`
- `max` and `min` also work on chars I did a lot of experimenting and didn't progress much in the book
Here is the replay: https://t.co/sFENVATWf0
Take care!
Day 3 / 300 of the Haskell challenge was all about setting up my development environment. Read about my journey, my thoughts, and learnings in the blog article.
I now have a working Neovim installation wired to the Haskell Language Server (HLS).
Ready for Day 4!
https://t.co/mWHZzhdfnR
When working on a side project, itโs really a downer when you pick it up after 1+ years and the first thing you have to do is spend days on library updates and migrations.
Well, not with Elm. Elm is feature complete, and you can pick up the code where you left it 5 years ago.
Isnโt it neat?
I tried to break it down in a short video, if I misunderstood some concepts feel free to correct me as I am here for the learning and not the teaching. Thank you and take care!
https://t.co/RnKDKFMGRx
Day 2 of the Haskell Challenge. Today I mostly focused on understanding what 'referential transparency' means, in both the computer science and linguistic context. It was confusing at first but I am sure it will eventually click within the next 298 days.
https://t.co/ReosO3RWuU
My thoughts and learnings after my first day (but not first attempt) of learning Haskell. I had fun streaming this live, thanks so much to everyone who joined me today!
Let's do this for real. I can't wait to look back on this day after reaching day 300!
Blog: https://t.co/aiaVVWdUop
YT Replay: https://t.co/eLD6fmJvNg
Haskell learning update:
- [1,2,3] is syntatic sugar for 1 : 2 : 3 : []
- pattern matching in Haskell is hard to get used to (for me)
first :: [a] -> Maybe a
first [] = Nothing
first (x:_) = Just x
but (x:_) is pretty cool
- guards combined with pattern matching is fire
In my experience, you can work on this. From what I have observed, the smarter you are, the more difficult it is to speak publicly because you will question many things others won't. It will take time and effort.
The most important thing is that you learn to like or accept your own voice. For example, in voice messages to your friends, recordings, and idk what.
Good luck and all the best!
One thing is sure: I will always have a job, simply because I find it too boring not to work.
I was and stay open minded to anything and am not attached to what I am currently doing at all ๐คท
AI psychosis is real? Fascinating how convincing those people can be, about AI taking our jobs.
Sometimes I wonder whether I have a psychosis, or if they have visions. Nor are healthy.
No doubt, there will be a shift in society, like there has always been. Jobs will go and others will be created.
Bus drivers may become "remote bus driver supervisors" making sure AI buses don't crash into walls.
Or developers becoming "AI agent supervisors" (fairly doubt).
So many possibilities.
Actually it's way easier than what people might think:
- Keep your total calorie intake lower than what your body naturally burns
- Do whatever you like to do at the gym, it has absolutely no effect on weight loss
The easiest is a fitness tracker that estimates your daily calorie burn and a calorie tracker to estimate your daily calorie intake ๐