I Coded in a Random Programming Language Everyday, For Science

preview_player
Показать описание
Advent of Code 2023 is UPON US! What better way to spend the holiday season, learn to program, and test your skills against your friends. This year, I've decided to try something kind of insane. I'll be choosing a language off the wheel every day.... let's see what happens.

🔥🔥🔥 SOCIALS 🔥🔥🔥
Рекомендации по теме
Комментарии
Автор

A normal youtuber uses an online wheel of fortune, an embedded programmer builds on themself

Oler-yxxj
Автор

"C++ is trying to be a Rust clone" is probably one of the most scathing remarks on the language.

oserodal
Автор

I think the "two-pass" solution is actually more efficient, since you can break as soon as you hit the first and last numbers. Whereas the other solution has to go through the entire string every time.

samtonetto
Автор

My dude says that c++ was intended to be c with classes, but casually proceeds to use typedef struct😂😂

IlyaKanis
Автор

You don't need to close the file because the destructor closes it.

Some programming languages that I would love to see on the wheel of (mis)fortune:
- Java: because it's very popular, i was surprised it wasn't on the wheel at the start
- Lua: because it's used for multiple video games
- Smalltalk: this was the language they used at my university when we started learnong OOP, sounds fun for a challenge
- Pascal: first language i saw at university, probably torture at this point
- Scratch: it has colours.

elbardo_lux
Автор

This is such a cool series idea! Keep up the great content!

matt-xqxv
Автор

Seeing you, a C dev, throw around -1 in uint32s caused irreparable emotional damage😢
Since halloween is already over probably better to compile with -Wall

ghostsssssss
Автор

"good programmers close your files". Good programming languages, like C++, close your files for you so you don't have to remember to do it manually. Also good programming languages have standard libraries that find the first number and last number in a string like C++'s std::find_if. std::atoi does exist in C++ in the <cstdlib> header, so you could have used it since you were basically writing C with fstreams anyway. This was fun to watch, I'm looking forward to Zig.

not_ever
Автор

Fantastic series idea! I had never heard of AOC before. We are doing it at work as a contest and I'm hooked!

Meyoutoo
Автор

🙏🏻 CHRISTMAS IS ABOUT GOD 🙏🏻
🙏🏻 VOTE FOR HOLY C 🙏🏻

nothappyz
Автор

Nitty picky detail: Should O(n) and O(2n) not be the same? Afaik there is a scalar in the definition of Landau big-O that captures any positive scalar, as the only requirement is that it is real and positive. I think the correct terminology would be scales like n, scales like 2n.

lucast
Автор

I’m quite curious about your thoughts on Swift, that’s why I was a little bit saddened by not seeing Swift on the wheel. 😅

People tend to overlook Swift because of misconceptions like it’s only Apple platforms etc etc. Basically if you like the philosophy of Rust, Swift maybe for you. Swift was created by Chris Lattner and he along with few other brilliant minds laid pretty impressive foundations for the language, compiler and philosophy

evoboy
Автор

It is funny, that you use an uint32_t to store -1 aka since it unsigned, than you compare it to an int literal of -1, you are really lucky, that the underlying bytes are exactly the same, since no real conversion happens, but the result just happens to be correct xD

totto
Автор

Bro literally said C++ is trying to be a rust clone, As the proposal of type traits in C++ was made in 2004 and the concept of owner ship(smart pointers) was made in 1990s, when rust is not even a thing💀

nyssc
Автор

"C++ is trying to be a rust clone" lmao

abhinavk
Автор

This mans out here setting a uint32_t = -1 smh

Faimyn
Автор

I did earlier aoc today (day 1) in c and I came up with a solution that was just a translation of what you did (at least I think so). It's always fascinating how on these easier problems a lot of solution end up looking and working similarly !

theminecraftscorpython
Автор

Please finish this series. Don’t stop half way through

BobGoldfield
Автор

Chat is definitely gonna force you to use eso langs like IuseArchbtw or Brainfuck

Archbtw_
Автор

This was fun to watch!
Some folks have mentioned grabbing the last digit by iterating backwards, but I don't think that would work if you had a line ending in, say, "oneight." Single pass is just easier and more reliable.
I can tell you're not the most comfortable writing C++, but I appreciate that you stuck it out and made it work. Hopefully you enjoy the next language you land on! 😂

ISKLEMMI