It's a tough balance but yeah at some point you gotta maintain "blissful ignorance" with some things, or so I believe
23.12.2024 23:50 β π 2 π 0 π¬ 1 π 0@waseem-medhat.bsky.social
Programmer // Elixir Fanboy // Possibly DevOps? // Music Nerd (I suck at playing the bass) https://overthinking-development.blog https://github.com/waseem-medhat
It's a tough balance but yeah at some point you gotta maintain "blissful ignorance" with some things, or so I believe
23.12.2024 23:50 β π 2 π 0 π¬ 1 π 0IMHO I think adding a name often helps with making the code more self-documenting, especially when there are multiple occurrences of that variable in other clauses.
11.12.2024 22:07 β π 3 π 0 π¬ 0 π 0Started gradually falling behind but here is my day 10 solution: github.com/waseem-medha... #elixirlang #adventofcode
11.12.2024 11:45 β π 1 π 0 π¬ 0 π 0Simple one but I didn't know it existed before: `List.duplicate/2`
hexdocs.pm/elixir/List....
I always used `length/1` for lists but then discovered `Enum.count/1` which works for enumerables in general.
hexdocs.pm/elixir/Enum....
Nice π«
I'm this close to giving up ngl
I also learned some basic usage of ETS as an in-memory cache.
hexdocs.pm/elixir/erlan...
`NimbleParsec` is a library that provides a declarative and concise way for parsing data out of text.
hexdocs.pm/nimble_parse...
`Enum.reduce_while/3` is an alternative way of doing "early returns" where I was used to do only recursion + multiple clauses for that.
hexdocs.pm/elixir/Enum....
`Enum.chunk_every/4` is very nice for sliding window algorithms.
hexdocs.pm/elixir/Enum....
`Map.merge/3`: I already knew `Map.merge/2` but the 3-arity variant takes an extra function that specifies how to merge two values if duplicate keys exist.
hexdocs.pm/elixir/Map.h...
I thought it might be fun (and possibly helpful to others) to create a thread to document the things that I learned or used for the first time while doing AoC with Elixir. #adventofcode #elixirlang #myelixirstatus
08.12.2024 19:40 β π 11 π 1 π¬ 1 π 0All caught up! github.com/waseem-medha...
08.12.2024 17:37 β π 0 π 0 π¬ 0 π 0Trying to catch up with #AdventOfCode on #ElixirLang. Solved Day 7: github.com/waseem-medha...
Something that I learned and tried for fun but didn't end up using for my final solution was ETS.
I still find it weird that I'm growing an interest in AWS. Granted, a couple months can easily be still in the honeymoon period and I'm just enjoying the learning experience. But AWS in some aspects seems like the exact opposite of what I enjoy as a developer.
07.12.2024 18:18 β π 0 π 0 π¬ 0 π 0Been doing #AdventofCode with #ElixirLang (but fell behind today). I'm really enjoying it so far and learning a ton of stuff about standard library stuff I didn't know before as well as some external libraries. github.com/waseem-medha...
07.12.2024 17:23 β π 5 π 0 π¬ 0 π 0Hello world or whatever
07.12.2024 14:36 β π 3 π 0 π¬ 0 π 0