Тёмный

How much do Programmers SWEAR? 

Kedrigern
Подписаться 1,4 тыс.
Просмотров 1,5 тыс.
50% 1

Programming can be very rage-inducing. Today we put it to the test. How far are these coding challenges and puzzles able to push me? Will I swear my head off or will I remain calm throughout the whole video?
This is an interesting question as the puzzle I will be solving today has already been solved in a previous video and all that is left to be done is some optimization based on the code reviews I received.
This is an insight into a programmer's mind! Let me show you how it works and what a software engineer thinks about when designing a solution to a problem.
🔔 Subscribe to the channel for more gaming adventures, coding challenges, and tech insights!
🎬 Watch the full 7 Billion Humans series here: • 7 Billion Humans
🎮 Other Puzzle Videos: • Shapez Puzzles
🔥 Shorts: • Shorts
#puzzlegame #codingchallenge

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@realdragon
@realdragon 3 месяца назад
"We are gonna put our idiocy aside" Impossible!
@KedrigernGaming
@KedrigernGaming 3 месяца назад
Well I tried 😂
@Scar32
@Scar32 3 месяца назад
Hey! programer here. So those workers in the mode code level are kinda like worker threads in multithreading where if you have a lot of the same hard calculations going on you split it up to multiple worker threads so each one gets a portion of the entire workload. Not really fully sure how the mechanics of this games works but im thinking you could make each worker process one row or one column each and add the results to memory so each worker has to deal with all the numbers which could be faster? idk
@KedrigernGaming
@KedrigernGaming 3 месяца назад
Hi there! In this game, (sadly?) there is no shared memory. And every worker gets only 4 memory slots. If they had more memory I guess we could do what you suggest and keep one counter per number. Then some would also have to go twice as there are more columns than people. I really like your idea though! Thank you for this insight!
@lovalmidas
@lovalmidas 3 месяца назад
The floor is your shared memory. That is the curse of being a engineer/programmer haunting me. :D Though that probably won't help you here. Managing shared memory is almost always slower (you have get two workers to 'talk' and make sense of what happened, and that takes precious resources). I suspect the fastest solution (for the Mode Code) is mostly a combination of the following: 1. Consider the first worker to the left, let her walk up 3 tiles, scan all 9 tiles, increment counters accordingly, walk up 3 tiles. Repeat until there is a need to change direction. Ideal for 9x9 grid (9 scans), but also doable for 8x8 (9 scans) 2. Fixed routes. The layout is fixed, we do not need a general n-by-n solution, so use that to your advantage. You can use a fixed path instead of lookup for blank tiles. With that you can customize the path up, and then snake down (like S), so that you exit the grid closer to the result row. The traversal sequence starting from worker 0: up, up, up, right, right, down, left, down, right, down will have you at the tile directly right of worker 5. 3. Have each worker approach the puzzle without using the wall. Assuming each worker from left to right has incremental counter to check (0,1,2,3,4,5), that counter can be used to indicate how many spaces to move left before going up. But I think you might have your own solution already :D
@KedrigernGaming
@KedrigernGaming 3 месяца назад
That is really nice. I love it! Not sure if my other video on this problem came out already or is still in the works. But I did almost exactly what you are suggesting (still keeping the generic solution though). However I missed that I could scan all 9 tiles around. That is an awesome touch - I only do 3 in a row and step up once. I will have to revisit this level again thanks to you 😀 there is really no limit to how much oprtmization we can do here.
@pitooofuti8677
@pitooofuti8677 3 месяца назад
Love the icon of the channel and the show (The Mentalist)
@KedrigernGaming
@KedrigernGaming 3 месяца назад
Me too! Gotta watch it again some day.
@pfifo_fast
@pfifo_fast 3 месяца назад
the more you swear, the less of a programmer you are, so to answere your question, the best programmers never swear.
@KedrigernGaming
@KedrigernGaming 3 месяца назад
I don’t think I have ever seen such person. Messing up and swearing can be fun though.
@lovalmidas
@lovalmidas 3 месяца назад
Swearing is just a way of programming my cope against a frustration. Given that the compiler never responds to a swear, I guess programmers like me just learn to swear silently. Until there are other people around, probably :D
@KedrigernGaming
@KedrigernGaming 3 месяца назад
I think I sometimes mutter some swearwords under my breath when alone. But overall it seems like a social thing. Similar to laughing when you want others to know you understand a joke and find it funny. Here you are letting others know you are dealing with a very annoying situation. And it might even grow into a nice chat when you explain what the frustrating thing is and then you all swear together.
@FoxSlyme
@FoxSlyme 3 месяца назад
I think you have my suggestions for The Mode Code, right?
@KedrigernGaming
@KedrigernGaming 3 месяца назад
I went mostly from memory/tried to figure it out again myself. So it is likely the “memory” comes from the comments I read when the original video came out.
@gsestream
@gsestream 3 месяца назад
I promise I made good code.
@KedrigernGaming
@KedrigernGaming 3 месяца назад
I say that at least twice a day. Once to my boss and once to myself
Далее
olcPixelGameEngine
20:17
Просмотров 164 тыс.
Thermoelectric cooling: it's not great.
32:51
Просмотров 1,8 млн
Ozoda & Dilime - Lada
00:36
Просмотров 1,4 млн
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,6 млн
Optimization can SAVE Your Code
17:04
Просмотров 1,2 тыс.
We made Vampire Survivors BUT in 10 Lines of Code
7:08
Why you SHOULD use Seeded Randomness!
4:03
Просмотров 1,3 тыс.
Code Review Best Practices For Software Engineers
8:14
2-Minute Rule to Learn Coding - Atomic Habits
7:58
Просмотров 1,1 млн
This Coding Challenge Made Me RAGE
27:22
Просмотров 2,8 тыс.
Minecraft Clone in C++ // Code Review
40:29
Просмотров 341 тыс.
SOME UNIQUE C++ CODE! // Pacman Clone Code Review
26:42
Ozoda & Dilime - Lada
00:36
Просмотров 1,4 млн