Waseem's Avatar

Waseem

@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

19 Followers  |  17 Following  |  17 Posts  |  Joined: 07.12.2024  |  1.6942

Latest posts by waseem-medhat.bsky.social on Bluesky

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

IMHO 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    πŸ“Œ 0
Preview
aoc/aoc_2024_elixir/lib/d10/solver.ex at main Β· waseem-medhat/aoc Advent of Code solutions in Go and Elixir. Contribute to waseem-medhat/aoc development by creating an account on GitHub.

Started gradually falling behind but here is my day 10 solution: github.com/waseem-medha... #elixirlang #adventofcode

11.12.2024 11:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Simple one but I didn't know it existed before: `List.duplicate/2`

hexdocs.pm/elixir/List....

11.12.2024 11:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I always used `length/1` for lists but then discovered `Enum.count/1` which works for enumerables in general.

hexdocs.pm/elixir/Enum....

10.12.2024 20:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Nice 🐫
I'm this close to giving up ngl

09.12.2024 11:08 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I also learned some basic usage of ETS as an in-memory cache.

hexdocs.pm/elixir/erlan...

08.12.2024 19:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

`NimbleParsec` is a library that provides a declarative and concise way for parsing data out of text.

hexdocs.pm/nimble_parse...

08.12.2024 19:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

`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....

08.12.2024 19:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

`Enum.chunk_every/4` is very nice for sliding window algorithms.

hexdocs.pm/elixir/Enum....

08.12.2024 19:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

`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...

08.12.2024 19:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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    πŸ“Œ 0

All caught up! github.com/waseem-medha...

08.12.2024 17:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
aoc/aoc_2024_elixir/lib/aoc_2024_elixir/d07.ex at main Β· waseem-medhat/aoc Advent of Code solutions in Go and Elixir. Contribute to waseem-medhat/aoc development by creating an account on GitHub.

Trying 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.

08.12.2024 13:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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    πŸ“Œ 0
Preview
aoc/aoc_2024_elixir/lib/aoc_2024_elixir at main Β· waseem-medhat/aoc Advent of Code solutions in Go and Elixir. Contribute to waseem-medhat/aoc development by creating an account on GitHub.

Been 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    πŸ“Œ 0

Hello world or whatever

07.12.2024 14:36 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@waseem-medhat is following 16 prominent accounts