https://adventofcode.com/2020/
For fun, I'm trying to complete the Advent of Code challenges using a different programming language each day!
This is a speed contest (and this is all trash anyway) so don't judge my code quality :) I've never touched about half of these languages before.
- Day 1: Ruby Oh ruby, having Array#combination felt like cheating.
- Day 2: Lua
- Day 3: Cobol! Bad documentation, but a very interesting and different experience. I'm looking forward to Fortran.
- Day 4: Swift Ugh. I felt like every example and StackOverflow post referenced an old version of Swift and no longer worked. I had no idea it was already at version 5!
- Day 5: Bash
tr,sort,head,tail,seq,comm, and one single for loop. Fastest solution by far. - Day 6: C (99)
- Day 7: AWK Not the best problem to have chosen awk for...
- Day 8: Crystal Fun! I've toyed with writing simple interpreters before, so this was a nice throwback.
- Day 9: Tcl Intimidating looking, but very well explained in the wiki. Once I got moving, Tcl wasn't bad.
- Day 10: Java I haven't used Java in a long while. Still not a fan...
- Day 11: PHP Building a cellular automaton. This felt like an interview question with an optimal solution I didn't know 😂.
- Day 12: Nim Surprisingly intuitive language, pretty fun!
- Day 13: Fortran A thousand segfaults later, I finally solved it. What a pain. I should have used Fortran on an easier, earlier problem.
- Day 14: C++ Its been a while since I've written any C++, but the day of Fortran made it feel like heaven.
- Day 15: CoffeeScript A little terser than normal JS, and totally adequate, but I'm not surprised people started giving up on CoffeeScript a few years ago.
- Day 16: Kotlin Before this, I was skeptical of Kotlin, but I loved it! It was a total joy to use. Unfortunately, I got hung up on a silly off-by one error where I read one less input line than I needed and was stuck for a loooong time.
- JS
- Elixir
- Erlang
- Python
- Go
- Perl
- Julia
- Dart
- R
- Rust
- Lisp
- Smalltalk
- Scheme
- Pascal
- Haskell
- Ada