techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#adventofcode

0 posts0 participants0 posts today

Finished Advent of Code 2024.

25 days of exercises, parts 1 and 2. Done over a period of 1.5 months, mostly on weekends.

In COBOL.

Was it worth it? 😅

Some exercises were tough! Some took several days. I wasn't sure I'd be able to complete it. The subreddit was helpful for those days!

So will I participate next year? 🤔 Which language? Fortran? 😄

My solutions (not very clean code! 🙈): github.com/caarmen/aoc

advent of code exercises. Contribute to caarmen/aoc development by creating an account on GitHub.
GitHubGitHub - caarmen/aoc: advent of code exercisesadvent of code exercises. Contribute to caarmen/aoc development by creating an account on GitHub.

Today I spent a LOT of time solving AoC2024 day2 puzzle.

I solved it in three ways:
1. Javascript, just how I normally write it (somewhat functional programming)
2. A fully FP javascript solution
3. clojure solution

I realized some interesting things:
1. the functional programming js solution was very pretty and clean, and I think js is pretty good at FP. (I'm just learning FP so maybe I'm wrong)

2. the effective LOC of both clojure and js solution were exactly the same, and I think in the cleanliness and readability department they are very similar. But maybe that is because I'm much more used to js

3. The effective LOC of the functional solutions were almost half the LOC of the "normal" solution

Here are the solutions
github.com/alirezaalavi87/adve

my solutions for solving advent-of-code puzzles. The solutions might be impemented in various languages. - alirezaalavi87/advent-of-code
GitHubadvent-of-code/2024/day2 at main · alirezaalavi87/advent-of-codemy solutions for solving advent-of-code puzzles. The solutions might be impemented in various languages. - alirezaalavi87/advent-of-code

A reminder that reading the docs can save time in the end. Who knew? 😅

Here's a little writeup of an adventure I had with Advent of Code, realizing after a few days of debugging and imposter syndrome that no, I don't need to implement an XOR function, it exists in the language. 😁 Also learned a thing or two about COBOL in the process!

medium.com/@ms.carmen.alvarez/

Medium · Advent of COBOL: When in Doubt, RTFM - Carmen Alvarez - MediumBy Carmen Alvarez