Тёмный

programming war crimes 3 

elseif
Подписаться 8 тыс.
Просмотров 215 тыс.
50% 1

join my discord to help make these videos: dsc.gg/elseif

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 268   
@ad4mwayn340
@ad4mwayn340 11 месяцев назад
Just remember: Any program is just a big if-else statement if you are brave enough.
@Kwaiiii
@Kwaiiii 9 месяцев назад
The yandere true
@anonimowelwiatko9811
@anonimowelwiatko9811 8 месяцев назад
I used to write my first programs like this. It was console RPG with like 10 levels, enemies and stuff. Then I used functions... then classes... well, it was progressive learning.
@EdKolis
@EdKolis 8 месяцев назад
People say that AI stands for Artificial Intelligence. That's not true. It actually stands for Aelse/If.
@accountrarysi2776
@accountrarysi2776 8 месяцев назад
Yandere dev
@_vindicator_
@_vindicator_ 8 месяцев назад
any program is just i++ if you try hard enough
@nvid
@nvid Год назад
0:43 "Not sure why it does that, but it's a feature now" **Mojang taking notes**
@flandrescarlet4298
@flandrescarlet4298 6 месяцев назад
as an usual
@wilh3lmmusic
@wilh3lmmusic 2 месяца назад
Piston won’t power until updated
@hackanimator12
@hackanimator12 Год назад
before I watched this video I thought I was a bad programmer, now I know there is people worse, truly an motivational video
@elijahbuscho7715
@elijahbuscho7715 Год назад
2:04 at first I was thinking "ha ha look at all of the pointless layers of code for such a simple operation", and then the 'return false' hit
@TheVonWeasel
@TheVonWeasel Год назад
That's because they defined False = true earlier
@KewalTailor
@KewalTailor 3 месяца назад
return(orig == val) And moreover why tf is in function first of all
@gabrielbarros493
@gabrielbarros493 Год назад
0:15 How calculators were made
@lux_nemesis
@lux_nemesis Год назад
when I was a child I thought this is how calculator works
@zai_ry11
@zai_ry11 6 месяцев назад
​@@lux_nemesis lol same
@FaultyTwo
@FaultyTwo 10 месяцев назад
2:10 I hate the fact that it actually works. It works.. *It actually makes sense.*
@THExRISER
@THExRISER Год назад
Oh boy it's a trilogy now, keep 'em coming!
@psyrow4957
@psyrow4957 Год назад
0:30 Behold! An ACCESSOR!!!!!!
@M1Miketro
@M1Miketro Год назад
Once in Processing I kept changing the fill color without drawing anything. It took a while for me to realize and I saved 15 lines of code.
@heroes-of-balkan
@heroes-of-balkan Год назад
I remember when I wrote 50 to 100 lines of code for random numbers in between 2 numbers
@Chaseis
@Chaseis 7 месяцев назад
I love how most programming war crimes are either: You dont actually make an algo and spit out something hardcoded or you dont know what a loop is
@Dodecatone
@Dodecatone 9 месяцев назад
that ternary "?true:false" terrified me
@MrAbrazildo
@MrAbrazildo Год назад
1:52, this is valid. In C++, 0 is false; the rest, true. So it was a f() to say if the number was positive.
@DavisTibbz
@DavisTibbz 11 месяцев назад
The joke is that they could simply return: result >=0
@MrAbrazildo
@MrAbrazildo 10 месяцев назад
​@@DavisTibbzYeah. That's what happens when 1 play cards or chess, while watching a video.
@ZeNyfh
@ZeNyfh Год назад
i had an even funnier one that i caused, had a java instance in task manager, all of the sub-instances were python
@alexandersemionov5790
@alexandersemionov5790 Год назад
my wife tried to understand why is this funny
@jumperpro5392
@jumperpro5392 Год назад
Jkm preparing a top 10 coding life hacks video after watching this
@mandarbamane4268
@mandarbamane4268 Год назад
1:21 he's too powerful
@bmusic9817
@bmusic9817 Год назад
Very entertaining, again. From where do you get all these examples?
@coel3572
@coel3572 Год назад
he works at google
@kris_pendragon
@kris_pendragon 6 месяцев назад
1:05 ive actually done that, but with sleep(30) when it reaches 99% loading. XD
@Wranderous0001
@Wranderous0001 Год назад
You know the code is evil when it makes a face at you. >=0
@o_s-24
@o_s-24 Год назад
From now on I'm using !
@mandarbamane4268
@mandarbamane4268 Год назад
0:46 been there, then I just wrote other function which will return/end when it needs to stop checking further (no nesting, just one after other) & return at each failure case.
@maxi_rios_
@maxi_rios_ 17 дней назад
Boludo, últimamente me aparece en el inicio de RU-vid, standups que salieron en Bendita de youtubers que sigo hace banda. Ya este es el tercero junto a Luquita Rodríguez y Rober Galati
@ExponentialWorkload
@ExponentialWorkload Год назад
this is normal code what do u mean i ship this to prod daily
@mandarbamane4268
@mandarbamane4268 Год назад
2:09 man wtf lol
@knockstick
@knockstick 6 месяцев назад
1:55 he forgor await
@Charisios10
@Charisios10 5 месяцев назад
Find this man!
@InternetExplorer77777
@InternetExplorer77777 11 месяцев назад
1:56 I did this in Lua, still don't know why I did it.
@Gurem
@Gurem Год назад
I'd donate a project of mine so you can make vid of all the war crimes.
@cmaxz817
@cmaxz817 6 месяцев назад
1:01 is basically bogus. That's not the way to set framerate and hertz in Unity.
@xBZZZZyt
@xBZZZZyt Год назад
02:08 no work with -6.9
@KiiXii
@KiiXii Год назад
Lol imagine having to code to do that, like bruh, _I do that without code every day!_
@morgan3692
@morgan3692 9 месяцев назад
return (result >= 0 ? true : false); What's problem with that?
@Q.A.D.D.
@Q.A.D.D. 8 месяцев назад
return result >= 0; This returns the exact same thing.
@cfehunter
@cfehunter 7 месяцев назад
If you call a function called "AreBooleansEqual" you kind of deserve that.
@hamslammula6182
@hamslammula6182 Год назад
What’s wrong with 1:52 ?
@walidbinsiddik
@walidbinsiddik Год назад
result>=0 is a boolean expression, you're literally saying is true then true, if false then false
@hamslammula6182
@hamslammula6182 Год назад
@@walidbinsiddik is this not just the same as if (result >= 0) return true; else return false; I understand that it could just have been: return result>=0; but the ternary return statement doesn’t seem like much of a “programming war crime”
@walidbinsiddik
@walidbinsiddik Год назад
@@hamslammula6182 It's just extra code that doesn't have any use, also makes it less readable and non sense. That's why
@snoiqnp
@snoiqnp 7 месяцев назад
What was wrong with the sql around 0:25
@juanmarcosgalindomendoza4477
@juanmarcosgalindomendoza4477 6 месяцев назад
They made a join from the same table, then a where to make a sub query, just to put the id in the sub query... just why...
@nd.b77
@nd.b77 Год назад
if (true) liar = false;
@multiamphetaminsaft
@multiamphetaminsaft 6 месяцев назад
The biggest crime is your style of cutting vids
@BünyaminAkçay-y8r
@BünyaminAkçay-y8r Месяц назад
There is no crime at 1:52
@supermariomistickgames4700
@supermariomistickgames4700 Год назад
I actually am scared to know where you get those images
@CatnipedUwU
@CatnipedUwU Год назад
:3
@almicc
@almicc Год назад
I once wrote a function that takes 11 parameters which simply initializes an object whose constructor takes all 11 parameters in the same order. I'm happy to say that I've reduced the parameter count to only 9 after a few hours of intense self-reflection.
@CodeWithAle
@CodeWithAle Год назад
Monster
@nope.0.
@nope.0. Год назад
The real criminal is the object that takes ordered parameters with that many items and not a Hash. If you're consciously aliasing something, at least you're paying some consideration to design.
@lebgen
@lebgen Год назад
I cant tell if you're serious or this is a 9/11 joke
@almicc
@almicc Год назад
@@lebgen im serious, it is not a 911 joke
@Foxxey
@Foxxey Год назад
​@@lebgen bruh
@wilsonwilson137
@wilsonwilson137 Год назад
that last one with the absolute value is pure genius
@mrocholl
@mrocholl Год назад
considering how js treats numbers...this might actually be the only way xD
@Houshalter
@Houshalter 9 месяцев назад
I'm ashamed to say I've done this. Can't remember the exact details but I think I was trying to round a number to some amount of significant digits. Was easier to just use the standard library function for displaying a number as a rounded string, and convert it back to a number.
@soyitiel
@soyitiel 6 месяцев назад
It is kinda genius, no unnecessary complexity (for the dev, not the cpu), just a straight cut to the point
@lonelyghostenjoyinglife4517
@lonelyghostenjoyinglife4517 4 месяца назад
lol i remember doing Math.pow(a*a, 0.5) to get absolute value
@thebigcheese1153
@thebigcheese1153 Месяц назад
@@soyitielTbf you probably could return -(number) and it would work but that’s not fun…
@AwesomeCadecraft
@AwesomeCadecraft Год назад
2:08 genius
@Animator2D.
@Animator2D. 10 месяцев назад
1:07 Right now, most loading screens work pretty much like this
@naashchaa
@naashchaa Год назад
I really like these videos, however I'd like to point out an issue in editing: if you have a very long strip of text that carries over multiple lines, and you do a left to right pan on it, you have to replay the video a few times to actually read what it says, because after you panned to the right for the first line, the beginning of the second goes out of frame, and so on
@else1f
@else1f Год назад
just channel your photographic memory smh
@jonatanpl3899
@jonatanpl3899 Год назад
Just recode ur brain to see it all in one go
@nvermr
@nvermr Год назад
@@jonatanpl3899 use brainfuck for it
@jarodnewman5535
@jarodnewman5535 Год назад
Pausing and rereading is all part of the fun
@horsethi3f
@horsethi3f Год назад
It adds to the tension.
@thedownwardmachine
@thedownwardmachine Год назад
When your boss uses lines of code as performance metric
@alangamer50
@alangamer50 Год назад
0:31 OOP be like:
@inqmusician2
@inqmusician2 5 месяцев назад
True.
@Killtesblocs
@Killtesblocs 4 месяца назад
Do not insult the almighty universal getter
@TheColorOrang
@TheColorOrang 3 месяца назад
I mean that is one way to retrieve a variable
@terryfries
@terryfries Год назад
in a exam regarding C I was supposed to reverse a string but because I had slept on C for the entire semester I didn't know jack about reversing characters in a string so I just logged my own characters in reverse
@christianalvarado528
@christianalvarado528 Год назад
0:45 The Yanderedev experience.
@5cover
@5cover Год назад
i just love this music it's perfectly suited for cursed programming, as monstruosities hidden deep inside the code, waiting to be discovered by the innocent viewer, who then begins to realize just how horrible this is. All the software in the world incorporates terrible code somewhere, and if it were to break, the consequences would be dramatic, considering how dependent to sofware our society has become. As the video progresses, it dawns on the viewer that we were the monsters all along.
@Azhini
@Azhini 9 месяцев назад
Song is "Kronos Unveiled" from the Incredibles OST. No idea why RU-vid labelled it as from Wish
@killeandroid98
@killeandroid98 Год назад
0:37 Very high Very high Very high Very high Very high Very high Very high Very high
@thatdudenamedkevin5627
@thatdudenamedkevin5627 Год назад
0:18 is just why, like this is 100% made by someone that started programming in the last two days, you can easily make this into a simple command, just why
@Bednar121
@Bednar121 Год назад
Fun part is, that I've used the "fake loading bar" myself, but in an Arduino project (so it looks cool, I guess) Also to give sensors time to "level out" their reading before taking the mean from 10 values :P
@satoruriolu6132
@satoruriolu6132 10 месяцев назад
I used to program in flutter and had a class that managed the general sizes of anything you draw in the screen, from text to a box so it maintains a similar look while being dynamic and adaptative between phone screen sizes, and also added a font size option. Because of how it worked, I just made it so it changed the file and reloaded the app, but it did it all so quick that my pals thought it was broken and it crashed, because of how immediate it was. I had to add an entire "restarting" text bar with a second or so of delay so people knew it wasn't broken
@zenniththefolf4888
@zenniththefolf4888 Год назад
"Not sure why, but it's a feature now" that's basically me
@jaceg810
@jaceg810 10 месяцев назад
Reminds me of the time I made a class called "VolatileVarStorage" The point being that there where some variables and class objects in java that I wanted all child threads to report back to / work on, and I could not get it all sorted out neatly, so I just gave each one the "VolatileVarStorge".
@benjaminghailane9452
@benjaminghailane9452 Год назад
This meal was delicious, I never had cursed spaghetti before and I must say that I'm always eager for more
@RedFrostGames
@RedFrostGames Год назад
I remember when I was starting out, I didn't know that I could access an item from an array with an index. I was using a vector object in python which had a __repr__. I would convert the object to a string, and then "sanitize" the string by replacing the characters I didn't want such as angle brackets, parenthesis. and then I looped through the string until I hit a comma
@PawelHerok
@PawelHerok Год назад
1:55 if it was in a loop, it would be ok
@MOVET3
@MOVET3 Год назад
Does somebody have a link to this "I found a way of doing this without any modules"?\
@yusinwu
@yusinwu Год назад
I want to see this in person!!
@musikali1
@musikali1 Год назад
What's wrong with 0:50 file copying?
@Thomas-ko1nf
@Thomas-ko1nf 6 месяцев назад
He says: "I found a way of doing this without any modules."
@notthejumping_spider
@notthejumping_spider 7 месяцев назад
Ah yes, the TF2 source code
@Palexite
@Palexite Год назад
The comments trying to justify the code in this just make it even more funny.
@gabrielazevedo5232
@gabrielazevedo5232 Год назад
I feel so well represented when I see programming war crimes and there is a comment in portuguese among the code like in 1:21
@aylen7062
@aylen7062 Год назад
It could also be Spanish (and perhaps another related language).
@pacorodriguez734
@pacorodriguez734 Год назад
@@aylen7062 As a Spanish i find really harmful seeing deasfio instead of desafío, so I expect it's Portuguese.
@aylen7062
@aylen7062 Год назад
@@pacorodriguez734 Did you mean "violent"? If yes, I agree it sounds a bit odd, but for me it's rather too formal or implying it's too hard for that purpose. I wouldn't use "desafío" here, but perhaps some teacher would, or they just speak a Spanish dialect I'm not familiar with where that's the normal way to phrase it. I've seen desafío being used in similar situations, but can't remember where. It didn't occur to me it could be another language lol.
@pacorodriguez734
@pacorodriguez734 Год назад
@@aylen7062 yeah, sorry for my bad english and thanks for your answer :)
@ks2222_
@ks2222_ Год назад
Thx for programming tips
@odoijethro7202
@odoijethro7202 Год назад
2:00 is pure witchcraft🤣🤣
@aahaanchawla5393
@aahaanchawla5393 Год назад
1:30 isn't too bad. Assuming the application is gonna create the file from a different thread.
@daniser87
@daniser87 Год назад
use mutexes then
@PlayerClarinet
@PlayerClarinet Год назад
CPU spins at 100% until the file is created.
@liquidmetal718
@liquidmetal718 Год назад
BOOM smoke comes out of laptop, ....
@bernardcrnkovic3769
@bernardcrnkovic3769 Год назад
@@PlayerClarinet actually no! because every syscall switches a context so you end up with somewhat lower cpu usage 😁 but still, equally dreadful code haha
@Chriss4123
@Chriss4123 Год назад
@@daniser87 do you mean futexes?
@karl4813
@karl4813 Год назад
0:55 Norwegian :D
@Артём-п2ц6п
@Артём-п2ц6п Год назад
Stop posting Yandex source code!😄😄
@elijahbuscho7715
@elijahbuscho7715 Год назад
1:46 I just need to see the taskRow() source code
@The_Neutraal
@The_Neutraal Год назад
Why does Homage by Mild High Club and this Video Muted fit so perfectly together?
@ninjacodertech
@ninjacodertech 10 месяцев назад
at 1:04, whats more of a war crime than the obvious else ifs is the how its like "hertz ==64" without a space before the number
@hcc3904
@hcc3904 Год назад
YOU'RE ATTEMPTING THE BIGGEST WAR CRIME. WHY DID U START TO THIS SERIE FROM 1, INSTEAD OF 0?
@LithiumDeuteride-6
@LithiumDeuteride-6 Год назад
Sometimes strange code, it's just bypassing compiler errors, libraries, frameworks, engines, and so on. When the shit code is layered on the shit code, but it doesn't work any other way. And so, yes, it is necessary that the programmer understands mathematics a little, although many programmers do not understand anything about math. For example, I look at old programming magazines, more precisely, advice to programmers in magazines for the 80s, 90s.
@BimmerWon
@BimmerWon Год назад
As a non-programmer I didn’t understand why most of these were war crimes.
@juandiegofm
@juandiegofm Год назад
Well...if you like it then Im going to explain to you 2 of these jokes XD. Let's freeze a program! while(1 == 1){"Just wait for it"}; This is a loop that tests WHILE 1 is equal to 1 then "do nothing", and then tests again if 1 is still 1 then ask again...and again...and again...so once the program hits this loop...it will literally do nothing forever! Let's hardcode a calculator! Why not? function sum(a,b){ if(a == 1 && b == 0)return 1; if(a == 1 && b == 1)return 2; if(a == 1 && b == 2)return 3; //Remember to include all the numbers to infinity! } If you do this then you literally need to hardcore evey sum of two numbers...every single one of them! XD function sum(a,b)return a+b; You just need a line...that's the joke! XD Hope you enjoyed it. :)
@pocok5000
@pocok5000 Год назад
that's hardly surprising
@turanbirligi6969
@turanbirligi6969 5 месяцев назад
Me : Writes a whole 300+ line flappy bird code in only main class in java
@mechanikate
@mechanikate 7 месяцев назад
2:08 doesn't even work because floats (e.g. -22.22) will return 22, not 22.22 :)
@Mabox-sc5iz
@Mabox-sc5iz Год назад
i make 10 getcompnents for frame in the enemy script...
@touentheidiot
@touentheidiot 5 месяцев назад
0:55 NO WAY THATS MY NATIVE LANGUAGE ON THE ABOVE (LOOK ITS NORWEGIAN!!)
@alientaker9
@alientaker9 10 месяцев назад
you should make one where the variable "left" is 1 and right is -1
@ScarletsWork
@ScarletsWork Месяц назад
if you != Fine print("No") if you == Fine you != Fine print("No")
@holypowerenjoyer6059
@holypowerenjoyer6059 Год назад
didnt get the sql meme
@ramorion1
@ramorion1 Год назад
It's just a bloated way to look for an entry where id = 15
@ccgarciab
@ccgarciab Год назад
For some reason it's joining a table with itself and joining on id. Just... what? Then the where clause actually limits it to a certain id, but why not just a simple select?
@juanmarcosgalindomendoza4477
@juanmarcosgalindomendoza4477 6 месяцев назад
@@ccgarciab When I read it for the first time I said at loud: "no way" and I recoiled in disbelief.
@creepychris420
@creepychris420 Год назад
please more im fucking dying lol
@dorathedestroyer4081
@dorathedestroyer4081 Год назад
these are so satisfying and hilarious at the same time
@ezekiellaww2524
@ezekiellaww2524 Год назад
//main function won't start until you press a key, now sure why, but it's a feature now
@M1szS
@M1szS Год назад
the calculator was the worst one by far 💀
@jackdog06
@jackdog06 4 месяца назад
I think the def Min(a,b): return min(a,b) Is my favourite, because it tells such a good story. Clearly the programmer wrote the code using Min() and instead of replacing each time he wrote it just thought “aaaah fuck it.”
@superNova5837
@superNova5837 13 дней назад
I spent way to long getting a dynamic wallpaper hacked together on my phone As soon as Apple changes how math operations withing shortcuts handle the time it will implode
@Ristyo
@Ristyo Год назад
Usually, the code in these videos are so obscure or complicated that you sometimes can't really tell if it does its job correctly. 0:23 is the most pointless piece of code i've seen tho, line 3 is guaranteed going to cause an error
@elijahbuscho7715
@elijahbuscho7715 Год назад
it actually works when there's only one row in the table lol, I tested it.
@Ristyo
@Ristyo Год назад
@@elijahbuscho7715 well yeah, but i was commenting under the assumption that the table would be used regularly with many rows inside.
@elijahbuscho7715
@elijahbuscho7715 Год назад
@@Ristyo well then bad assumption. You're clearly not operating on the same level as the genius who wrote that code. Granted, I'm not on that level either, but there is no doubt in my mind that the way he joins the table with itself so that the data is duplicated within the row has some brilliant reasoning behind it that our puny brains just can't understand.
@Ristyo
@Ristyo Год назад
@@elijahbuscho7715 lmao
@allancg1022
@allancg1022 Год назад
I have seen people try to run stuff like this, it is not even that farfetch
@execute214
@execute214 6 месяцев назад
the get(var) part is actually identity which is a mathematical law. who else is a functional programmer here?
@js-je8pc
@js-je8pc Год назад
2:8 저게 ㅋㅋ 실제 다른 프로그램에서도 저게.. ㅋㅋ 기본함수 작동 원리라면.. ㅋㅋㅋ
@elomaigote5085
@elomaigote5085 Год назад
fucking cried from laughter
@LordNPS
@LordNPS 2 месяца назад
Why file exists polling is wrong? That's a common pattern....
@kirjorjos
@kirjorjos 10 месяцев назад
I feel offended by 2:10, that's something I would do...Something I have done!
@illoprin
@illoprin 9 месяцев назад
I thought I was shitcoding until I watched this video 😨
@circuitbreaker08
@circuitbreaker08 10 месяцев назад
I have actually done try: ... except: print("Fuck")
@thetntteam
@thetntteam Год назад
give me an idea in replies and ill turn it into a cursed python script
@su-25frogfoot74
@su-25frogfoot74 6 месяцев назад
I have 20 lines of code to my life but even I know that this shit is fucked up
@ibiuld443
@ibiuld443 9 месяцев назад
ok 1:16 is uniquely diabolical
@aceprodofc
@aceprodofc 18 дней назад
"not sure why, but it's a feature now" unbelievably real
@drogaware1557
@drogaware1557 2 месяца назад
Hva heter du + er glad i kommunisme hahahahahaha thats a funny one i LOVE it
Далее
programming war crimes 4
1:17
Просмотров 259 тыс.
Programming War Crimes | Prime Reacts
10:36
Просмотров 372 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 303 тыс.
Дикий Бармалей разозлил всех!
01:00
Катаю тележки  🛒
08:48
Просмотров 498 тыс.
The Unhinged Nature of GTA V Source Code
2:16
Просмотров 1,3 млн
Videogames That "Require" A Wiki
10:09
Просмотров 2 млн
cursed programming 2
3:17
Просмотров 504 тыс.
STOP Watching Programming TUTORIALS!
1:53
Просмотров 19 тыс.
WHO KILLED MINECRAFT MAN? [Minecraft Animation]
30:33
Best Stereo Madness Wins $1000!
17:18
Просмотров 313 тыс.
The Midpoint Circle Algorithm Explained Step by Step
13:33
war crimes in software
1:16
Просмотров 235 тыс.
Naming Things in Code
7:25
Просмотров 2,1 млн
How Hackers Bypass Kernel Anti Cheat
19:38
Просмотров 711 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 303 тыс.