lud
Hello,
I just extracted the boilerplate management code that I used to work with in previous years:
It is yet another generic input downloader (with cache), solution module generator, test generator, and commands to work with any year/day combination, promoting TDD practices.
If you have your own boilerplate or helper code, post it below, people may be interested.
Happy coding!
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Quite interesting article Google brought me. Didn’t find any mentions about it here.
What do you think in general? Would you use togethe...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hi there! :wave:
@frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
lud
If found this one too that looks pretty nice:
https://github.com/mhanberg/advent-of-code-elixir-starter
Aetherus
I just use
kino_aocin my livebook.Here’s the link: GitHub - ljgago/kino_aoc: A helper for Advent of Code (a smart cell) for Elixir Livebook · GitHub
stevensonmt
I decided to roll my own AoC framework/helper this year but started a day too late. I’m still trying to polish it up but pleased with it so far. I’ll try to remember to post it here once it’s done. I’m curious about how people feel about configuration for this sort of tool. I’m setting it up for myself so it’s getting the session cookie from a hard coded ENV variable and the default paths are non-configurable (though passing non-default paths is available at runtime). Is this how most people do it or would it be better to have config options setup for everything?
lud
Well a variable or two for path prefixes with sane defaults are not hard to setup.
But few people will use our tools, maybe nobody will ; there is no need for fully configurable stuff here, it’s not like a genral purpose application framework.
I do some of the days in Rust and I use a boilerplate, I don’t really care where the files are, I just do what the README tells me because I just want to solve the problems. The “app” does not need to be deployed somewhere, it just needs to compile and be called from the console.
lud
Hello everyone,
I’ve added more helpers and documentation for my Advent Of Code library.
It’s still just a bunch of helpers to ease fetching and caching inputs, and generate boilerplate code and tests.
But I also updated the README file to be a comprehensive guide on how to use it and solve your first AoC puzzle. This is intended for Elixir beginners and/or AoC beginners.
For more seasoned alchemist elves, I still think the library adds value (I made it for myself after all). There is a TL;DR section in the README and a documentation for all the available commands.
Tell me if you find that useful, and if you have any idea to improve it!
adamu
Personally I go with a script I just copy/paste each time. Works with no dependencies and hopefully will continue to do so for many years!
https://git.adamu.jp/adam/AdventOfCode/src/branch/main/dayN.exs
ken-kost
Trying out your library for this year.
So far enjoy it. 
lud
Nice! Thank you. Good luck for the challenges
ken-kost
One suggestion:
trim: trueinInput.stream/2should be default. wdyt?edit: Also question, how to have multiple days in
.aoc.defaults? I made a PR for each day and now I’m merging day 2 but the files conflict, how do I resolve this? Maybe I should just git ignore it.lud
I am not sure trimming would be the default. The
Inputmodule should be as close as possible toFile.stream!because without this library you can just callFile.stream!on your input path and it should work as normal. There is a lot of puzzles where blank lines and indentation are meaningful, so discarding them by default does not seem a good idea to me.Yeah you should just ignore that file. But I wonder why you use it anyway. I am not sure if the docs are clear enough but the
aoc.setcommand is intended for working on another year, or extending your work on some day when you are not finished in time.If you just remove the defaults file, the commands will pull the input for the current day, and generate the code for the current day as well.