programming war crimes 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 404

  • @Eliasdbr
    @Eliasdbr ปีที่แล้ว +3286

    The misplaced space in the rm -rf path was brutal

    • @SaHaRaSquad
      @SaHaRaSquad ปีที่แล้ว +343

      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.

    • @OrgStinx
      @OrgStinx ปีที่แล้ว +80

      Press F to pay respect to our issuer

    • @quazar-omega
      @quazar-omega ปีที่แล้ว +58

      ​@@SaHaRaSquad What??
      Well, now I'm incredibly scared of running anything 💀
      When did that happen btw?

    • @SaHaRaSquad
      @SaHaRaSquad ปีที่แล้ว +73

      @@quazar-omega That was in 2015, it's been fixed for quite a while.

    • @_aurora60
      @_aurora60 ปีที่แล้ว

      @@OrgStinxf

  • @TinyDeskEngineer
    @TinyDeskEngineer ปีที่แล้ว +1926

    "// pray to god that this works" sounds more like a normal code comment than a war crime

    • @sa1t938
      @sa1t938 ปีที่แล้ว

      It's because the comment was suggested by GitHub copilot, Microsoft 's code completion AI

    • @KangJangkrik
      @KangJangkrik ปีที่แล้ว

      The senior engineer is an atheist lmao

    • @eldonad
      @eldonad ปีที่แล้ว +132

      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.

    • @nnnik3595
      @nnnik3595 ปีที่แล้ว +20

      ​@@eldonadno that was the search Interface. First part was searched for. The latter part was what the search returns.

    • @death_parade
      @death_parade 11 หลายเดือนก่อน +9

      @@eldonad Doesn't that just mean he has typed this line before as well? autocomplete

  • @Asango
    @Asango ปีที่แล้ว +860

    The Discord bot inductively prompting itself with its own responses is great

    • @kacperspisz4239
      @kacperspisz4239 ปีที่แล้ว +53

      image if military ai drone would start self promting targets due to bad code

    • @David280GG
      @David280GG 9 หลายเดือนก่อน +4

      Mf uses discord with 10% zoom

    • @emirs769
      @emirs769 8 หลายเดือนก่อน +20

      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.

    • @Mutrax4706
      @Mutrax4706 23 วันที่ผ่านมา

      @@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!

    • @williamdrum9899
      @williamdrum9899 6 วันที่ผ่านมา

      Skill issue intensifies

  • @Azurryu
    @Azurryu ปีที่แล้ว +1159

    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.

    • @inakilbss
      @inakilbss ปีที่แล้ว +152

      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

    • @rom.ya.3799
      @rom.ya.3799 ปีที่แล้ว +46

      ​@@TollyHSome people might not notice placeholder text. Good intermediate variant would be to have month choice as a dropdown menu.

    • @wege8409
      @wege8409 ปีที่แล้ว +95

      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.

    • @chudchadanstud
      @chudchadanstud ปีที่แล้ว +5

      ​@@inakilbssThat's what labels are for

    • @MrRosco
      @MrRosco ปีที่แล้ว

      ​@@rom.ya.3799just make it to where it puts text above the input boxes that tell you

  • @j.j.currier5916
    @j.j.currier5916 ปีที่แล้ว +222

    0:49 Plot twist: They knew people might look into the source of the test. So they named the picture wrong.

  • @LunarSoul255
    @LunarSoul255 ปีที่แล้ว +322

    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.

    • @aeghohloechu5022
      @aeghohloechu5022 2 หลายเดือนก่อน +7

      yeah if what you needed was a string in English and nothing else like idk, a true or false value

  •  ปีที่แล้ว +979

    1:03 that one is actually pretty cool

    • @bassycounter
      @bassycounter ปีที่แล้ว +29

      that's what I'm saying

    • @bassycounter
      @bassycounter ปีที่แล้ว +62

      @@5cover i’m sure it’s something that could be implemented into other languages though, not just python

    • @5cover
      @5cover ปีที่แล้ว

      @@bassycounter yes but python makes it easy and even praises it sometimes

    • @davi.alexandre
      @davi.alexandre ปีที่แล้ว +15

      *ternary operator would like to know your location*

    • @lunafoxfire
      @lunafoxfire ปีที่แล้ว +65

      @@5cover ... tbh that just makes no sense... you can write terrible code in any language...

  • @avirukbasak
    @avirukbasak 2 หลายเดือนก่อน +32

    0:48 this is actually a good design style. you're giving the candidate the correct answer as an apology for a technical issue

  • @just_me_100
    @just_me_100 ปีที่แล้ว +110

    1:11 That got me

    • @BrainStormzFTC
      @BrainStormzFTC 8 หลายเดือนก่อน +8

      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...

    • @ezyybin604
      @ezyybin604 3 หลายเดือนก่อน

      @@BrainStormzFTCjavascript is worse
      way worse

  • @그냥사람-e9f
    @그냥사람-e9f ปีที่แล้ว +320

    0:38 Most secure Korean banking app:

    • @그냥사람-e9f
      @그냥사람-e9f ปีที่แล้ว +1

      "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"

    • @TheManinBlack9054
      @TheManinBlack9054 9 หลายเดือนก่อน +2

      ​@iytdominotikno, people just like using random countries for memes since no one would correct them

    • @그냥사람-e9f
      @그냥사람-e9f 7 หลายเดือนก่อน

      ​​​@@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)

    • @sososo3906
      @sososo3906 2 หลายเดือนก่อน +9

      @@TheManinBlack9054 you are correct but the characters in his username implying that he didn't select Korea randomly

    • @CHARRI_Official
      @CHARRI_Official 15 วันที่ผ่านมา

      Girl is a korean banking app 🗿

  • @thememecartextras9638
    @thememecartextras9638 ปีที่แล้ว +173

    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.

    • @NoNameAtAll2
      @NoNameAtAll2 9 หลายเดือนก่อน +9

      /r/pcmasterrace watching at everyone else struggling at inputting code:

  • @youarethecssformyhtml
    @youarethecssformyhtml ปีที่แล้ว +267

    The npm vulnerabilities warning gave me a lot of anxiety and depression whenever I used it

    • @nnnik3595
      @nnnik3595 ปีที่แล้ว +5

      Ours at work is worse

    • @youarethecssformyhtml
      @youarethecssformyhtml ปีที่แล้ว +3

      @@nnnik3595 well we have no choice but to live with it 💀

    • @nnnik3595
      @nnnik3595 ปีที่แล้ว +5

      @@youarethecssformyhtml yeah. Not a lot I can do about it.

  • @VinsCool
    @VinsCool ปีที่แล้ว +229

    At 28 seconds I thought this was perfectly fine getter/setter stuff until I realised how it was actually typed on screen lol

    • @felixfourcolor
      @felixfourcolor ปีที่แล้ว +32

      0:28

    • @EdKolis
      @EdKolis ปีที่แล้ว +7

      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.

    • @HrHaakon
      @HrHaakon ปีที่แล้ว +1

      It's not totally fine to write your own getters and setters in Java though. Use lombok or records.

    • @Turalcar
      @Turalcar 11 หลายเดือนก่อน +10

      The worst thing is that it looks like it could compile

    • @Pocket-Calculator
      @Pocket-Calculator หลายเดือนก่อน

      ​@@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.

  • @funguslord77
    @funguslord77 ปีที่แล้ว +84

    "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

  • @ぐうたらぼっち-e7t
    @ぐうたらぼっち-e7t ปีที่แล้ว +58

    I find the "even_or_odd" function somewhat beautiful.

  • @georgecop9538
    @georgecop9538 ปีที่แล้ว +80

    0:23 dereferencing a pointer already freed 💀

  • @xkufse2413
    @xkufse2413 ปีที่แล้ว +78

    I laughed a lot on the git-blame-someone-else part

  • @DanilaKouzmenko
    @DanilaKouzmenko 25 วันที่ผ่านมา +4

    Commit 1: Delete useless logic
    Commit 2: Logic be not useless

  • @iamfastre
    @iamfastre ปีที่แล้ว +17

    this “vulnerabilities” screenshot is just the usual npm install

  • @dany_fg
    @dany_fg ปีที่แล้ว +47

    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.

    • @edwinwang5594
      @edwinwang5594 11 หลายเดือนก่อน +16

      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?

  • @Cuprite1024
    @Cuprite1024 9 หลายเดือนก่อน +7

    "Pray to god that this works."
    I'm not even a programmer and I can relate just from editing existing scripts. Lol.

  • @vegardpig8634
    @vegardpig8634 ปีที่แล้ว +70

    ok but the even-odd one is actually pretty cool

    • @timelessnesses
      @timelessnesses ปีที่แล้ว

      list comprehension be quirky

    • @MagicGonads
      @MagicGonads ปีที่แล้ว +7

      @@timelessnessesit's a slice not a list comp

    • @timelessnesses
      @timelessnesses ปีที่แล้ว +7

      @@MagicGonads string slicing be quirky

  • @Eldritch_
    @Eldritch_ ปีที่แล้ว +287

    local sanity = false

    • @else1f
      @else1f  ปีที่แล้ว +73

      get your lua out of here

    • @Eldritch_
      @Eldritch_ ปีที่แล้ว +7

      @@else1f yes

    • @kezzyhko
      @kezzyhko ปีที่แล้ว +15

      @@else1f

    • @assarlannerborn9342
      @assarlannerborn9342 ปีที่แล้ว +13

      Const happiness= -Infinity

    • @xXUnhingedDevXx
      @xXUnhingedDevXx ปีที่แล้ว +9

      @@assarlannerborn9342 Lol I like how it's a constant so it just straight up can't change

  • @NotFlame
    @NotFlame 11 หลายเดือนก่อน +32

    * : hover{
    display:none;
    }
    had me dying lmfao

    • @hoodiegal
      @hoodiegal 8 หลายเดือนก่อน +5

      the "peekaboo" code :)

    • @NotFlame
      @NotFlame 8 หลายเดือนก่อน

      @@hoodiegal yea xD

    • @PhoenixClank
      @PhoenixClank 6 หลายเดือนก่อน +3

      I'd add !important at the end.

  • @user-pn7wq9cl1g
    @user-pn7wq9cl1g 2 หลายเดือนก่อน +5

    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

    • @halinaqi2194
      @halinaqi2194 หลายเดือนก่อน

      Thats evil and likely the quickest way to get your group mates or coworkers to hate you lmaooo

  • @Mempler
    @Mempler ปีที่แล้ว +72

    tbh, horizontal function stacking would actually be an interesting feature, pain to maintain. but interesting

    • @sharpfang
      @sharpfang 11 หลายเดือนก่อน +5

      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.

    • @matj12
      @matj12 11 หลายเดือนก่อน +8

      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.

    • @asdfqwerty14587
      @asdfqwerty14587 11 หลายเดือนก่อน +4

      @@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.

    • @SnoFitzroy
      @SnoFitzroy 11 หลายเดือนก่อน +1

      Lua:

    • @makinnir
      @makinnir 10 หลายเดือนก่อน

      ⁠i love lua

  • @IcyLucario
    @IcyLucario ปีที่แล้ว +10

    0:48 I can't believe I didn't think of saving and image/using dev tools to check an image name in college.

  • @vandarkholme4745
    @vandarkholme4745 ปีที่แล้ว +24

    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

    • @Haise-san
      @Haise-san 2 หลายเดือนก่อน

      Looks like tons of studying, none actually practicing

  • @Palmtop_User
    @Palmtop_User 15 วันที่ผ่านมา +2

    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
      @lucasgreer1736 14 วันที่ผ่านมา

      how???

    • @Palmtop_User
      @Palmtop_User 14 วันที่ผ่านมา

      @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

    • @Palmtop_User
      @Palmtop_User 14 วันที่ผ่านมา

      @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.

    • @Palmtop_User
      @Palmtop_User 14 วันที่ผ่านมา

      @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

    • @GrassToucher988
      @GrassToucher988 9 วันที่ผ่านมา

      ​@@Palmtop_User Now I want to see the codes.

  • @He4vener
    @He4vener 11 หลายเดือนก่อน +9

    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

    • @Yehor-v7y
      @Yehor-v7y หลายเดือนก่อน

      Bro is coding assembly (yes i know im wrong)

  • @WindsorYeh
    @WindsorYeh ปีที่แล้ว +36

    That notes written code is exactly what I do.

    • @panampace
      @panampace 8 หลายเดือนก่อน

      Same, all the time. It’s called brainstorming

  • @janekwikariak1079
    @janekwikariak1079 6 หลายเดือนก่อน +4

    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

  • @Noam-Bahar
    @Noam-Bahar ปีที่แล้ว +27

    0:25 least ugly tailwind code

  • @sponTheGam
    @sponTheGam 9 หลายเดือนก่อน +3

    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!

  • @toyocolla
    @toyocolla ปีที่แล้ว +116

    Im kinda new to programming so most of these war crimes are beyond my comprehension.
    Still, most of these feel threatening for some reason.

    • @toyocolla
      @toyocolla ปีที่แล้ว

      @@bloodbonnieking c++

    • @elena.krittik
      @elena.krittik ปีที่แล้ว +13

      ​@@bloodbonnieking Why does this sound threatening too 😭

    • @entropy4959
      @entropy4959 ปีที่แล้ว +12

      @@bloodbonniekingwhich languages would result in divine anger?

    • @kacperkonieczny7333
      @kacperkonieczny7333 ปีที่แล้ว +1

      ​@@entropy4959jQuery
      /yes I know it is a library

    • @alexm9104
      @alexm9104 ปีที่แล้ว +6

      @@entropy4959 "vanilla" JS obviously.

  • @AwesomeCadecraft
    @AwesomeCadecraft ปีที่แล้ว +38

    0:46 ok the real cursed thing is the indentation of line 17-21 💀

    • @dasten123
      @dasten123 ปีที่แล้ว +4

      why? _EDIT:_ oww good grief! I see it now

    • @yankotliarov9239
      @yankotliarov9239 ปีที่แล้ว +4

      It's a f*ing prettier with 80 characters limit turns everything into a bloat

  • @alfaalkaaf5335
    @alfaalkaaf5335 ปีที่แล้ว +15

    0:18 someone just want to see the world burn

  • @milolouis
    @milolouis ปีที่แล้ว +3

    Wow TH-cam is awful on mobile. Can't even pause without a giant screen blocking pause button

    • @1nwb-4dnws
      @1nwb-4dnws 3 วันที่ผ่านมา

      Use ReV anced Tube man

    • @1nwb-4dnws
      @1nwb-4dnws 3 วันที่ผ่านมา

      ReV anced You Tube

  • @baseddepartment9656
    @baseddepartment9656 ปีที่แล้ว +7

    0:26 Those are just normal Java class names.

  • @callyral
    @callyral ปีที่แล้ว +25

    "programming war crimes" implies the existence of a programming war

    • @Idonthaveausernameyet
      @Idonthaveausernameyet หลายเดือนก่อน +3

      Literally anytime anyone tries to code anything

    • @VioletRM
      @VioletRM หลายเดือนก่อน +2

      something something russia

  • @JDarkona
    @JDarkona ปีที่แล้ว +36

    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

  • @fakeAratPrime
    @fakeAratPrime 21 วันที่ผ่านมา

    I once saw a classmate get a "suspicious list remove" warning while working with an ArrayList on Java.

  • @DanTDMJace
    @DanTDMJace 8 หลายเดือนก่อน +1

    0:52 At least it tells you the correct answer if it errors.

  • @gdplayer1035
    @gdplayer1035 ปีที่แล้ว +9

    that exam screenshot is relatable

  • @loctite417
    @loctite417 ปีที่แล้ว +23

    1:04 is actually brilliant way to avoid using branches. Just hope that no one ever need to edit it in any way

    • @mr.rabbit5642
      @mr.rabbit5642 11 หลายเดือนก่อน +2

      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.

    • @nerdycatgamer
      @nerdycatgamer 11 หลายเดือนก่อน +7

      @@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.

    • @BlueEyesWhiteTeddy
      @BlueEyesWhiteTeddy 11 หลายเดือนก่อน

      ​@@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]

    • @mr.rabbit5642
      @mr.rabbit5642 11 หลายเดือนก่อน +1

      @@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

    • @nerdycatgamer
      @nerdycatgamer 11 หลายเดือนก่อน +2

      @@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.

  • @syoritohatsuki
    @syoritohatsuki 2 หลายเดือนก่อน +6

    0:17 it just do correct thing for NVidia users :D

  • @that_random_goto_statement
    @that_random_goto_statement ปีที่แล้ว +18

    0:29 why my drunk ass thought this would work

  • @itszify554
    @itszify554 ปีที่แล้ว +4

    //pray to god that this works
    Thats how i write code every day

  • @user-iz5pd7tj6q
    @user-iz5pd7tj6q ปีที่แล้ว +6

    I dont know programming and this just seems like alchemical textbooks from 1600's

    • @EdKolis
      @EdKolis ปีที่แล้ว +4

      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.

    • @Idonthaveausernameyet
      @Idonthaveausernameyet หลายเดือนก่อน +1

      ​@@EdKolis plus sometimes when you write things wrong you effectively open a portal to the underworld

  • @artiekra
    @artiekra ปีที่แล้ว +2

    1:02 Lol my Codeium literally just did the same, as 2nd suggestion
    First was "Pray to web host")

  • @goldie3238
    @goldie3238 2 หลายเดือนก่อน +1

    for the not loading image you can right click and select load to try to force it to load again

  • @recordkeepingandinformatio8206
    @recordkeepingandinformatio8206 4 หลายเดือนก่อน +2

    1:12 NumPy boolean versus base Pyython boolean, probably

  • @kolobras2676
    @kolobras2676 11 หลายเดือนก่อน +4

    Я никогда бы не додумался до ТАКОЙ проверки числа на чётность, как на 1:04

  • @wlockuz4467
    @wlockuz4467 11 หลายเดือนก่อน +1

    With NPM not having any vulnerabilities would be a war crime

  • @juangabrielcabana8270
    @juangabrielcabana8270 ปีที่แล้ว +14

    1:05 i felt that one

  • @xingyanglan6836
    @xingyanglan6836 ปีที่แล้ว +1

    the even or odd one reminds me of the tortise and hare algo for duplicate number

  • @A_literal_cube
    @A_literal_cube ปีที่แล้ว +6

    1:00 isn't that what every programmer does the first time they try to do something?

    • @dvxv4016
      @dvxv4016 ปีที่แล้ว

      *every time

    • @A_literal_cube
      @A_literal_cube ปีที่แล้ว

      @@dvxv4016 yeah, that makes sense

    • @sharpfang
      @sharpfang 11 หลายเดือนก่อน +1

      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

  • @fadyaldhaim4766
    @fadyaldhaim4766 ปีที่แล้ว +64

    1:10
    how did this test fail if both expected and actual values are the same 😂

    • @zxph
      @zxph ปีที่แล้ว +25

      Idk, maybe one was a string? beats me

    • @benjaminv02
      @benjaminv02 ปีที่แล้ว +10

      yeah classic Junit, its usually strings and then zero width widespace guys messing it up

    • @qwoolrat
      @qwoolrat ปีที่แล้ว +1

      wrong type i tgink😢

    • @SuperOtter
      @SuperOtter ปีที่แล้ว +2

      Man I've had this happen so often. Typically causes by not defining the equals methods

    • @polyacov_yury
      @polyacov_yury 9 หลายเดือนก่อน +2

      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

  • @memetech-
    @memetech- หลายเดือนก่อน +1

    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)

    • @Yehor-v7y
      @Yehor-v7y หลายเดือนก่อน +1

      True evaluates to false?

    • @memetech-
      @memetech- หลายเดือนก่อน +1

      @@Yehor-v7y in Scratch, yes

    • @Yehor-v7y
      @Yehor-v7y 28 วันที่ผ่านมา

      @@memetech- ok

  • @ABlueThing
    @ABlueThing ปีที่แล้ว +2

    (!false) seems like someone was too lazy too change the condition

  • @ThePizzabrothersGaming
    @ThePizzabrothersGaming 8 หลายเดือนก่อน

    0:47 i think the buggest warcrime there is the component logic all being inside render()

  • @cycrothelargeplanet
    @cycrothelargeplanet 8 หลายเดือนก่อน +2

    0:31 I had a stroke reading that

  • @cheese.and.quackers
    @cheese.and.quackers ปีที่แล้ว +4

    1:03 this is genius

    • @Yehor-v7y
      @Yehor-v7y หลายเดือนก่อน

      The comment?

  • @rafe5398
    @rafe5398 8 หลายเดือนก่อน

    The even or odd string slicing is actually quite creative

  • @ivanmeotto4271
    @ivanmeotto4271 2 วันที่ผ่านมา

    Okay the even/odd one is actually kinda smart

  • @kuroenekodemon
    @kuroenekodemon 11 หลายเดือนก่อน

    Look I’m surprised there’s no space between / and usr. Imagine watching someone nuke their pc because of one simple error

    • @00001Htheprogrammer
      @00001Htheprogrammer 10 หลายเดือนก่อน

      well, they didn’t have -no-preserve-root

  • @benjaminaddison4824
    @benjaminaddison4824 2 หลายเดือนก่อน

    My personal favorite programing war crime takes inspiration from Starcraft pros, Barcode names lIIllIlIIlIIIIIIllllIlIIllIIlIl a mixture of lowercase L's and uppcase i's

  • @EdKolis
    @EdKolis ปีที่แล้ว +2

    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... 🙄

  • @dasten123
    @dasten123 ปีที่แล้ว +2

    0:29 Took me a while to get it, but at first I thought I actually kind of like it

  • @EonityLuna
    @EonityLuna หลายเดือนก่อน

    0:56 as someone who knows a bit of CSS, seeing that made me rip a part of my soul out of my body

    • @Yehor-v7y
      @Yehor-v7y หลายเดือนก่อน

      Can I have the part?

    • @Yehor-v7y
      @Yehor-v7y หลายเดือนก่อน

      〽️〽️〽️〽️〽️〽️〽️〽️

  • @HrHaakon
    @HrHaakon ปีที่แล้ว +4

    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.

  • @kerbereal934
    @kerbereal934 9 หลายเดือนก่อน +1

    if true == variable then

  • @bobbobson6290
    @bobbobson6290 11 หลายเดือนก่อน

    0:28 that's genious! Why didn't I think of that?
    That saves so much space.

  • @morgan3692
    @morgan3692 10 หลายเดือนก่อน +2

    if (true) return true;
    else return false;

  • @singh.guransh
    @singh.guransh ปีที่แล้ว +1

    such type of videos are crucial for a coder to maintain the sanity. great effort by the channel I must say!

  • @mikoblixel
    @mikoblixel 7 หลายเดือนก่อน

    the even and odd number function is clever

  • @zhabiboss
    @zhabiboss 3 หลายเดือนก่อน

    1:03 python string manipulation is godly

  • @sebastiangimenez4332
    @sebastiangimenez4332 ปีที่แล้ว +1

    the if(!false) is killing me

  • @Mutrax4706
    @Mutrax4706 9 หลายเดือนก่อน

    0:33 you know you did smth VERY wrong, when intellisense cant come with a better suggestion than just getting rid of it all

  • @EchterAlsFake
    @EchterAlsFake 11 หลายเดือนก่อน

    reading commit comments from random small projects on github is sometimes very fun to read xD

  • @JM_Tushe
    @JM_Tushe ปีที่แล้ว +5

    0:26 This is my favorite. 😂😂😂

  • @mehmeteking
    @mehmeteking 9 หลายเดือนก่อน

    Stacking methods horizontally... Hahahhaa... Just can't stop laughing...

  • @deumnoctis
    @deumnoctis ปีที่แล้ว +6

    Pls tell me the git blame some else isn't real

  • @Anon-do7lo
    @Anon-do7lo 7 หลายเดือนก่อน

    1:05 is actually cool. Not useful but not a war crime

  • @lykanno5137
    @lykanno5137 ปีที่แล้ว +23

    1:03 that even or odd sh*t was vile. Just absolutely bonkers 😂 like who does that

    • @AtariWow
      @AtariWow ปีที่แล้ว +1

      I'm trying to think if it would be at all useful for a code golf.

  • @redpacific359
    @redpacific359 8 หลายเดือนก่อน +1

    0:53 nice font bruh

  • @polyacov_yury
    @polyacov_yury 9 หลายเดือนก่อน

    0:24 that's just a programming exam in Russia

  • @blockify
    @blockify ปีที่แล้ว +8

    intellisense suggestion: remove all backups

  • @matthewrease2376
    @matthewrease2376 ปีที่แล้ว +10

    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...

    • @elijahshadbolt7334
      @elijahshadbolt7334 ปีที่แล้ว +12

      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.

    • @NichtDu
      @NichtDu ปีที่แล้ว

      Maybe it was the dev branch and the other distros only use the stable version

    • @matthewrease2376
      @matthewrease2376 ปีที่แล้ว +2

      @@NichtDu Ubuntu on a dev branch and Arch on a stable? 🤔

    • @NichtDu
      @NichtDu ปีที่แล้ว

      @@matthewrease2376 well arch obviously doesn't use the ubuntu installer but a bunch of other distros do

  • @DegradationDomain_stuff
    @DegradationDomain_stuff ปีที่แล้ว

    I like how they solve that even/odd problem

  • @delightful-ish
    @delightful-ish 2 หลายเดือนก่อน

    idg why the delete code thing is there. There are very few things as satisfying as deleting unneeded code.

  • @tigidou3344
    @tigidou3344 11 หลายเดือนก่อน

    in PHP, in a function : "global $_POST;"

  • @cobaltbluesky2276
    @cobaltbluesky2276 หลายเดือนก่อน

    0:53 reminds me of when i made my whole ide comic sans (for fun)

  • @zhangzhao4133
    @zhangzhao4133 5 หลายเดือนก่อน

    the creativity is crazy

  • @DeLetSHift
    @DeLetSHift ปีที่แล้ว +1

    Oh, Helloween is here?

  • @OneLabToRuleThemAll
    @OneLabToRuleThemAll 11 หลายเดือนก่อน

    *_me just using pointers normally_*
    bro with his alphabetical stack of pointers pointing to the last pointer:
    1:08

  • @Nikki-2981
    @Nikki-2981 9 หลายเดือนก่อน

    0:35 is a github repo of DOOM ported to java

  • @alangraton2000
    @alangraton2000 2 หลายเดือนก่อน

    0:17 got me really hard dude LMAO
    Fun fact: this was this user's first issue ever lol

  • @thegreendude2086
    @thegreendude2086 24 วันที่ผ่านมา

    1:04 Wait, people are commenting code with emojis???

  • @MasterSergius
    @MasterSergius 10 หลายเดือนก่อน

    This vids make me cry and think about life meaning