GithubHelp home page GithubHelp logo

logan-connolly / aoc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 221 KB

:warning: Development moved to Sourcehut

Home Page: https://git.sr.ht/~loges/aoc

License: MIT License

Python 57.53% Makefile 0.83% Go 41.64%
advent-of-code algorithm-challenges golang programming-challenges programming-puzzles python

aoc's Introduction

Hello there ๐Ÿ‘‹

I am no longer hosting open source projects on GitHub.

I explained in a recent post my reasoning for why I migrated my projects to SourceHut.

aoc's People

Contributors

logan-connolly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jgarte

aoc's Issues

Add templating

Todos

  • Spec out python and golang solution templates
  • Implement CLI for generating solution skeletons
  • Update Makefile accordingly

In the end, I should be able to call something like this:

make skeleton lang=python year=2022 day=1
make skeleton lang=golang year=2022 day=1

And the following should be generated:

  • All languages: solution directory (ie. ./2022/01/), input.txt
  • Python: main.py
  • Golang: main.go and main_test.go

Support multiple languages

This year I want to do AOC in a different language, therefore, it makes sense to refactor the code base to be language agnostic. To do this I need to do the following:

  • Transform the python solutions into standalone scripts (deprecate the python CLI and many of the helpers). If there remains an aoc python package, it should only contain IO helpers.
  • Move year solutions to project root and add test data (input.txt) to day directory

This is how I envision the solution structure to look like:

./2020
  |_ 01
    |_ input.txt
    |_ main.py
    |_ main_test.py
    |_ main.go
    |_ main_test.go
    |_ ...
  |_ 02
    |_ ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.