MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/rh1g2j/modern_c_in_advent_of_code/honufdy/?context=3
r/cpp • u/Happycodeine • Dec 15 '21
This series, by Šimon Tóth, is a step by step guide through the solutions of Advent of Code 2021 using Modern C++.
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6
Day 7
Day 8
Day 9
Day 10
Day 11
Day 12
Day 13
Day 14
Day 15
83 comments sorted by
View all comments
31
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.
32 u/ForkInBrain Dec 15 '21 Yes, C++ will not win over Python if less lines of code and less boilerplate is the highest priority.
32
Yes, C++ will not win over Python if less lines of code and less boilerplate is the highest priority.
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.