r/cpp • • Dec 15 '21

Modern C++ in Advent of Code

This series, by Šimon Tóth, is a step by step guide through the solutions of Advent of Code 2021 using Modern C++.

242 Upvotes

83 comments sorted by

View all comments

31

u/Ecclestoned Dec 15 '21

Seeing these gives me no desire to use c++. Most of the challenges are 10-20 lines in Python. Meanwhile the c++ code starts with "first let's define an implementation for a tuple, it's constructor, comparison operator, and make it hashable". Yikes.

0

u/[deleted] Dec 15 '21

[deleted]

6

u/Ecclestoned Dec 15 '21

Actually python is mostly C (at least if you are using cpython).