Go to file
2020-12-10 02:33:00 -06:00
data initial commit 2020-12-10 02:33:00 -06:00
lib initial commit 2020-12-10 02:33:00 -06:00
solutions initial commit 2020-12-10 02:33:00 -06:00
.editorconfig initial commit 2020-12-10 02:33:00 -06:00
.gitignore initial commit 2020-12-10 02:33:00 -06:00
index.js initial commit 2020-12-10 02:33:00 -06:00
README.md initial commit 2020-12-10 02:33:00 -06:00
testAll.js initial commit 2020-12-10 02:33:00 -06:00

Advent of Code

This repository contains solutions to advent of code problems in JavaScript.

Methodology

I have a few ideas I am following with these solutions:

  • Don't use any 3rd-party libraries (don't yarn add anything, don't even make a package.json)
  • Use as few node modules as makes sense (sure, use crypto, child_process, and fs, but don't use assert)
  • Build a collection of helpers in the "lib/" folder that helps to solve the problems quickly and concisely
  • Try, but not too hard, to make single-statement solutions

The most interesting thing written to service these goals is something called "Glib" (Generator library), which is similar to lodsh/lazy.js and built using generators to allow for lazy and intermediate-free operation (as much as possible). It also uses BigInts throughout, because why not.

License

This code is currently not issued under any open source license and the author (Kegan Myers aka terribleplan) reserves all rights. Feel free to peruse the repo, but this is my OC, don't steal until I choose a license. It'll probably be BSD/ISC/MIT or similar at some point.