cursed programming 5

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 308

  • @stevesnoob
    @stevesnoob Рік тому +1825

    Funniest thing about the guessing game to me, is that "number" will always be a float, so you will pretty much always lose the game.

    • @FriedMonkey362
      @FriedMonkey362 Рік тому +157

      Nice one Sherlock

    • @fbiagentmiyakohoshino8223
      @fbiagentmiyakohoshino8223 Рік тому +41

      math.floor()
      math.ceil()
      ez

    • @unflexian
      @unflexian Рік тому +85

      ALSO the os.remove uses unescaped backslashes, so you'll get an error for undefined ASCII character \W or something similar

    • @tbqhwyf
      @tbqhwyf Рік тому +48

      Lose*
      "Loose" typically means "weakly attached". For example, a loose bicycle chain is a chain that isn't tensioned properly.

    • @stevesnoob
      @stevesnoob Рік тому +18

      @@tbqhwyf Yeah, I accidentally made a grammatical error. Thanks for telling me!

  • @Mateo-zi8ub
    @Mateo-zi8ub Рік тому +102

    1:09 that is how harcore mode should work in video games

  • @pegleg759
    @pegleg759 Рік тому +223

    2:56 Most efficient Python program

    • @3RR0RNULL
      @3RR0RNULL 11 місяців тому +9

      And it even manages to run in less than 7 years!!1!1!1!1!!1!1!

    • @timothy1498_boi
      @timothy1498_boi 3 місяці тому

      Yep, the efficient phyton program!!1!

    • @memetech-
      @memetech- 10 днів тому +1

      Look at it this way - where' C's pip? I can't pipc install something like I can in Python

  • @1everysecond511
    @1everysecond511 Рік тому +185

    1:09 "I can offer you a battle you have no chance of winning..."
    - G-Man

    • @matheusguerrascheffer6518
      @matheusguerrascheffer6518 Рік тому +4

      That one was brutal, the dude didn't even gave us a real chance...

    • @No0ne4ik
      @No0ne4ik 11 місяців тому +1

      import os?

    • @kiddsawesomechanel
      @kiddsawesomechanel 11 місяців тому +2

      Some poor guy who downloaded the code: “MY COMPUTER BROKE! WHY?!?”
      The person who wrote the code purposefully adding .000001 to the number: “No regrets, Mr. Freeman…”

  • @OctagonalSquare
    @OctagonalSquare Рік тому +78

    I love the one of all the commits because you can tell which one finally actually worked

  • @matthewmitchell3457
    @matthewmitchell3457 Рік тому +297

    The super dramatic Incredibles music really did it for me, enhances the sense of horror, and makes you appreciate Michael Giacchino all the more.

  • @jarrod752
    @jarrod752 11 місяців тому +20

    This isn't cursed programming.
    This is job security.

  • @PAKTC
    @PAKTC Рік тому +25

    2:16 basically any batch game in a nutshell

  • @thesinglemathnerd
    @thesinglemathnerd Рік тому +238

    0:47 I wasted a good 5 minutes of my life translating the whole thing character by character only to be greeted with "the link" at the end

  • @aname2432
    @aname2432 Рік тому +39

    This makes me uncomfortable

  • @psychoshaman
    @psychoshaman Рік тому +25

    2:48 did this shit in class cuz I already knew c++ before we started learning it, teacher literally called me fucked up

    • @3RR0RNULL
      @3RR0RNULL 11 місяців тому +2

      Once I learn c++ I am going to do this.

    • @Xaim023
      @Xaim023 7 днів тому

      can you explain that to me? i tried looking it up but only got more confused

    • @psychoshaman
      @psychoshaman 7 днів тому

      @@Xaim023 you can alias most things using define, for example you can alias every command and sign in hello world so your whole program is made from just e letters and compilator translates every e's sequence to corresponding command

    • @Xaim023
      @Xaim023 6 днів тому

      @@psychoshaman thank you

  • @baranjan6969
    @baranjan6969 Рік тому +50

    I feel bad for the hacker trying to analyze your program

    • @startea0412
      @startea0412 6 днів тому

      Well, analyzing or trying to understand others program is already a torture in some sort, so hacker signing himself for a torture😅

  • @TinyDeskEngineer
    @TinyDeskEngineer Місяць тому +3

    2:34 The cursed part of this is not the breathtaking amount of pointless inversions, but the amount of mismatched parentheses. (Not to mention nearly all (or all of them depending on if JavaScript requires while loop conditions to be enclosed in them or not) of them are also unnecessary)

  • @sakamocat
    @sakamocat Рік тому +37

    0:00 ah yes, me creating a full c++ project and then github thinks its 99.9% of makefiles 🤡

    • @chri-k
      @chri-k Рік тому +2

      does it actually do that?

    • @sakamocat
      @sakamocat Рік тому +4

      @@chri-k yes if you upload the makefile first, they just update it on the first file for some reason

    • @Adam_le_Zigoto
      @Adam_le_Zigoto Рік тому

      Commit only the CMakeLists.txt, and .gitignore all the makefile crap

    • @vladyslavkryvoruchko
      @vladyslavkryvoruchko Рік тому +2

      even aliens from mars can relate

  • @onethegogd5783
    @onethegogd5783 Рік тому +21

    3:00 when python heard you saying " python is slow "

  • @locutusque9111
    @locutusque9111 11 місяців тому +13

    0:24 us AI researchers see bullcrap like this pretty often, especially with smaller language models

  • @drennel3185
    @drennel3185 Рік тому +60

    "Yes, I use a different editor for each language, why?" -someone on discord

    • @realsilver
      @realsilver Рік тому +21

      jetbrains IDE-s be like

    • @lstuma
      @lstuma Рік тому +2

      I mean I do because some don't support all syntax highlighting.

    • @novarender_
      @novarender_ Рік тому

      This hurts

  • @PAKTC
    @PAKTC Рік тому +34

    0:49 a legit way to obfuscate batch scripts
    gotta love how this person runs setlocal enabledelayedexpansion just so they can use ! instead of % for variables

    • @maxwellcrafter
      @maxwellcrafter Рік тому

      I did that cause it looks nicer while making it slightly harder to reverse

  • @bwsince1926
    @bwsince1926 Рік тому +28

    I had to fight the senior developer where I work because he basically forced me to use a full If/Else statement in place of a ternary operator "in case I want to add more stuff in that else bit". Don't get me started on him using "If is true do things" instead of "if it's false break". All the time. With If statements inside If statements. Cursed!

    • @farhanaditya2647
      @farhanaditya2647 11 місяців тому +2

      Bro what the heck? Are you sure he's a *senior* developer?

    • @bwsince1926
      @bwsince1926 11 місяців тому

      @@farhanaditya2647 For 20 odd years! Man, if you read some of his code, you'd probably be having a laugh as well. Or the UI of his applications (NO whitespace, gigantic titles on every form, unnecessarily descriptive buttons...)

  • @AditiSingh-yb8fq
    @AditiSingh-yb8fq Рік тому +111

    Programmers: "HTML is not a programming language"
    Programming Logo: ""

  • @kitchaos1118
    @kitchaos1118 Рік тому +409

    3:00 Good to see that not even python can defeat the CPU hogging of chrome.

    • @Steel0079
      @Steel0079 Рік тому +36

      Its sorted name wise in asc order. And chrome is at 0%. If it was more than python the power usage value for chrome would also say very high, whereas it says very low

    • @kitchaos1118
      @kitchaos1118 Рік тому +6

      @@Steel0079 doesn't the cpu usage say 8 for chrome and 4 for the pythons?

    • @rysea9855
      @rysea9855 Рік тому +27

      ​@@kitchaos1118 It says 0. You can also tell by the fact that the box is a lighter shade of yellow

    • @gachispy
      @gachispy Рік тому +5

      @@Steel0079 they were referring to "memory"

    • @link_safe
      @link_safe Рік тому +1

      ​@@rysea9855 Awesome, ty

  • @finnchillah3974
    @finnchillah3974 Рік тому +38

    0:47 in the bottom right corner that is most definitely the rickroll link

  • @kunixin
    @kunixin Рік тому +114

    the second image (0:10) just prints 4 lines of absolutely nothing, i did the program and its probably the most fun time ive ever had programming

    • @alexgaming7249
      @alexgaming7249 Рік тому +7

      How though..? There is one print, other one must come from the first if and the eilfs mustn't activate because if was..? Only two must be printed...

    • @saitamatechno
      @saitamatechno Рік тому

      @@alexgaming7249 I agree with alex

    • @kunixin
      @kunixin Рік тому

      @@alexgaming7249 nvm it prints 4, i just put random logical operators that at least made the code work

    • @heck_n_degenerate940
      @heck_n_degenerate940 Рік тому

      If I understand it correctly it goes through each of these horrendous conditionals and outputs a blank line if true. So I would expect the 1st and 5th statements to be true.
      So if the output is 4 lines, what are the other 2 statements?

    • @nah1110
      @nah1110 Рік тому +5

      Wait I thought if the if statement or any elif statement associated with it is true then it should stop evaluating the other instances? So it should just print nothing at the start and then another nothing from the if statement and that's it - 2 blank lines. Correct me if i'm wrong.

  • @ulricoiho420
    @ulricoiho420 Рік тому +9

    realizing that edge takes up 75% memory with only one tab

  • @48exa
    @48exa Рік тому +228

    These videos will never fail to be amazing

  • @СеняМорсин
    @СеняМорсин Рік тому +15

    2:38 WHY THE DUCK THEY OPEN 2 BRACKETS AND NEVER CLOSE THEM😢😢😢💀💀💀

  • @gabrielnobrev
    @gabrielnobrev Рік тому +15

    0:00 average codepen user

  • @hackergaming6372
    @hackergaming6372 Рік тому +7

    0:44 glad I am not the only person who uses e’s as variables a lot

  • @moralfuxery
    @moralfuxery 11 місяців тому +2

    0:18
    I laugh now, but that was me at some point in the past. Fack you Python you beautiful bastard.

  • @GSFigure
    @GSFigure Рік тому +40

    We programmers all had a time when we made such unoptimized code that today we actively avoid it to protect our sanity.

    • @novarender_
      @novarender_ Рік тому +1

      This is purely maliciously optimized

    • @BruttiF27
      @BruttiF27 10 місяців тому

      I remember writing 5 or 6 if else statements in a row before learning about switch case.
      Ignosce mihi, pater, quia peccavi.
      (Lord forgive me, for I have sinned.)

  • @G-Five
    @G-Five Рік тому +9

    0:15 UUUGHHH BRACKETS IN IF STATEMENTS IN PYTHON AAAAAAAAAAAA

  • @recklesspangolin
    @recklesspangolin Рік тому +25

    that first one is me, I tend to separate css for each page and media queries for mobile so I don't have to be confused in development stage, then I'll merge all the css files into one into production lmao

    • @unflexian
      @unflexian Рік тому

      and host all css in one repo??

    • @recklesspangolin
      @recklesspangolin Рік тому

      @@unflexian everything is in one repo, of course

    • @unflexian
      @unflexian Рік тому

      @@recklesspangolin oh alright

  • @singh.guransh
    @singh.guransh 10 місяців тому +3

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

  • @WackoMcGoose
    @WackoMcGoose 11 місяців тому +8

    2:38 Anyone else get nerd-sniped trying to see if it resolves to "not not not not true" only to completely miss the _paren mismatch?_

    • @Templarfreak
      @Templarfreak 11 місяців тому +4

      what's really cursed about it is that it seems like their editor *isnt complaining about it* in the screencap

  • @Zatrit
    @Zatrit Рік тому +7

    3:04 POV: compiling Skia on Windows using Ninja

  • @molybdaen45
    @molybdaen45 11 місяців тому +1

    0:11 you're paid by line of code so you started developing funny methods

  • @jameslockwood8008
    @jameslockwood8008 4 місяці тому +1

    Any non-monospace font in the terminal is just going to look awful, or goofy at best.

  • @kuba4ful
    @kuba4ful 11 місяців тому +2

    2:02 looks exatly like my commits, except instead of v2/v3 i say "fix translate again", "fix translate one more time", "fix translate final (i hope)", "fix translate final final"

  • @tredI9100
    @tredI9100 11 місяців тому +4

    0:29 filesystem corruption

  • @wescube-ligma
    @wescube-ligma Рік тому +1

    no programmers were harmed when making this video

  • @explosive_koala1
    @explosive_koala1 6 днів тому

    I like when the authors put comments in their code acknowledging the horrors they made

  • @tomrow32
    @tomrow32 Рік тому +2

    1:05 Nice, graphing calculator nonsense

    • @maxwellcrafter
      @maxwellcrafter Рік тому

      Most efficient way even if jank ¯\_(ツ)_/¯

  • @vladyslavkryvoruchko
    @vladyslavkryvoruchko Рік тому +5

    0:03 bro github shows that my project is 70% cmake and 30% c++, my case is not recoverable

  • @Nick12_45
    @Nick12_45 10 місяців тому +1

    1:10 hehe we do a lil trolin 😏

  • @marcoshenriques3118
    @marcoshenriques3118 Рік тому +4

    Those vídeos always get me MAD laughing, i cant stop 😂

  • @godlypumpkin8745
    @godlypumpkin8745 11 місяців тому +1

    Game one lies. It says 1-10, but it is actually 1.000001-10.000001

  • @victorg9157
    @victorg9157 Рік тому +2

    cursed programming in c, i saw yesterday irl from a friend:
    while(1)
    {
    ptr= (int*) malloc (100*sizeof(char*));
    }
    return 'AMOGUS';

  • @gandalfgrey91
    @gandalfgrey91 Рік тому +2

    I’m beginning to wonder how deep the rabbit hole goes

  • @afunnyusername798
    @afunnyusername798 Рік тому +7

    i'm scared

  • @PlaylistCollector2112
    @PlaylistCollector2112 Рік тому +1

    DO NOT OPEN VSCODE AT 3AM! (SCARY CLICKBAIT THUMBNAIL)

  • @olegchernysh8391
    @olegchernysh8391 Рік тому +32

    I barely understand few command, but im just dying when i see programmer's reactions on these.

    • @unflexian
      @unflexian Рік тому +1

      Nice I love this energy
      try reading 1:09 it should be understandable

    • @atomicaxiom7573
      @atomicaxiom7573 11 місяців тому

      @@unflexianI feel like just reading “os.remove System32” should be enough to figure it out 💀

  • @StellarSt0rm
    @StellarSt0rm 11 місяців тому +4

    0:10 Nothing indeed

  • @Jenkkimie
    @Jenkkimie Рік тому +1

    This video gave me a PTSD.

  • @Mutrax4706
    @Mutrax4706 Рік тому +1

    2:34 im not sure whats worse
    the insane unnecessity of "not" marks, OR HOW THE PARENTHES DONT MATCH!!! there are so many "(" but only one ")"

  • @AVeryCooIName
    @AVeryCooIName 8 днів тому

    2:37 would raise a syntax error; theres like 30 opening parentheses and only one closing parentheses

  • @5cover
    @5cover Рік тому

    I've made more than my fair share of bad commit messages, but these are just on another level.

  • @christopherr8441
    @christopherr8441 Рік тому +1

    This song is perfect for this

  • @lucascodebreak
    @lucascodebreak 11 місяців тому +1

    As a Programmer, this give me Vietnam flashbacks

  • @shqs_i
    @shqs_i 27 днів тому

    i literally felt physical pain while watching this.

  • @nekoracore3378
    @nekoracore3378 Рік тому +1

    AaaaaaaaAaAaAAAaAAaaAAAAaaaaaa
    FINDING MY HAPPY PLACE. FIIIIIIIINDIMG MY HAPPY PLACE

  • @moharexx3128
    @moharexx3128 Рік тому +1

    Cursed Javascript you could use in next video:
    console.log(function(){return "Hello World!"}());

  • @Joe-xr2xl
    @Joe-xr2xl 11 місяців тому +1

    for (;;) is not a war crime. Its spec lol i think of it as the forever loop.

  • @TinyDeskEngineer
    @TinyDeskEngineer 2 місяці тому

    0:10 This is the code of someone desperately trying to debug a problem where nothing is helping

  • @crazytiger6
    @crazytiger6 6 днів тому

    1:13 inputs “no”
    Since they have no input validation, trying to turn “no” into an integer will raise an error and crash the program

  • @hengstus8411
    @hengstus8411 Рік тому +1

    The music really makes these.

    • @marasmusine
      @marasmusine Рік тому

      I can't quite place it but it sounds like John Barry.

  • @ketaminepoptarts
    @ketaminepoptarts 10 місяців тому

    0:00 is what it feels like using any modern website

  • @cpucat
    @cpucat 9 днів тому

    1:05 Texas instruments, is that you

  • @TheBlackopsDS
    @TheBlackopsDS Рік тому +7

    1:10 absolutely floored me

  • @kooskoos1234
    @kooskoos1234 11 місяців тому

    I dont know why i clicked this video, i knew it would enrage me and yet i fell for it

  • @casev799
    @casev799 11 місяців тому

    I'm barely know shit about code and wanting to learn C but seeing so many ! statements in the thumbnail alone genuinely had me in a 1000 yard stare

  • @starpawsy
    @starpawsy 4 місяці тому

    That encypherment at 0:47 could be done in like 1% of the code with a unix 'tr' command:
    tr '[a-z]' 'bxyzhn....wotevr' < infile > outfile

  • @dm121984
    @dm121984 Рік тому +1

    1:12 Definite 'Jigsaw' vibes here.

  • @mrlemflem
    @mrlemflem 13 днів тому

    1:09 truly rigged (even if you somehow guessed it, it would just give you a value error lol)

  • @wigwuck
    @wigwuck Рік тому

    The fix translate commits one hits a little too close to home

  • @dmitryvakulenko3269
    @dmitryvakulenko3269 11 місяців тому +1

    2:48 shortest java class name

  • @eeti5658
    @eeti5658 6 місяців тому

    0:00 bro tried to center an element

  • @gyroscopic
    @gyroscopic Рік тому +6

    Why tf does it say 66666 views!?

  • @rektleet
    @rektleet Рік тому

    yooo tom from myspace would be proud of the first one

  • @daze8410
    @daze8410 Рік тому +1

    2:19 It's running on a literal potato

  • @Infragion
    @Infragion Рік тому

    about guess game: python will say that he dont have permissions to delete that folder

  • @VeryEpicFrog
    @VeryEpicFrog 10 днів тому

    The thumbnail will print

  • @eowynscience
    @eowynscience Рік тому

    Truly tripping hackers

  • @RtepPWR
    @RtepPWR Рік тому +3

    I do love these! ♥

  • @AraikSarkisyan
    @AraikSarkisyan Рік тому +9

    2:00 Team Fortress 2 devs detected

  • @timothy1498_boi
    @timothy1498_boi 3 місяці тому

    0:01 the css 😭😭

  • @evanlacagnina3963
    @evanlacagnina3963 Рік тому

    2: 54 This last one really got me XD

  • @Peter-kn9jj
    @Peter-kn9jj Рік тому +4

    1:09 os is not imported
    2:35 there are no closing parentheses

    • @PawelHerok
      @PawelHerok Рік тому +1

      ur saying that like the whole video isn’t cursed

    • @Peter-kn9jj
      @Peter-kn9jj Рік тому

      @@PawelHerok it's more than cursed especially at the mentioned timestamps

    • @joedover302
      @joedover302 Рік тому

      i mean to be fair you wouldn’t want to accidentally run the code and delete system 32

  • @breannathompson9094
    @breannathompson9094 11 місяців тому

    2:10 all my "practice" projects are named like this...

  • @TinyDeskEngineer
    @TinyDeskEngineer 2 місяці тому

    That code in the thumbnail isn't even going to work because of the mismatched parentheses

  • @simonwillover4175
    @simonwillover4175 11 місяців тому

    0:12 basically checks to see if an object (`nothing`) has the proper equality operators built in. If `nothing` doesn't (i.e. it is completely indescriminate) then the function returns None. If `nothing` DOES have the proper operators built in, then it returns `nothing`. I propose we rename this function to "is_pythonic" or something along those lines.

    • @simonwillover4175
      @simonwillover4175 11 місяців тому

      Actually, the "is" statements kinda complicate this a lot.

  • @dimankan
    @dimankan Рік тому +1

    страшно. вырубай

  • @Tactcat
    @Tactcat Рік тому

    thank you cement sandwich

  • @AntonyTechnologies
    @AntonyTechnologies 2 місяці тому

    1:51 God, forgive me 😂

  • @lautischeibe
    @lautischeibe 14 днів тому

    0:40 i did a full alphabet with this one LMAO

  • @Fish-K-fischer-o-forke-Sr
    @Fish-K-fischer-o-forke-Sr Рік тому

    Need cursed programming 6

  • @hassaniq0777
    @hassaniq0777 Рік тому +1

    0:18 I'M DEAAAD LMAAAAAAAO 😂😂😂😂😂😂😂😂

  • @_bits_and_bytes
    @_bits_and_bytes Рік тому

    0:00 Oh I see you're using tailwind CSS

  • @Memztroijan
    @Memztroijan Рік тому

    The thumbnail is a real work of art xD

  • @moskvin6175
    @moskvin6175 Рік тому +1

    I love so much these videos lol

  • @cheese.and.quackers
    @cheese.and.quackers 7 місяців тому

    0:19 I hate to admit it, but i have done this one accidental before