Sometimes I had the same feeling
I thought thatās just a thing that functional programmers do differently (more math-like) than oop programmers (which I am in my job). But just needed to read it twice and then I was ok with it.
I did the second exercise of chapter 5 now, 2 different versions:
Iām up to List Comprehensions so still quite a while behind you. I wanted to re-read part of the chapter but hopefully Iāll be able to catch up a bit tonight. Nice to see you are still flying thro it
Another maths orientated thing I spotted (and what left me scratching my head) is on page 54, where we encounter lists:filter(P,L)āwhich returns a new list of all the elements E in L such that P(E) is trueā.
E is easy enough to figure out (elements) as is L (list) but whatās P stand for? Felt like I was missing something
On the quicksort example (which is as far as Iāve got atm) I was hoping to be walked through each step of the recursion too, just for that extra bit of reinforcement and clarification of what is going on exactly.
This did get me wondering whether it might be worth reading another Erlang book alongside this book - whatās better than someone teaching you something? Two people teaching you the same thing!
Filters are either predicates (functions that return true or false) or boolean expressions
I donāt think Iāve heard functions that return true or false being described as predicates before, at least not explicitly like this. (Would have been cool if this was mentioned nearer page 54 )
I usually find books are split into separate parts, which helps make it easy to match similar books together. So we could start Learn You Some Erlang for Great Good! (No Starch Press) (Paid/Free) at the end of part 2? (So after chapter 10)⦠or we can see how it goes for now? If things start getting hairy we could always start it sooner or if we find itās not needed, hold off
Thatās good to hear Rainer! Itāll give me chance to catch up
Iāll proceed with only reading this book at the moment, as long as I donāt get into bigger troubles
I shouldnāt start more things, already have too many spawned processes
Finished reading chapter 6, nothing exceptional here (ok, bad joke, itās about exceptions).
Error handling isnāt the most exciting topic for me, but I like Erlangs āfail fastā & ālet it crashā strategy.
Do we have a homeoffice thread? Or so far just the standing desk thread?
Haha, cool, Iāll stick with it too for now then - tho I havenāt had much time for it. Hope to catch up soon tho! Wel done on getting through chapter 6!!
Whoo hoo welcome to the club DG I am sure you will catch up to me pretty soon as this time of year is always hectic for me.
Unfortunately I havenāt had much time to get further into the book (sorry @Rainer!) but I keep meaning to post a thread about visualising recursions - Iāll try to do that soon and mention it in this thread How you getting on @Rainer - bet youāre way ahead now
I skipped exercise 6.2 as itās not so interesting for me at the moment, and continued reading.
Iām now in middle of chapter 7, and itās exciting
Itās about binaries and how we can pattern match on single bits, thatās cool stuff. Especially if I think how Iād do it in C++ and what amount of awkward code Iād produceā¦
On a side note: In one example the notation 16#12345678 is used, which I seem to have missed (or already forgotten again) in chapter 3. It means this is Base16 notation, which is HEX. Another example: 2#11 is binary and evaluates to the integer 3.
Iām so sorry for not being able to read anymore Rainer! This time of year is always a bit hectic for me, hopefully Iāll be able to get back to it soon Hopefully itās given some time for @DevotionGeo to catch up as well
What do you think of the book so far? Dynamic code loading - I canāt wait to get to that!
My time is also very limited at the moment, but usually Iām reading a bit just before sleeping
I like the book, but the more I progress the more annoyed I get by C# (my daily business) Iām liking the Erlang syntax, which came unexpected
I continued with the exercises, so hereās the second (of three) part from 8.2:
I really wonder how someone experienced wold solve this. I used the process dictionary that was introduced in chapter 8 as a mutable data structure, but I think this canāt be considered āgood practiceāā¦