jsadvent/README.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

2020-12-10 08:33:00 +00: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" (**G**enerator **lib**rary), 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 `BigInt`s 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.