GithubHelp home page GithubHelp logo

axllind / adventofcode2015 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.28 MB

Solutions to all 25 AoC 2015 problems in Clojure! :christmas_tree:

Home Page: https://adventofcode.com/2015

License: MIT License

Clojure 100.00%
advent-of-code advent-of-code-2015 aoc2015 clojure advent-of-code-clojure

adventofcode2015's Introduction

AdventOfCode2015 λ

Solutions to all 25 AoC 2015 problems in Clojure!

Having done both 2019 and 2020, I wanted to go back and do some of the earlier AoC years. I figured 2015 was a perfect opportunity to force myself to become better at functional languages so I did all problems in Clojure. I had never used the language before, or any of the ones in the Lisp family for that matter! It was quite a steep learning curve for me. Mainly it was difficult to get used to reading the parenthesis syntax as well as the prefix notation that Clojure uses. Using a functional approach to solve the problems was really nice most of the time and really awful for some specific ones.

Only thing I did not like was the awful error messages. When you got an exception the top most call site would be reported, not where the actual exception occurred. How is that a thing? Overall, I was presently surprised by Clojure, after I got into it a bit. The language is so small and therefore quite simple. I also extensively used the ->> threading macro, which was amazing for readability.

Usage

clj -M src/DAY.clj

Other years

end-screen

adventofcode2015's People

Contributors

axllind avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.