Steam on Linux also had this kind of bug once. Under specific circumstances an internal script returned a wrong value and then it recursively deleted all user-owned files on the filesystem.
I think what's funny is also that, if you look closely, the text is in italic where it was normal before, which is usually how GitHub Copilot and such suggest the end of sentences. So this was the Machine praying.
@@David280GG or high resolution on big monitor when i use discord on my 4k monitor, pretty much regular zoom looks much smaller because well more space!
You know what I hate? The person who thought a whole calendar and clock interface would be easier to use than just typing in the date and time. Because that bullshit became the standard with no fallback on mobile to just enter the values as text.
it's to avoid format mixups, i've sometimes tried inputting dates in one format only to realize it wasn't valid cause the page expected a different one
Bro I have seen some where you can't change the year, you have to go MONTH BY MONTH. I'm pretty sure I saw one on the X sign up page. That's 336 clicks for me.
That, kids, is why you always sand only the finest of type-safe languages. Sometimes I swear Python is designed to have as many footguns as possible...
"Trust us your account getting hacked was not because of our shitty app that has 10 year old OpenSSL version with literal billions of vulnerability statically linked and compiled with DEP disabled or because we transfers passwords encrypted with goofy ahh 64 bit key instead of hashes, it's because you didn't install our 'anti keylogger' which definitely isn't a kernel keylogger that causes kernel panic when you type faster than 0.5 wpm"
@@TheManinBlack9054no, Korean banking apps are actually that bad. They statically link openssl and proceeds to never update it, they wrote kernel keylogger easy as hell to tap into to prevent keylogging, said kernel keylogger introduces XSS, and the same kernel keylogger is easy as hell to crash and probably also equally easy to exploit Those garbages aren't "security app" they're literal backdoors Oh, also they don't have auto update so even when they fix some of the "vulnerability" (def not backdoor) there's no way for users to know At least they don't do these nonsense on mobile (more like they can't, I bet they would have done the same shit on mobile too if it was possible)
0:46 Just had this happened to me as I was making the lowercase variable of a selectable race "lower_race". No problems there, even better with it being on a school computer.
@@TuralcarWhy wouldn't it? Whitespace and line jumps are for our eyes only, the computer doesn't need them because everything ends with ';' or is enclosed in parentheses or curly braces.
"if (!false)" is just way funnier than it has any right to be and I'm not entirely sure why now excuse me while I do my best to forget the cursive code
I once had to teach someone in my programming course (I was a student) how to write a database, because instead of a one to many table he created 20 extra columns and most were empty. We were about a week from the final project presentation.
self taught C# hobbyist here 0:28 holy shit I didn't think I'd ever see an instance of "don't dead, people inside" in programming holy shit that's a fucking war crime that would absolutely fucking break me
I say on modern wide screens split the display of the code into columns. The actual code could be still just vertical but you get 2-3 screens worth of code, side by side.
That should be an IDE feature. The IDE would detect narrow pieces of code and automatically typeset them in two columns among longer lines displayed in a single column. So the underlying text would not change; just the IDE would present it in a different way.
@@matj12 I think it would be awful in practice. In the specific example they showed it might not look so bad.. but you have to consider all of the cases - there will be cases where there are some functions with a different widths than others (so the number of columns starts changing erratically), some functions with different heights than others where they don't line up neatly, and anything that causes the size of the window containing the code to change can cause the number of columns displayed to change (for instance, opening a search menu could cause this too which would get really frustrating in a lot of cases). I'm fairly certain it would just become a huge mess in practice and cause way more harm than good.
In ti basic i made a snake game that was 402 bytes counting the name "snake". I had to abuse financial variables and arrays while using the difference between the left and right keys and an imaginary number based variable to control direction. Believe it or not the imaginary number was the smallest way to handle control as it was just math. It works but even i struggle to understand it years later
@lucasgreer1736 so left and right are 24 and 26 respectively. You get the key and subtract by 25, meaning all that its left is -1 or 1: this will be K (all single numerical variables in ti basic are just single capital letters). D will store direction as an imaginary number you do "KDi->D" so D=K*D*i in most any other language (ti basic lets you write functions as you would in math, anything next to eachother is multiplied). This will basically update what direction you turned in by making it imaginary if its not imaginary or vice versa with K modifying if it becomes negative or not. Then "real(D{4i,6->L1" will basically shove only whatever is real into L1 (a list) leaving the other as zero setting which way you move in the process. Remember i*i=-1. 4 and 6 are there just to tell later code how far horizontal or vertical it should move. Just those two lines after handling the keys alone handle the direction you turn towards. The math just works out
@lucasgreer1736 so the code (omitting a bunch of stuff) is 1->D While 1 repeat Ans ... //the game getkey end ans-25 DiAns->D real(Ans{4i,6->L1 end Firstly lets remember i*i == -1. Secondly TI-BASIC is weird, "->" is how you set variables, with the variable on the right of the arrow being the one set. All normal number variables are single capital letters, you have no choice in their name, A-Z (with exceptions) is all you get. Also it lets you write expressions like you do in math: anything written together is multiplied. "Ans" is a variable that is always the result of the last expression, its technically faster (and smaller since you dont set anything) which is why its written this way. "Repeat" is basically a "do {} while(not(x))" loop if youre familiar with C. It will basically always enter that loop at least once and exit that loop if the thing, in our case the Ans of getkey, isnt zero. You can multiply to all elements of arrays, ex. 2*{3,4} == {6,8} Anyways the meat on "how". Essentially the left and right keys return 24 and 26 respectively, so subtracting 25 will return -1 and 1. "DiAns->D" will therefore return 1, i, -1, and -i, in order if Ans is 1 and 1, -i, -1, and i if Ans is -1 each time it handles the key. Its processed further in "real(Ans{4i,6->L1" to be set in a list that makes any imaginary part of the expression zero, therefore only resulting in one element having a value that isnt zero, separating horizontal from vertical. 4 and 6 are there to tell the program how far to move per cycle horizontally and vertically.
I remember when i was 15 we had IT lessons in school and we had some basic programming lessons. During these i've been a bit more curious than others and been using more advanced codes (like arrays and combinations of other functions and such) to get the tasks done for which i was getting asked to NOT do that and do what teacher asked despite being credited for more effective solutions. Ones i've been looking through existed functions i found goto function (moves compilation process to the selected line, allowing to loop it and split the code into multiple pieces) that i found really usefull for todays task and used it like in half of the whole code. The face that teacher showed when he saw my code was so funny, especially when he literally called me "IT Criminal" After that incident i've started learning coding on my own at home while following teachers instructions instead of improvising and flexing with my skills
The comment //Pray to god this works reminded me of an assignment I had done last week and then I realized it was due in 10 minutes and hadn’t submitted it yet luckily I had it done so I just had to upload it. appreciate the save though!
BRANCHES?? Just call it "isEven" and return negation of x AND 1. (or "isOdd where you AND the argument with 1). And you don't even have to worry about any bits but the least significant. Literally cannot find a better way. There's no room for branches or any stupid stuff when you do it in a single clock cycle.
@@mr.rabbit5642 we're not returning true or false, we're returning a string with the word 'even' or 'odd', ya dingus. most likely slower than a naive branching approach tho because the "::" operator in the string index (i have no clue what language this is and haven't seen that operator) is almost certainly more expensive than a single branch.
@@nerdycatgamer Python and [num % 2:: 2] means start from index num % 2 (0 or 1) and go to the end (This is because there is a lack of number inbetween the two colons). Do it in steps of 2. Indexing works like: a[start:end:stepsize]
@@nerdycatgamer yeah I mean, true, but you can still wrap it into another function with ternary return isEven()? 'even' : 'odd'. Sure, call it a "branch" but it makes no difference, and using the :: operator implements like 30 branching operations within. And that all aside from the fact that often resolving unncecessary conditions is even worse, not only in the long run, than "branchless" return isEven()*'even'+(1-isEven())*'odd' I sure like the concept of branchless coding, but it's a myth in higher level languages. ESPECIALLY PYTHON, ya dingus :D
@@mr.rabbit5642 This is literally what my point was, what are you going on about? I literally said this 'branchless approach' is not going to be more branchless than a simple ifelse, and is going to probably be slower due to the user of the :: operator to iterate.' You were the one being incorrect by acting as if this function returns a boolean. Sure, you can wrap that boolean in a ternary and that being better... which is exactly what i said about an ifelse being better because of the overhead of the '::' operator.
Programming is a lot like witchcraft. There are magical incantations that can be dangerous if used incorrectly, and everyone argues about how to write them.
No. First time there's no hope it will work, none at all. The first time is just spotting bugs. Now, if your code compiles and seems to work the first time over, this is a serious reason to worry and you should stop, and start analyzing the code in-depth because that means the bug is insidious, hard to detect and causes only occasional but catastrophic results
This is actually pytest. There you can write stuff like "assert 2+2=5" and get "AssertionError: Actual: 4, Expected: 5". To get that output they had to botch the f*ck out of the assert statement, though. Something like: test_success = actual_value == expected_value assert test_success != False
Ok, if(!false) is good in languages without true, yet which still have working false, which is rare, but apparently not entirely nonexistent (eg Scratch, where can be summoned with glitches and used, but evaluates to false too)
My personal favorite programing war crime takes inspiration from Starcraft pros, Barcode names lIIllIlIIlIIIIIIllllIlIIllIIlIl a mixture of lowercase L's and uppcase i's
Yesterday I got a compile error saying I can't convert from type T to type T. It only came up after I ran my app, though. And the app ran just fine... 🙄
The Java one is horrendous, because you just have to use lombok, and put @Data to get getters and setters, if you want those. I'm a bit shaken and I need an(other) adult.
The misplaced space in the rm -rf path was brutal
Steam on Linux also had this kind of bug once. Under specific circumstances an internal script returned a wrong value and then it recursively deleted all user-owned files on the filesystem.
Press F to pay respect to our issuer
@@SaHaRaSquad What??
Well, now I'm incredibly scared of running anything 💀
When did that happen btw?
@@quazar-omega That was in 2015, it's been fixed for quite a while.
@@OrgStinxf
"// pray to god that this works" sounds more like a normal code comment than a war crime
It's because the comment was suggested by GitHub copilot, Microsoft 's code completion AI
The senior engineer is an atheist lmao
I think what's funny is also that, if you look closely, the text is in italic where it was normal before, which is usually how GitHub Copilot and such suggest the end of sentences. So this was the Machine praying.
@@eldonadno that was the search Interface. First part was searched for. The latter part was what the search returns.
@@eldonad Doesn't that just mean he has typed this line before as well? autocomplete
The Discord bot inductively prompting itself with its own responses is great
image if military ai drone would start self promting targets due to bad code
Mf uses discord with 10% zoom
My reddit bot once did this and kept going for 6~ hours (I was asleep) and the mods eventually had to step in and timeout it for a week. Fun times.
@@David280GG or high resolution on big monitor
when i use discord on my 4k monitor, pretty much regular zoom looks much smaller because well more space!
Skill issue intensifies
You know what I hate? The person who thought a whole calendar and clock interface would be easier to use than just typing in the date and time. Because that bullshit became the standard with no fallback on mobile to just enter the values as text.
it's to avoid format mixups, i've sometimes tried inputting dates in one format only to realize it wasn't valid cause the page expected a different one
@@TollyHSome people might not notice placeholder text. Good intermediate variant would be to have month choice as a dropdown menu.
Bro I have seen some where you can't change the year, you have to go MONTH BY MONTH. I'm pretty sure I saw one on the X sign up page. That's 336 clicks for me.
@@inakilbssThat's what labels are for
@@rom.ya.3799just make it to where it puts text above the input boxes that tell you
0:49 Plot twist: They knew people might look into the source of the test. So they named the picture wrong.
1:04 is clever. Not something you should ever use in serious code, but a good way to show you can think outside the box.
yeah if what you needed was a string in English and nothing else like idk, a true or false value
1:03 that one is actually pretty cool
that's what I'm saying
@@5cover i’m sure it’s something that could be implemented into other languages though, not just python
@@bassycounter yes but python makes it easy and even praises it sometimes
*ternary operator would like to know your location*
@@5cover ... tbh that just makes no sense... you can write terrible code in any language...
0:48 this is actually a good design style. you're giving the candidate the correct answer as an apology for a technical issue
1:11 That got me
That, kids, is why you always sand only the finest of type-safe languages.
Sometimes I swear Python is designed to have as many footguns as possible...
@@BrainStormzFTCjavascript is worse
way worse
0:38 Most secure Korean banking app:
"Trust us your account getting hacked was not because of our shitty app that has 10 year old OpenSSL version with literal billions of vulnerability statically linked and compiled with DEP disabled or because we transfers passwords encrypted with goofy ahh 64 bit key instead of hashes, it's because you didn't install our 'anti keylogger' which definitely isn't a kernel keylogger that causes kernel panic when you type faster than 0.5 wpm"
@iytdominotikno, people just like using random countries for memes since no one would correct them
@@TheManinBlack9054no, Korean banking apps are actually that bad. They statically link openssl and proceeds to never update it, they wrote kernel keylogger easy as hell to tap into to prevent keylogging, said kernel keylogger introduces XSS, and the same kernel keylogger is easy as hell to crash and probably also equally easy to exploit
Those garbages aren't "security app" they're literal backdoors
Oh, also they don't have auto update so even when they fix some of the "vulnerability" (def not backdoor) there's no way for users to know
At least they don't do these nonsense on mobile (more like they can't, I bet they would have done the same shit on mobile too if it was possible)
@@TheManinBlack9054 you are correct but the characters in his username implying that he didn't select Korea randomly
Girl is a korean banking app 🗿
0:46 Just had this happened to me as I was making the lowercase variable of a selectable race "lower_race". No problems there, even better with it being on a school computer.
/r/pcmasterrace watching at everyone else struggling at inputting code:
The npm vulnerabilities warning gave me a lot of anxiety and depression whenever I used it
Ours at work is worse
@@nnnik3595 well we have no choice but to live with it 💀
@@youarethecssformyhtml yeah. Not a lot I can do about it.
At 28 seconds I thought this was perfectly fine getter/setter stuff until I realised how it was actually typed on screen lol
0:28
Wait, it was actually typed that way? I thought it was just edited to fit on the screen and the war crime was the getter/setter bloat.
It's not totally fine to write your own getters and setters in Java though. Use lombok or records.
The worst thing is that it looks like it could compile
@@TuralcarWhy wouldn't it? Whitespace and line jumps are for our eyes only, the computer doesn't need them because everything ends with ';' or is enclosed in parentheses or curly braces.
"if (!false)" is just way funnier than it has any right to be and I'm not entirely sure why
now excuse me while I do my best to forget the cursive code
I find the "even_or_odd" function somewhat beautiful.
0:23 dereferencing a pointer already freed 💀
I laughed a lot on the git-blame-someone-else part
Commit 1: Delete useless logic
Commit 2: Logic be not useless
this “vulnerabilities” screenshot is just the usual npm install
I once had to teach someone in my programming course (I was a student) how to write a database, because instead of a one to many table he created 20 extra columns and most were empty.
We were about a week from the final project presentation.
Pffffff a week is more than enough time to turn things around. Try three days...
Now that I think of it, how the hell did I survive college?
"Pray to god that this works."
I'm not even a programmer and I can relate just from editing existing scripts. Lol.
ok but the even-odd one is actually pretty cool
list comprehension be quirky
@@timelessnessesit's a slice not a list comp
@@MagicGonads string slicing be quirky
local sanity = false
get your lua out of here
@@else1f yes
@@else1f
Const happiness= -Infinity
@@assarlannerborn9342 Lol I like how it's a constant so it just straight up can't change
* : hover{
display:none;
}
had me dying lmfao
the "peekaboo" code :)
@@hoodiegal yea xD
I'd add !important at the end.
self taught C# hobbyist here
0:28
holy shit I didn't think I'd ever see an instance of "don't dead, people inside" in programming holy shit that's a fucking war crime that would absolutely fucking break me
Thats evil and likely the quickest way to get your group mates or coworkers to hate you lmaooo
tbh, horizontal function stacking would actually be an interesting feature, pain to maintain. but interesting
I say on modern wide screens split the display of the code into columns. The actual code could be still just vertical but you get 2-3 screens worth of code, side by side.
That should be an IDE feature. The IDE would detect narrow pieces of code and automatically typeset them in two columns among longer lines displayed in a single column.
So the underlying text would not change; just the IDE would present it in a different way.
@@matj12 I think it would be awful in practice. In the specific example they showed it might not look so bad.. but you have to consider all of the cases - there will be cases where there are some functions with a different widths than others (so the number of columns starts changing erratically), some functions with different heights than others where they don't line up neatly, and anything that causes the size of the window containing the code to change can cause the number of columns displayed to change (for instance, opening a search menu could cause this too which would get really frustrating in a lot of cases).
I'm fairly certain it would just become a huge mess in practice and cause way more harm than good.
Lua:
i love lua
0:48 I can't believe I didn't think of saving and image/using dev tools to check an image name in college.
One phd I worked with wrote
float is_yes=my_analysis()
if is_yes=500
And in another python file he transposed something twice in a row
Looks like tons of studying, none actually practicing
In ti basic i made a snake game that was 402 bytes counting the name "snake". I had to abuse financial variables and arrays while using the difference between the left and right keys and an imaginary number based variable to control direction. Believe it or not the imaginary number was the smallest way to handle control as it was just math. It works but even i struggle to understand it years later
how???
@lucasgreer1736 so left and right are 24 and 26 respectively. You get the key and subtract by 25, meaning all that its left is -1 or 1: this will be K (all single numerical variables in ti basic are just single capital letters). D will store direction as an imaginary number you do "KDi->D" so D=K*D*i in most any other language (ti basic lets you write functions as you would in math, anything next to eachother is multiplied). This will basically update what direction you turned in by making it imaginary if its not imaginary or vice versa with K modifying if it becomes negative or not. Then "real(D{4i,6->L1" will basically shove only whatever is real into L1 (a list) leaving the other as zero setting which way you move in the process. Remember i*i=-1. 4 and 6 are there just to tell later code how far horizontal or vertical it should move. Just those two lines after handling the keys alone handle the direction you turn towards. The math just works out
@lucasgreer1736 so the code (omitting a bunch of stuff) is
1->D
While 1
repeat Ans
... //the game
getkey
end
ans-25
DiAns->D
real(Ans{4i,6->L1
end
Firstly lets remember i*i == -1. Secondly TI-BASIC is weird, "->" is how you set variables, with the variable on the right of the arrow being the one set. All normal number variables are single capital letters, you have no choice in their name, A-Z (with exceptions) is all you get. Also it lets you write expressions like you do in math: anything written together is multiplied. "Ans" is a variable that is always the result of the last expression, its technically faster (and smaller since you dont set anything) which is why its written this way. "Repeat" is basically a "do {} while(not(x))" loop if youre familiar with C. It will basically always enter that loop at least once and exit that loop if the thing, in our case the Ans of getkey, isnt zero. You can multiply to all elements of arrays, ex. 2*{3,4} == {6,8}
Anyways the meat on "how". Essentially the left and right keys return 24 and 26 respectively, so subtracting 25 will return -1 and 1. "DiAns->D" will therefore return 1, i, -1, and -i, in order if Ans is 1 and 1, -i, -1, and i if Ans is -1 each time it handles the key. Its processed further in "real(Ans{4i,6->L1" to be set in a list that makes any imaginary part of the expression zero, therefore only resulting in one element having a value that isnt zero, separating horizontal from vertical. 4 and 6 are there to tell the program how far to move per cycle horizontally and vertically.
@lucasgreer1736 basically taking advantage of the fact the left and right keys can simply be subtracted by 25 to result in -1 and 1 and that i*i=-1
@@Palmtop_User Now I want to see the codes.
I remember when i was 15 we had IT lessons in school and we had some basic programming lessons.
During these i've been a bit more curious than others and been using more advanced codes (like arrays and combinations of other functions and such) to get the tasks done for which i was getting asked to NOT do that and do what teacher asked despite being credited for more effective solutions.
Ones i've been looking through existed functions i found goto function (moves compilation process to the selected line, allowing to loop it and split the code into multiple pieces) that i found really usefull for todays task and used it like in half of the whole code.
The face that teacher showed when he saw my code was so funny, especially when he literally called me "IT Criminal"
After that incident i've started learning coding on my own at home while following teachers instructions instead of improvising and flexing with my skills
Bro is coding assembly (yes i know im wrong)
That notes written code is exactly what I do.
Same, all the time. It’s called brainstorming
If I recall corectly, 0:35 is taken from github page of Mocha DOOM, which is a pure java port of DOOM, which explains a lot
0:25 least ugly tailwind code
The comment //Pray to god this works reminded me of an assignment I had done last week and then I realized it was due in 10 minutes and hadn’t submitted it yet luckily I had it done so I just had to upload it. appreciate the save though!
Im kinda new to programming so most of these war crimes are beyond my comprehension.
Still, most of these feel threatening for some reason.
@@bloodbonnieking c++
@@bloodbonnieking Why does this sound threatening too 😭
@@bloodbonniekingwhich languages would result in divine anger?
@@entropy4959jQuery
/yes I know it is a library
@@entropy4959 "vanilla" JS obviously.
0:46 ok the real cursed thing is the indentation of line 17-21 💀
why? _EDIT:_ oww good grief! I see it now
It's a f*ing prettier with 80 characters limit turns everything into a bloat
0:18 someone just want to see the world burn
Wow TH-cam is awful on mobile. Can't even pause without a giant screen blocking pause button
Use ReV anced Tube man
ReV anced You Tube
0:26 Those are just normal Java class names.
"programming war crimes" implies the existence of a programming war
Literally anytime anyone tries to code anything
something something russia
Here's an even_or_odd spanish variation which is slightly more cursed.
def par_o_impar(num):
return "impar"[[2, 0][num % 2]::]
you're welcome
dios mio
I once saw a classmate get a "suspicious list remove" warning while working with an ArrayList on Java.
0:52 At least it tells you the correct answer if it errors.
that exam screenshot is relatable
At least it's being fair.
1:04 is actually brilliant way to avoid using branches. Just hope that no one ever need to edit it in any way
BRANCHES?? Just call it "isEven" and return negation of x AND 1. (or "isOdd where you AND the argument with 1).
And you don't even have to worry about any bits but the least significant.
Literally cannot find a better way. There's no room for branches or any stupid stuff when you do it in a single clock cycle.
@@mr.rabbit5642 we're not returning true or false, we're returning a string with the word 'even' or 'odd', ya dingus. most likely slower than a naive branching approach tho because the "::" operator in the string index (i have no clue what language this is and haven't seen that operator) is almost certainly more expensive than a single branch.
@@nerdycatgamer Python and [num % 2:: 2] means start from index num % 2 (0 or 1) and go to the end (This is because there is a lack of number inbetween the two colons). Do it in steps of 2. Indexing works like: a[start:end:stepsize]
@@nerdycatgamer yeah I mean, true, but you can still wrap it into another function with ternary return isEven()? 'even' : 'odd'.
Sure, call it a "branch" but it makes no difference, and using the :: operator implements like 30 branching operations within.
And that all aside from the fact that often resolving unncecessary conditions is even worse, not only in the long run, than "branchless"
return isEven()*'even'+(1-isEven())*'odd'
I sure like the concept of branchless coding, but it's a myth in higher level languages. ESPECIALLY PYTHON, ya dingus :D
@@mr.rabbit5642 This is literally what my point was, what are you going on about? I literally said this 'branchless approach' is not going to be more branchless than a simple ifelse, and is going to probably be slower due to the user of the :: operator to iterate.'
You were the one being incorrect by acting as if this function returns a boolean. Sure, you can wrap that boolean in a ternary and that being better... which is exactly what i said about an ifelse being better because of the overhead of the '::' operator.
0:17 it just do correct thing for NVidia users :D
0:29 why my drunk ass thought this would work
//pray to god that this works
Thats how i write code every day
I dont know programming and this just seems like alchemical textbooks from 1600's
Programming is a lot like witchcraft. There are magical incantations that can be dangerous if used incorrectly, and everyone argues about how to write them.
@@EdKolis plus sometimes when you write things wrong you effectively open a portal to the underworld
1:02 Lol my Codeium literally just did the same, as 2nd suggestion
First was "Pray to web host")
for the not loading image you can right click and select load to try to force it to load again
1:12 NumPy boolean versus base Pyython boolean, probably
Я никогда бы не додумался до ТАКОЙ проверки числа на чётность, как на 1:04
With NPM not having any vulnerabilities would be a war crime
1:05 i felt that one
the even or odd one reminds me of the tortise and hare algo for duplicate number
1:00 isn't that what every programmer does the first time they try to do something?
*every time
@@dvxv4016 yeah, that makes sense
No. First time there's no hope it will work, none at all. The first time is just spotting bugs. Now, if your code compiles and seems to work the first time over, this is a serious reason to worry and you should stop, and start analyzing the code in-depth because that means the bug is insidious, hard to detect and causes only occasional but catastrophic results
1:10
how did this test fail if both expected and actual values are the same 😂
Idk, maybe one was a string? beats me
yeah classic Junit, its usually strings and then zero width widespace guys messing it up
wrong type i tgink😢
Man I've had this happen so often. Typically causes by not defining the equals methods
This is actually pytest. There you can write stuff like "assert 2+2=5" and get "AssertionError: Actual: 4, Expected: 5".
To get that output they had to botch the f*ck out of the assert statement, though. Something like:
test_success = actual_value == expected_value
assert test_success != False
Ok, if(!false) is good in languages without true, yet which still have working false, which is rare, but apparently not entirely nonexistent (eg Scratch, where can be summoned with glitches and used, but evaluates to false too)
True evaluates to false?
@@Yehor-v7y in Scratch, yes
@@memetech- ok
(!false) seems like someone was too lazy too change the condition
0:47 i think the buggest warcrime there is the component logic all being inside render()
0:31 I had a stroke reading that
1:03 this is genius
The comment?
The even or odd string slicing is actually quite creative
Okay the even/odd one is actually kinda smart
Look I’m surprised there’s no space between / and usr. Imagine watching someone nuke their pc because of one simple error
well, they didn’t have -no-preserve-root
My personal favorite programing war crime takes inspiration from Starcraft pros, Barcode names lIIllIlIIlIIIIIIllllIlIIllIIlIl a mixture of lowercase L's and uppcase i's
Yesterday I got a compile error saying I can't convert from type T to type T. It only came up after I ran my app, though. And the app ran just fine... 🙄
0:29 Took me a while to get it, but at first I thought I actually kind of like it
0:56 as someone who knows a bit of CSS, seeing that made me rip a part of my soul out of my body
Can I have the part?
〽️〽️〽️〽️〽️〽️〽️〽️
The Java one is horrendous, because you just have to use lombok, and put @Data to get getters and setters, if you want those.
I'm a bit shaken and I need an(other) adult.
if true == variable then
0:28 that's genious! Why didn't I think of that?
That saves so much space.
if (true) return true;
else return false;
such type of videos are crucial for a coder to maintain the sanity. great effort by the channel I must say!
the even and odd number function is clever
1:03 python string manipulation is godly
the if(!false) is killing me
0:33 you know you did smth VERY wrong, when intellisense cant come with a better suggestion than just getting rid of it all
reading commit comments from random small projects on github is sometimes very fun to read xD
0:26 This is my favorite. 😂😂😂
Stacking methods horizontally... Hahahhaa... Just can't stop laughing...
Pls tell me the git blame some else isn't real
1:05 is actually cool. Not useful but not a war crime
1:03 that even or odd sh*t was vile. Just absolutely bonkers 😂 like who does that
I'm trying to think if it would be at all useful for a code golf.
0:53 nice font bruh
0:24 that's just a programming exam in Russia
intellisense suggestion: remove all backups
0:20 why would that only affect Ubuntu? Should be based on shell first of all, not OS, second, each shell should treat that the same...
It was probably part of a much bigger file that has platform specific conditions before it will let execution reach that erroneous line of code.
Maybe it was the dev branch and the other distros only use the stable version
@@NichtDu Ubuntu on a dev branch and Arch on a stable? 🤔
@@matthewrease2376 well arch obviously doesn't use the ubuntu installer but a bunch of other distros do
I like how they solve that even/odd problem
idg why the delete code thing is there. There are very few things as satisfying as deleting unneeded code.
in PHP, in a function : "global $_POST;"
0:53 reminds me of when i made my whole ide comic sans (for fun)
the creativity is crazy
Oh, Helloween is here?
*_me just using pointers normally_*
bro with his alphabetical stack of pointers pointing to the last pointer:
1:08
0:35 is a github repo of DOOM ported to java
0:17 got me really hard dude LMAO
Fun fact: this was this user's first issue ever lol
1:04 Wait, people are commenting code with emojis???
This vids make me cry and think about life meaning