cursed programming 3

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

КОМЕНТАРІ •

  • @halfspire
    @halfspire Рік тому +1402

    i showed this to our backend lead and he rolled into a fetal position and started crying

    • @saarza9991
      @saarza9991 Рік тому +12

      Maybe he got exposed using these same things in his "personal" project? Who knows 🤭

    • @drondiwe
      @drondiwe Місяць тому +4

      he recognized his own code from good old days

  • @thechosenzendro
    @thechosenzendro Рік тому +178

    Everybody gangsta until "what" appears in stdout

  • @therealg9542
    @therealg9542 Рік тому +353

    I like how there is a 2160p option for this video and yet the video is essentially a slideshow full of low quality pictures, I digress.

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

      Yet I watch it in 240p because I don't have wifi (I'm on mobile).

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

      I also digress sometimes. Sometimes way too damn hard. I just keep digressing and can't stop it. What is happening to me? I keep digressing and digressing further into a deeper state of digression. One moment, I will not be as digressed, but then I digress and become more digressed. Am I fated to keep digressing? Am I lacking some sort of anti-digression gene? Should I alter my genes to stop this digression? Sounds like the way to stop digression now is to create mutants, I guess.
      This is how Wolverine was born.

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

      😂😂​@@HonsHon😂

    • @pedroamaralcouto
      @pedroamaralcouto 8 місяців тому +1

      Many people like weird stuff on UA-cam. At least it's not some paraphilia.

    • @favoredbeach
      @favoredbeach Місяць тому

      You can't just say -perchance- "I digress"

  • @RiteshRajbhandari-lp
    @RiteshRajbhandari-lp Рік тому +1132

    3:02 I really wanna know if the "#try even harder" section contains the entire source for the library and builds it right then and there from it

    • @Fr4nk4000
      @Fr4nk4000 Рік тому +46

      I wouldn't doubt it

    • @IqweoR
      @IqweoR Рік тому +176

      No there's pip3 with --user flag. If even --user installation have failed - we have to search the drive either from / or from C:\ for the python/python3 and or pip/pip3 binaries. Then and only then if that failed we paste yaml library and try with that. If there's an incompatibility with the version and the library fails to build/import still, we have to manually build the needed version of python from source and use these binaries to rerun code of the program, get the output, display to user and then safely shutdown.

    • @RiteshRajbhandari-lp
      @RiteshRajbhandari-lp Рік тому +180

      @@IqweoR You're the author of that thing aren't you I know you are

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

      no, it's calling chatgpt to generate a python yaml paser.

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

      💀 bro would need some months for that code

  • @Puzzlers100
    @Puzzlers100 Рік тому +563

    I've seen an alternate version of the samurai warrior one before
    A samurai warrior would shout "You're trying to view flash content, but have no flash plugin installed"

  • @Seftdelmer
    @Seftdelmer Рік тому +267

    Her Majesty's PHP interpreter is awesome. Kudos.

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

      I want to sound British when doing PHP 🤣

    • @dijital4801
      @dijital4801 6 місяців тому +5

      @@irun_mon The way to sound british when youre programming is to fill your code with syntax errors by putting "Colour" instead of "Color"

    • @jammiejammed
      @jammiejammed 4 місяці тому +2

      ​@@dijital4801 i do that subconsciously and wonder where exactly i did go wrong

  • @nguyenquockhanh3781
    @nguyenquockhanh3781 Рік тому +527

    "Binary tree isn't real, it can't hurt you"
    Binary tree: 1:30

  • @ivanandradamendoza
    @ivanandradamendoza Рік тому +1458

    As a Software Developer with more than 5 years of experience, I have to say these cursed images are just the tip of the iceberg 😂

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

      Aight check out 'The single most useful macro in Praat'

    • @sophiacristina
      @sophiacristina Рік тому +16

      Legit question... What was the worse you saw?
      Also, for fun i included a ".txt" file in a c++ file, what do you think about that?

    • @ivanandradamendoza
      @ivanandradamendoza Рік тому +65

      @@sophiacristina Arbitrary use of timeouts to avoid further errors.

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

      @@sophiacristina my first project out of college I was doing bug fixes on an old website and broke the website by turning on dark reader. The way they checked if products were favorited or not was by checking the css color value of the star........

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

      @@ivanandradamendoza Good lord what the FUCK Why couldn't they just handle the damn thing?

  • @ZiplawDev
    @ZiplawDev Рік тому +488

    catch(error) throw error is genuinely something thats used when programming using async await in C#, since async operations throw silently by default

    • @vidblogger12
      @vidblogger12 Рік тому +70

      That sounds like a C# problem.

    • @ZiplawDev
      @ZiplawDev Рік тому +133

      @@vidblogger12 that's... what i said?

    • @comoyun
      @comoyun Рік тому +10

      @@ZiplawDev yep

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

      Also Java since it refuses to let you not catch errors

    • @LoganDark4357
      @LoganDark4357 Рік тому +10

      @@khhs catch (e) { throw new RuntimeException(e); }

  • @juanma_cello
    @juanma_cello Рік тому +122

    1:50
    I couldn’t f*cking stop laughing when finally understood NFT’s source code.

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

      Nft is a jpeg

    • @Gabriel64468
      @Gabriel64468 Рік тому +23

      ​​@@holl7w No, much more better. It is a drawing of a jpeg.

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

      ​@@Gabriel64468its a receipt in a digital ledger with a linked ipfs hash to a file. Typically this is an image dynamically generated through weighted layer randomization to create rarity.
      Would've been neat if it had just been a new form of digital collecting art and other shit for like $0.10 each and not what it is, filled to the brim with scams offering unobtainable ROI to rich kids and mobile game addicts.

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

      ​@@Gabriel64468 I still don't get it

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

      @@Gabriel64468 Even better - It's a link to a jpeg that already exists.

  • @jedrzejsikora8970
    @jedrzejsikora8970 Рік тому +116

    it's both a pain and laughter to watch

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

    2:58 yo we be livin in a simulation 💀

  • @alex38235
    @alex38235 Рік тому +290

    1:40 isn't cursed - parseInt is only meant to take in strings, and it's taking a number, so unexpected things are happening. JS converts 0.0000005 to the string "5e-7" which parseInt correctly converts to 5 (because it ignores everything after the first non-digit character). parseFloat does what is expected - the number is implicitly converted to the string, then that string is converted back to a number (which is to say it does nothing). The correct way to convert a decimal to a whole number is to use Math.round().

    • @dinamitemaster
      @dinamitemaster Рік тому +82

      I'd say passing a number to parseInt is cursed enough, and another reason why I hate dynamically typed languages

    • @lukasveskrna
      @lukasveskrna Рік тому +53

      Javascript is cursed.

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

      @@dinamitemaster This can only cause problems in a weakly typed language. Strong vs. weak is a different axis than static vs. dynamic typing.

    • @me-myself-i787
      @me-myself-i787 Рік тому +2

      Or Math.floor()

    • @phir9255
      @phir9255 Рік тому +8

      I think it's stupid that JS converts 0.0000005 to "5e-7". If you can type it in your text editor there's no reason why it would be too long to be a string.

  • @ZerothVeratross
    @ZerothVeratross Рік тому +61

    This is so fkn good man. Besides the "haha funny cursed", it also makes me feel more intelligent than I actually am.

  • @olegshevchenko5869
    @olegshevchenko5869 Рік тому +58

    2:07 Is this madness? Perchance.

  • @tamaz88
    @tamaz88 Місяць тому +7

    0:19 literally the “AI” I tried to create in scratch as a 9 year old

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

    this is print("goodbye world") levels of threat

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

    1:02 I had never even considered this. Cursed, but intriguing!

  • @SMorales851
    @SMorales851 Рік тому +63

    1:55 this a surprisingly good explanation lol

    • @pold111
      @pold111 Місяць тому

      all of web3 explained in 1 image

  • @yasscat5484
    @yasscat5484 Рік тому +29

    0:11 this is how ChatGPT was created

  • @volatus2354
    @volatus2354 Рік тому +12

    These are the only real programming memes. All the other stuff is just silly and would only make a 50 year old dad who's never seen comedy before laugh. The "cursed programming series" comprises the only programming jokes that have ever made me laugh. Thank you.

  • @Gunner98
    @Gunner98 3 місяці тому +4

    The second one is how I thought chatbots actually work as a kid lol

  • @gaminggaming2683
    @gaminggaming2683 Рік тому +59

    1:20 when you don't understand the difference between inheritance and composition.

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

      Although I dunno, it raises some interesting questions about society. I feel like perhaps for the US in particular at times using inheritance here might not be a bad thing...

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

    0:44 that's far from cursed, the REAL cursed one are those catch block that does nothing. The program can just die without a sound.

    • @ensi.creator
      @ensi.creator 8 місяців тому

      yeah, in some cases this solution is not that bad

  • @AlexanderTzalumen
    @AlexanderTzalumen Рік тому +46

    You know, I want to hate the first one for them doing something that looks stupid but works, but I actually hate it because the define syntax is reversed and it wouldn't work until they fix it.

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

      Thank goodness I'm not the only one who noticed. Could it be that in some obscure C-like language the preprocessor has reversed arguments?

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

      @@traveller23e i don't think so, that's definately c or c++
      I think someone just wanted to make a joke, but either misunderstood the syntax, or didn't care.
      The guy who used defines to convert c/c++ to emojilang did a cleaner job

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

      i dont understand what c[0] means when c was a long long int. I had to double check to make sure the array indexing was applied before the address-of.

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

      ​​@@SoulSukkur
      Yeah, it's very broken. If c was a pointer, tho
      *c > 3? p= &c[0] :p = nullptr;
      Would be valid, if a weird use of a ternary.
      Assignments in ternaries are uncomfortable

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

      ​@@SoulSukkur
      With the current declarations i'd expect
      p finna c > 3 sussin bouta c bussin nullptr rn
      What the hell did i just type out

  • @jlco
    @jlco Рік тому +13

    2:10 "You can't just _say_ perchance."

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

    1:29 *"Is this class inheritance?"*

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

    This video is so cursed, I opened it and half my youtube's dark theme turned white, not even kidding.

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

    1:40 - Nightmare Fuel ... the kind that keeps you up all night!

  • @danser_theplayer01
    @danser_theplayer01 Місяць тому +1

    You won't believe me when I say I actually had to code up some catch(error) { throw error }, mostly for experimentation with new ideas and to check the flow of code.

  • @gunter8446
    @gunter8446 Рік тому +44

    1:51 Bro just solved the main problem with NFT wasting energy 💀💀💀

    • @official-obama
      @official-obama Рік тому +9

      actually, the main problem is the miners, which do a lot of hashes just to verify a block (i think)

  • @imrlyboredful
    @imrlyboredful Місяць тому +4

    0:30 I've definitely written this code before

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

    Why why why why why why why is all I can hear in my head just looking at this.

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

    2:40 I thought papyrus was a Skyrim thing

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

    2:46 hey look someone was making a minecraft mod lmao

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

    10 min ago, whoever wrote those had so much boredom in them and creativity!

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

    I've done 0:43 sometimes for debugging, it's easier to add the line that throws the error and later remove it than to remove the entire try / catch block, then re-add it.

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

    Those samurai really had a way with words

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

    I like how your background music makes each video seem like a new alien movie sequel in the series.

  • @madeformario
    @madeformario 10 місяців тому +2

    Honestly I was really just curious about what would they do to make them say "Who said HTML wasn't a programming language"

    • @vlynst
      @vlynst 19 днів тому

      Hylley/HyperText-Programming-Language

  • @bacalhau_seco
    @bacalhau_seco Рік тому +30

    i remember learning how to program to understand this kind of stuff, im going to take computer cience at college now

  • @devilbob
    @devilbob Рік тому +14

    It's time to sneak some of this code into project at my job. 02:15 is my fav, I'll do this one

  • @TinyDeskEngineer
    @TinyDeskEngineer Рік тому +14

    I want to see that HTML code

    • @vlynst
      @vlynst 19 днів тому

      github/Hylley/HyperText-Programming-Language in question:

  • @-throat-
    @-throat- Рік тому +3

    1:12 oh, is *that* why the battles took so long to end

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

    0:15 me when making an ai

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

      You when making preprogrammed chatbot in scratch

  • @dydierripe5611
    @dydierripe5611 Місяць тому

    1:10 I can confirm that when I lived in ancient Japan and I learned to be a Samurai, I usually shouted:
    "to enable twitter circles set the following cookie: document.cookie="ab_decider=trusted_friends_consumption_enables=true &trusted_friends_tweet_creation_enabled=true";"

  • @kamendra6368
    @kamendra6368 Місяць тому

    0:19 just when i decided to create a chatbot in school

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

    Lmao that NFT one is priceless. 😂

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

    | class -> upper_class, middle_class, working_class | 💀💀

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

    Absolutely cursed, thank you.

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

    The papyrus font kiled me... *ded*

  • @FrancescoAntoni090504
    @FrancescoAntoni090504 Рік тому +19

    this is the most messed up yet beautiful thing i've ever seen

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

    It feels good finally getting the HTML one. I just started learning it in college.

  • @Monster-qe9ul
    @Monster-qe9ul Рік тому +10

    This hurts my everything to look at I swear

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

    0:10 so many parts to that conditional and yet so few equality operators

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

    2:29 is still more usable then normal python booleans

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

    0:23 fun fact thats actually a picture @RobTopGames tweeted with the caption "I wish there was an easier way to do this"

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

      if number % 2 == 0; return true; else; return false;
      I just solved it

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

    0:00 why are all the defines backwards

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

    2:18 jumpscared me. i have no clue why it was so startling but it was

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

    0:17 The chat bot when the user forgets one "ea": 💀

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

    0:41, in some cases this is useful for retries. Some decorators allow you to retry a method if an exception is thrown.

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

    I mean, technically html is a declarative programming language
    hopefully this comment doesnt end up in a cursed programming compilation

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

      not a general purpose one (like C++ or Java) though

  • @강용우-n2h
    @강용우-n2h Рік тому

    Watching this video makes me feel like I could sit on the poop and stick out the toilet

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

    First fucking frame of the video and I am already losing my shit lmao

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

    The first two may look cursed at first, but if you look closer you’ll see they are actually much more cursed. First one has a weird trinary operator and reversed #define syntax, second is missing = all over the place

  • @_GhostMiner
    @_GhostMiner Місяць тому

    The most cursed thing is putting the opening bracket on the same line as the function name.

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

    The HM's PHP interpreter was gold

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

      Reminds me of Perligata (Latinized Perl).

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

    Apex Legends is my favorite text editor too

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

    These videos make me want to off myself. Thank you for this top tier context™️.

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

    Ah yes, everyone's favorite C++ editor, Apex Legends

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

    1:42 so this one's actually super funny because if you keep going, at 5*10^(-10) you get a result of 4 from parseInt

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

    1:03 Missed a trick by not also autoformatting ) and ] over to the right.

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

    2:43 omg the font

  • @Metal_Lobster53
    @Metal_Lobster53 15 днів тому

    0:30 if you menage to get it to print what without using glitches or something like that just find all of the digits of pi at that point

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

    Pov: You're reading through the comments to find a comment with the timestamp of the image you found funny or interesting.

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

    Hah! These were all good, but I had to pause a minute to stop laughing after the NFT one. It's delightfully descriptive.

  • @mrowlsss
    @mrowlsss Місяць тому

    0:46 HTML is a computer language, more specifically a markdown language

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

    I like how theres all code and stuff and then there’s a tree

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

    The music makes this a lot better

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

    1:29 I'm not sure what's wrong here, but this tree definitely has a threatening aura

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

    2:16 this one caught me off guard bro I swear just looking at a family of semicolons looks too goofy to me.

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

    PAPYRUS font aint no way

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

    Hmm, catch-and-release exception handling.

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

    0:40 had to use this cause the way of a frontent is built, some method was causing issue cause was a promise waiting for a resolution of a promise so when used "catch(error => return error)" the promise that was calling this one try to resolve a error, not to reject it. So, for the sake of "'im not gonna rewrite the entire structure of this app because I have no time to do this task" I had to do the "catch(error =>{throw new Error(error) } ) " thing

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

    2:05 splendid lol

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

    the first one is hilarious

  • @ravendude3632
    @ravendude3632 Місяць тому

    >catch error
    >throw error

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

    I have to say. Catch(error){throw error;} got me.

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

    I have actually seen "catch (error) throw;" more in old production code than I'd like to admit

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

    0:44 I haven't used C# in quite a bit, but in C# rethrowing an exception rewrites the backtrace. I'm sure there's some use there...

  • @cyberprompt
    @cyberprompt Рік тому +12

    gotta try that semicolon indenting

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

    Somehow I feel disturbed that NFT wasn't a unique ptr xD

  • @MarkedOneIL
    @MarkedOneIL 26 днів тому

    The last one is cursed but can be useful

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

    catch(error) throw (error), made me almost pass out

  • @ΓιώργοςΚεμέριος
    @ΓιώργοςΚεμέριος 8 місяців тому

    3 mins video and I'm still in the first one for 10 mins dying laughing

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

    3:09 could've just copy the entire library into the program

    • @logon-oe6un
      @logon-oe6un Рік тому +1

      Then you will start asking why shipping with all the necessary classes and functions from those libraries and running from that isn't the default.
      Scary stuff.

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

    I've made far worse. You thought you've seen innefficient until you see the absurdity of my code. That's why I ask chatgpt to do it for me and edit it to remove security exploits and nonfunctional code.

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

    why do i watch this series every day lol

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

    while(no cap) {
    if(p be cap)
    yikes rn tho
    Is the best thing ive seen all week

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

    if this prints you managed to make 1 equal 4 somehow