Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
awesome-advent-of-code
A collection of awesome resources related to the yearly Advent of Code challenge.
-
advent-of-code-2021
Discontinued An Elixir learner's solution for the Advent of Code 2021 event. (by MarcusCemes)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Another thing worth trying, is connecting a Livebook instance (see: https://livebook.dev/) to a running application.
```
I find the above really elegant. It's correct, the special case for "0" is very explicit, and if you try a negative number, Elixir will simply be unable to match the given problem to a function definition (n < 0), which makes more sense than throwing "BadArgument" errors/exceptions.
If you really want to just solve problems, I advise sticking with Python, there's nothing wrong with it. Most languages also provide a lot of functional concepts, I'm sure Python is no exception (with some libraries). Be prepared that functional languages require you to think differently, but it is really fun to do things in a functional way!
Good luck!
[1]: https://github.com/Bogdanp/awesome-advent-of-code