Whoo hooo welcome to the club @mafinar
I hope to get back in to this in the next week or two so you have plenty of time to catch up
Whoo hooo welcome to the club @mafinar
I hope to get back in to this in the next week or two so you have plenty of time to catch up
Reading the ToC and sample chapter, I got the idea that this book is no just for Erlang, but also an invaluable resource to learn about OTP, kinda like prepping you for the OāReilly book (Designing for Scalability with Erlang/OTP), I could be wrong though, canāt judge book by the cover.
I havenāt got to the OTP bits yet but yes, I expect it will leave you with a really good grounding in it. Are you a slow/fast reader? I am pretty slow unfortunately - so I expect you will overtake me in no time
I am an insanely fast reader. Finished āGetting Clojureā minus the Interoperating with Java and Macro chapters in a day to revise Clojure. But still, this is ~500 pages, reading Erlang hurts my eyes and I am no longer unemployed so ĀÆ_(ć)_/ĀÆ
I wish I was as fast!!
I think you may find you grow to like the Erlang syntax, at least I think that seems to be the case for a fair amount of people
I do like to write in it, but when reading it get tricky for me- Iām the slow writer fast reader type. The Pascal case atoms and lower case variables slow my reading speed. Oh wait, did I just get them reversed? (See what I mean?) Also this wonāt go away because every time my muscle memory settles down a little, Elixir will retune it.
But to be honest, Erlang is very simple. Much simpler than any non-Lisp languages I have encountered. Thatās what makes me want to learn it well.
Thatās something I was astonished about, after reading chapter 8 āThe Rest of Sequential Erlangā. The basic concepts are simple yet so powerful.
Looking forward to you catching up
Meanwhile, i did the last exercise of chapter 8:
unambiguous_function() ->
Exports = [Module:module_info(exports) || {Module, _} <- code:all_loaded()],
Functions = lists:flatten(lists:map(fun(F) -> function_names_in_module(F, []) end, Exports)),
unambiguous_elements(Functions, []).
function_names_in_module([{Funname, _}| T], Acc) ->
case lists:member(Funname, Acc) of
true -> function_names_in_module(T, Acc);
false -> function_names_in_module(T, [Funname | Acc])
end;
function_names_in_module([], Acc) -> Acc.
unambiguous_elements([Funname|T], Acc) ->
case lists:member(Funname, Acc) of
true -> unambiguous_elements(T, Acc);
false -> unambiguous_elements(T, [Funname | Acc])
end;
unambiguous_elements([], Acc) -> Acc.
I think thereās an easier solution, but Iām doing it at night with a tired brain
Whoo hoo!!!
Doesnāt it feel kinda special in your hands? Maybe itās just me but I really wanted to get the printed book as it would feel like thereās a little bit of Joe here - and it does too! Arenāt we a funny species?
I will look forward to seeing you get through this book
Yes.
I could imagine Joe speaking those lines as I was reading the first page
Such a well introduction, is the rest of the book as enlightening?
If you like what youāve read so far you are going to love the rest of it (at least based on what Iāve read so far myself).
Joeās personality shines through very strongly - it will fill you both with joy and sorrow - joy because itās him (and almost as if heās there with you) and sorrow because heās no longer around, and because you wonāt be able to tell him how awesome youāre finding Erlang thanks to him/his book
Itās far from depressing tho - I donāt think anyone could feel depressed in the presence of Joeā¦ and in this book his presence is most definitely felt
Hi everybody! Iām back after a long break. My 4 dayās trip got stretched to almost 3 weeks, and it looks like I wonāt be able to open the book for the rest of this year because of the tasks held. Where is everybody in the book? @mafinar, welcome to the club!
I didnāt make any progress on the book, instead Iām solving Advent of Code with Erlang when I find some time
Welcome back DG - I hope you had a nice trip
Iāve not made much progress tbh but like you hope to get back to it soon. Rainer is steaming ahead and from what Mafinar has said, he may be flying through it too
I would like to place my bet now that I will probably be the last to finish the book
As Iām busy with Advent of Code you have some time to catch up
Thank you!
I enjoyed the trip a lot.
I just finished reading chapter 9
Itās about types in Erlang, how to specify them and find mistakes with the dialyzer.
Pretty interesting, as I didnāt know anything of that
Also I liked that Joe described writing good code and type annotations as a kind of art. Often while coding I feel like an artist, wanting to create something elegant and beautiful.
More people should feel like that, then the legacy mess Iām cleaning up at work wouldnāt look like it does
I really need to get back to this book
I hope @DevotionGeo and @mafinar are still reading it and Iām glad to see you are @Rainer
Yes I am reading it. On Chapter 10 right now. Will stop and contemplate on the language a little before moving to the OTP part (most of which I am familiar with thanks to Elixir but retelling by Joe will surely be an absolute pleasure)
Ah nice Mafinar! Though I was looking forward to your chapter-ly updates/thoughts - keep us posted on how you get on if you can (it can help keep the rest of us motivated too )