this post was submitted on 10 Jun 2023
4 points (100.0% liked)

Advent of Code

290 readers
1 users here now

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

founded 1 year ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] ArtVandelay 2 points 1 year ago (1 children)

I typically use Python and PowerShell, mainly as a shameless excuse to write more Python and PowerShell

[–] karburator 2 points 1 year ago (1 children)

How was your experience with PowerShell? Do you manage to solve all days in it, or for some tasks it is really a bad choice?

[–] ArtVandelay 1 points 1 year ago (1 children)

In all honesty, power shell is absolutely not the right tool for every single day of the challenge. It was more of a" I know I shouldn't do this but can I?" type thing. And the answer was no lol. I had to revert to python for some things simply due to the vast nature of libraries that made certain tasks trivial

[–] karburator 2 points 1 year ago

It was more of a" I know I shouldn’t do this but can I?" type thing.

Yeah, every year on r/AoC there were several of those thing :D And PowesShell is the most normal among those :D

[–] stonecharioteer 2 points 1 year ago

I'm planning on using 10 languages to retrospectively solve all the previous years' questions:

  1. Python
  2. Rust
  3. Go
  4. Typescript
  5. Kotlin
  6. Lua
  7. Elixir
  8. Haskell
  9. Zig
  10. Ruby
[–] [email protected] 1 points 1 year ago
[–] hal9001 1 points 1 year ago* (last edited 1 year ago)

I've been flipping between Rust and Clojure last few years. I think my plan this year is to give either gleam or pony a shot.

I've often advised people that are both new-ish to programming and want to learn a new language through AoC to solve the problem in the language they are most familiar with and then go back and solve it with the new language. It takes the pressure off solving the puzzle and lets you focus on the language.

[–] [email protected] 1 points 1 year ago

I did mine in common lisp and Racket this year as a way to learn these languages. Plowing through the problems in a new language is a great way to learn. I also used chatGPT as a tutor.

[–] krisalyssa 1 points 1 year ago

I use a different language every year, as a way of learning that language. So far I've used Elixir, Typescript, Rust, and Clojure.

[–] stabbie_mcgee 1 points 1 year ago* (last edited 1 year ago)

I tro to use it as an opportunity to familiarise myself with a new language - I picked Dart last year, it's a fun way to get your head around core syntax, etc...while not just reading tutorials or documentation.

[–] [email protected] 1 points 1 year ago

Depends. Last year I wanted to flex my Haskell muscles and the year before a plethora of languages kotlin, c, c++, python, haskell,.. Although I must admit it is much easier on the mind if you can reuse file imports and generalized algorithms in the same language the whole month.