programming war crimes 1

Sdílet
Vložit
  • čas přidán 10. 08. 2022
  • JOIN MY DISCORD: dsc.gg/elseif
    do not commit programming crimes
    also subscribe because i never ask you to
    **I DID NOT MAKE THIS**
  • Hry

Komentáře • 2,3K

  • @else1f
    @else1f  Před rokem +3139

    I just got an ad on my own non-monetized video. wtf

    • @jcvp2493
      @jcvp2493 Před rokem +273

      If you do not claim it , someone will .
      Probably is the music.

    • @Hoppp4848
      @Hoppp4848 Před rokem +149

      Are your video monetizeable? If not, CZcams will just place ads there to be nice like that

    • @adlzinn
      @adlzinn Před rokem +49

      That wanna be the real unforgivable crime

    • @JamesSmith-ix5jd
      @JamesSmith-ix5jd Před rokem +124

      You cannot not monetize your videos, if it becomes popular youtube will show ads on it, and you will not have any money from that, this rule was introduced 5 years ago or so...

    • @else1f
      @else1f  Před rokem +159

      damn.

  • @nicolascerutti1485
    @nicolascerutti1485 Před rokem +5982

    1:00 the Initialization of Independence

  • @justablanket
    @justablanket Před rokem +9842

    My favorite part about the one with 31,248 errors is that as a non-programmer I am left to infer that every single one is caused by the fact that they typed "peple" instead of people.

    • @reshirman
      @reshirman Před rokem +1683

      as a programmer, I have the same conclusion

    • @LePhenixGD
      @LePhenixGD Před rokem +781

      Or perhaps that they forgor to add a semi-colon at the end of a statement

    • @worldspam5682
      @worldspam5682 Před rokem +512

      C/C++ coders when you did anything: relatable

    • @zebraforceone
      @zebraforceone Před rokem +62

      Yup and quite possibly in something that runs at 60fps. Not uncommon tbh

    • @a_commenter
      @a_commenter Před rokem +214

      @@AxlefublrMain I remember the most errors I ever got from a single character typo was when in a java program I missed one letter in "public class". I think it threw an error for every word in the file saying "hey, this isn't valid before you've defined your class!"

  • @ayumuaikawa
    @ayumuaikawa Před rokem +296

    this video being in 240p is a war crime in itself

    • @gradykinn
      @gradykinn Před 3 měsíci +4

      So it's not me

    • @cembaturkemikkiran4109
      @cembaturkemikkiran4109 Před 3 měsíci +7

      Nahh dude, it is to protect your eyes, equivalent of using welders' glass while looking at the sun.

  • @stephenpremium635
    @stephenpremium635 Před rokem +172

    1:06
    "What is your programming language?"
    "Hardware"

  • @Socius_GMFB
    @Socius_GMFB Před rokem +4322

    Please name this video "Programming best practices - 2023" thanks

    • @thegreatcornholiofb3037
      @thegreatcornholiofb3037 Před rokem +66

      *filmed with a circa 2000 one megapixel knock off camera from China. 📷

    • @worldspam5682
      @worldspam5682 Před rokem +32

      "what CZcams coding bloggers teach you"

    • @animescholar8062
      @animescholar8062 Před rokem

      Dude if some idiot out there takes your comment seriously, and I somehow run into those problems,.. am coming for you!!!

    • @notsojharedtroll23
      @notsojharedtroll23 Před rokem +1

      💀💀💀

    • @ekremaslan8068
      @ekremaslan8068 Před rokem +5

      @@thenoblepoptart don't know if you are aware but that's usually how it's done on the internet

  • @perfectionbox
    @perfectionbox Před rokem +6058

    The inherent sadness of programming is that there are far more ways to do it wrong than right

    • @jojough8283
      @jojough8283 Před rokem +203

      but like, the same can be said for anything, it's just extremely hard to get everything right with coding
      * pats tummy and rubs head *

    • @samanthaqiu3416
      @samanthaqiu3416 Před rokem +134

      there are far more ways in which atoms can form poisonous compounds than they can form food. Is a general principle that order is the opposite of entropy. The more degrees of freedom a system has the harder it is for the system to achieve a state where it is capable of performing a useful function

    • @perfectionbox
      @perfectionbox Před rokem +20

      @@samanthaqiu3416 Right, and Turing complete languages have really high degrees of freedom.

    • @ZachAttack6089
      @ZachAttack6089 Před rokem +53

      ​@@jojough8283 But for programming specifically, there are usually hundreds of ways to write code that technically work the same, but most of them are horribly inefficient/impossible to read/can't be expanded upon/painful to debug/overcomplicated/inconsistent/etc. In a lot of fields it's obvious when something is made poorly, but for programming you often can't tell unless you look at the code.

    • @deliriousAzazel
      @deliriousAzazel Před rokem +7

      there are far more ways to do quite literally anything wrong than right

  • @Reac2
    @Reac2 Před rokem +1616

    I knew a person who, instead of just writing a line to execute straight. He wrote an if command that can't happen and put the original line in the else, just to tempt the gods.
    I had much to learn from this man

    • @rune.theocracy
      @rune.theocracy Před rokem +69

      I could learn a thing or two from that..

    • @OneBiasedOpinion
      @OneBiasedOpinion Před rokem +234

      “An ‘If’ command that can’t happen.”
      Something about that statement seems blissfully naive, but I can’t quite put my finger on it…

    • @EricGardnerTX
      @EricGardnerTX Před rokem +36

      Doesn’t that just devastate branch prediction efficiency?

    • @josepedrogaleanogomez4870
      @josepedrogaleanogomez4870 Před rokem +122

      The chances of an if command never happening are never 0. Everything is possible if you believe in yourself.
      /s just in case.

    • @KANJICODER
      @KANJICODER Před rokem +14

      I think I know what you are talking about. I do this to align code sometimes.

  • @baltic8558
    @baltic8558 Před rokem +5456

    i remember being in school and having the teacher ask you to copy code from a word doc which made the code unusable because of the different symbols

    • @shrinkages
      @shrinkages Před rokem +396

      oh my god we do this all the time in my ap java class and the fucking curly quotes get me every time

    • @markzuckerbread1865
      @markzuckerbread1865 Před rokem +51

      same shit but in uni

    • @maksymiliank5135
      @maksymiliank5135 Před rokem +167

      Where the fuck do y'all study? I would get outta there as fast as possible xD

    • @baltic8558
      @baltic8558 Před rokem +90

      @@maksymiliank5135 my school teachers were really lazy. wasted like a good year if it werent for self study

    • @00uk919
      @00uk919 Před rokem +11

      the doc forsenCD

  • @hoangbuibao5661
    @hoangbuibao5661 Před rokem +2409

    1:00 writing code in the 1700s

  • @vilara8666
    @vilara8666 Před rokem +60

    My first reaction to 1:10 was like yeah, people don't know switch exists. A second later I realized that this is meant to be a clalculator and my brain just melted

  • @opagel
    @opagel Před rokem +341

    The real reason why 0:50 is a crime: The same code is being duplicated and being stacked on top of each other. The correct way is taking the original part of the code, removing the duplicates, and putting it inside a single repeat () block.

  • @o-manthehuman7867
    @o-manthehuman7867 Před rokem +1817

    The most unforgivable crime is putting a zero width space in a random spot in code

    • @else1f
      @else1f  Před rokem +225

      ugh

    • @user-yj8di6kz5s
      @user-yj8di6kz5s Před rokem +1

      several ones so your victim will suffer even more

    • @theseangle
      @theseangle Před rokem +89

      Bro monospace font

    • @mechaxyz_
      @mechaxyz_ Před rokem +29

      oh my god no

    • @chri-k
      @chri-k Před rokem +81

      -You can just temporarily insert quotes in the beginning and end of the file and VScode will highlight the offending characters-
      Actually VScode will always highlight them
      ( given the right settings )

  • @rheivenjunoblianda6989
    @rheivenjunoblianda6989 Před rokem +49

    As a programmer who has no life, I agree that brute forcing result through multiple uses of selection structures is the best way to get the answer that you're not looking for.

  • @igormarcos687
    @igormarcos687 Před rokem +15

    1:00 it feels like you are a wizard conjuring spells to manipulate invisible energy
    which, in a certain way, you are

  • @mnnptl
    @mnnptl Před rokem +497

    0:42 when you find code written on the wall of an ancient cave

    • @yagomizuma2275
      @yagomizuma2275 Před rokem +75

      You read it and a fruit appears

    • @tacthib1396
      @tacthib1396 Před rokem +38

      @@yagomizuma2275 You realize that you are in a simulation and that you are an npc

    • @prohacker5086
      @prohacker5086 Před rokem +6

      Wie viel märchen dir noch bleibt

    • @jodinha4225
      @jodinha4225 Před rokem +10

      I mean I’m pretty sure that’s a semetic script so ur finding the next holly book… and it’s in Python 🥲

    • @Mordecrox
      @Mordecrox Před rokem +19

      @@jodinha4225 that's SGA (standard galactic alphabet), the most popular game featuring it being Minecraft

  • @cizarmadi
    @cizarmadi Před rokem +360

    1:00 bro programming in Declaration of Independence ☠️☠️

    • @gutoguto0873
      @gutoguto0873 Před rokem +1

      Does anyone know what font was used?

    • @user-ik4wf4yc7v
      @user-ik4wf4yc7v Před rokem

      @@gutoguto0873 yeah, now i want such font too. Before this video, I could not even think that it possible

    • @gutoguto0873
      @gutoguto0873 Před rokem

      @@user-ik4wf4yc7v Please let me know if you find anything.

    • @sbeyer17
      @sbeyer17 Před rokem

      ​@@gutoguto0873Looks somewhat like "lateinische Ausgangsschrift" that's german and there's no real translation or sütterlin.
      What I found fast which pretty much fits as a regular font is "novia" on identifont

    • @user-mj8vg3ph5u
      @user-mj8vg3ph5u Před měsícem

      In vs i find kunstler script, may be it

  • @markuspv6426
    @markuspv6426 Před 4 měsíci +11

    I think the biggest crime here - is the video resolution

  • @snowcloudshinobi
    @snowcloudshinobi Před rokem +12

    i love how instantly recognizable the incredibles soundtrack is.

  • @notalex0
    @notalex0 Před rokem +573

    1:35 im pretty sure this is 90% of AAA game devs right here

    • @quadroninja2708
      @quadroninja2708 Před rokem +48

      Something along those lines is written in DOOM code, i think in the inverse square root function

    • @natnial1
      @natnial1 Před rokem +35

      @@quadroninja2708 You mean the fast inverse square root in Quake 3

    • @dr.velious5411
      @dr.velious5411 Před rokem +9

      @@natnial1 Fast inverse square root, aka What The Fuck?

    • @quadroninja2708
      @quadroninja2708 Před rokem +1

      @@natnial1 yeah, mixed those up

    • @OneBiasedOpinion
      @OneBiasedOpinion Před rokem +1

      I’m pretty sure that is _every_ game dev ever.

  • @adamsmall5598
    @adamsmall5598 Před rokem +2632

    0:55 You can't criticize Malbolge for obfuscating: that's one of it's defining design principles. It's working as intended.

    • @vopswtf
      @vopswtf Před rokem +230

      yes I can

    • @user-vu8fm5vb4n
      @user-vu8fm5vb4n Před rokem +556

      When you make a programming language so esoteric that people spent 2 years to figure out how to make it print out hello world

    • @user-mr1ph2ie3e
      @user-mr1ph2ie3e Před rokem +49

      @@user-vu8fm5vb4n BRUHHHHH LMAO

    • @trainzmarcel2074
      @trainzmarcel2074 Před rokem +3

      malbolge is a crime in and of itself

    • @kratosgodofwar777
      @kratosgodofwar777 Před rokem +83

      Thought it was an api key or something bruh

  • @aquilazyy1125
    @aquilazyy1125 Před rokem +16

    I love the fact that even with such a low video quality you can still relate to each one of horror.

  • @malcolmanderson6735
    @malcolmanderson6735 Před rokem +7

    High quality video, combined with someone explaining which ones of these are jokes would make this bearable.

  • @Diynn
    @Diynn Před rokem +782

    As a java developer I say catching every exception and then not printing the stacktrace at all is the most painful thing to see

    • @keyb
      @keyb Před rokem +68

      Catch the error then throw the error.
      Realize the error, then wrap the whole try statement in another try statement. Continue until you see your mistake.

    • @bandobandit353
      @bandobandit353 Před rokem +100

      I’ve inherited code before that had a try catch around 500 lines of code and then threw away the exception.
      There we go, no more errors

    • @v0id_d3m0n
      @v0id_d3m0n Před rokem +18

      @@bandobandit353 oh my god 💀

    • @TheMegaxPlus
      @TheMegaxPlus Před rokem +33

      @@bandobandit353 this programmer is 100 years ahead of us, my god

    • @computermariobross
      @computermariobross Před rokem +34

      @@keyb 1. Make function
      2. Write a try-catch statement inside
      3. Make the catch do a call to the function you're in already
      4. why is my build not finishing yet

  • @blubglub
    @blubglub Před rokem +281

    0:40 is what code looks like to people who don't code

    • @alanhasmemes
      @alanhasmemes Před rokem +52

      Its what code looks like to me and i do code lol

    • @kb-zealot
      @kb-zealot Před rokem +46

      Same here, reading your own code is always much easier. Other peoples code looks like garbage and when i see it i just have the urge to delete it and rewrite it, as one might have an urge to remove a foreign body stuck in a wound

    • @davidwuhrer6704
      @davidwuhrer6704 Před rokem +7

      @@kb-zealot Reading your own code is not always easier. It is true that a lot of code desperately needs to be rewritten, but that's not because of who wrote it.
      Three months after writing it, your own code might as well have been written by someone else.
      Don't forget to comment your code.

    • @kb-zealot
      @kb-zealot Před rokem +1

      @@davidwuhrer6704 Well, in my case that's what i found, perhaps not all programmers feel the same way. It's a lot easier to refresh myelf on old code I've written 3 months or 3 years ago or even longer vs code that someone else wrote. It's not even that other people's code is nessecerily bad or should be rewritten, it's just that it's different and unfamiliar. It's an instinct that should often be ignored.

    • @davidwuhrer6704
      @davidwuhrer6704 Před rokem

      @@kb-zealot
      I tend to forget the details of a problem once I've solved it. I can't carry every detail in my head all the time, I need that head space for other problems. If a problem remains on my mind, it's because I haven't actually solved it.
      Likewise, simplifying existing code reduces cognitive overhead. I find it also reveals lots of bugs. (That doesn't mean you have to check in your reformulation.)
      That's not about style. Things that look like they are stylistic choices often have technical reasons. That's where comments are needed. (Sometimes there are no comments because the author didn't understand how it works themselves and was just satisfied that it worked at all.)
      Reformulating code can help tremendously with understanding it. At least you'll understand why it was written the way it was to begin with.
      It also helps to know lots of different languages. People who know only one always write needlessly complicated code.

  • @majorhumbert676
    @majorhumbert676 Před rokem +86

    I think the FizzBuzz code is quite alright. The one thing I'd do differently is to extract the if-statement into a function that takes an integer and returns a string. That way, I can easily create a test suite for that function. As long as the function passes the tests, it does not matter so much exactly how it was implemented.

    • @Thezftw
      @Thezftw Před 11 měsíci

      Why not just keep committing atrocities instead?
      [...Array(100).keys()].forEach(i => {
      console.log(i % 15 === 0 ? "FizzBuzz" : i % 3 === 0 ? "Fizz" : i % 5 === 0 ? "Buzz" : i);
      });
      🙃

    • @MelodyGoad
      @MelodyGoad Před 8 měsíci +9

      Dude, the war crime part of the FizzBuzz one is the horrendous spacing lol

    • @kivanc5789
      @kivanc5789 Před 8 měsíci +3

      i % 15 anyone?

    • @agustinacasarone2331
      @agustinacasarone2331 Před 3 měsíci +2

      I came looking for this. I didn't think it was that bad. Improvable? For sure. But at least it wasn't an if (false == true) xddd

    • @icylime3607
      @icylime3607 Před měsícem

      @@MelodyGoad What is so horrendous about it? It's still readable

  • @jakeoae7508
    @jakeoae7508 Před rokem +5

    I went in to this thinking “oh it wouldn’t be that bad, i might actually be doing some my self since I consider myself pretty amateur in coding”, now I am in deep pain and thinking “why couldn’t they set up loops, it would make it so much easier”

  • @kiankian1420
    @kiankian1420 Před rokem +1025

    1:19 when you miss a semi colon

  • @HeyKevinYT
    @HeyKevinYT Před rokem +128

    0:25 this is some first-degree felony indentation

  • @zookaroo2132
    @zookaroo2132 Před rokem +251

    I love how half of them are just funny language syntaxes.
    Yet some of them are just.... crimes.

  • @WilliamW2010
    @WilliamW2010 Před 16 dny +2

    Pixel one: Here
    Pixel two: Here
    Pixel three: Here
    Elseif: Ok, everyone is here

  • @cseedrvr6627
    @cseedrvr6627 Před rokem +72

    1:25 sort works correct in this case because if u ommit callback parameter elements will be converted to string then will be sorted according to character's Unicode value. if u want to see sorting in correct numeric ascending order u should pass argument function like this (a, b) => a - b

    • @name-os8kl
      @name-os8kl Před rokem +7

      It's not very intuitive but makes sense now. Thanks for the explanation.

    • @yamyam263
      @yamyam263 Před 7 měsíci +2

      It works correct the way thing that 1+1=3 is correct in a mathematical system where 1+1 is defined as 3. Sure, it is correct because it follows the rule of the language, but in this case the war crime is committed by the language itself.

  • @evanhearne4020
    @evanhearne4020 Před rokem +765

    The first one is the most unforgivable crime. It gives me an idea of an April Fools prank to pull on your programer friend :D

    • @zirize
      @zirize Před rokem +23

      In fact exactly what I did, a couple hours ago. Only diffrence is mine has a debug print line.

    • @evanhearne4020
      @evanhearne4020 Před rokem +4

      @@zirize you evil dude hahahaha

    • @vaap
      @vaap Před rokem +7

      @@zirize but that one actually makes sense and is the best way to achieve it

    • @uniquename6925
      @uniquename6925 Před rokem +24

      @@vaap you would still want to re throw the existing exception though. Rather than creating a new exception to be thrown.

    • @vaap
      @vaap Před rokem +7

      @@uniquename6925 ah yes I kinda glossed over that aspect but for sure

  • @ponluxime
    @ponluxime Před rokem +1389

    as a programmer this gives me the most internal rage any other programmer could have

    • @kormannn1
      @kormannn1 Před rokem +37

      After this video it felt like I discovered how cruel this world can be and I'm still in disbelief.

    • @brothermanbill8358
      @brothermanbill8358 Před rokem +1

      I feel like i wanna kms

    • @nintySW
      @nintySW Před rokem +24

      @@brothermanbill8358 Don't, live to write better code out of spite instead.

    • @brothermanbill8358
      @brothermanbill8358 Před rokem +7

      @@nintySW will do i will no longer fall for the cia psyop

    • @GeneralKenobi69420
      @GeneralKenobi69420 Před rokem +8

      Yep that's definitely the kind of pfp a programmer would have

  • @ranfordigan9713
    @ranfordigan9713 Před rokem +2

    As a beginner, I have never been more shocked and jaw-dropped before at "code".

  • @ArtucoDev
    @ArtucoDev Před rokem +1

    the first one is like hitting a golf ball while it was falling from a different hit, causing a homerun

  • @pixelatedlagg6754
    @pixelatedlagg6754 Před 2 lety +412

    1:11 yandere dev moment

    • @nintySW
      @nintySW Před rokem +89

      @Cleminite please use a for loop

    • @DonVigaDeFierro
      @DonVigaDeFierro Před rokem +5

      Lmao. My first thought.

    • @luciensteinhoff8092
      @luciensteinhoff8092 Před rokem +64

      @Cleminite please do something about your Alzheimers. Your fingers will thank you

    • @PlumbG64
      @PlumbG64 Před rokem +7

      As someone who wants to code as a hobby, I hope I don't make code like Yandere, and even if I do, I hope I learn from my mistakes

    • @ThomasTheThermonuclearBomb
      @ThomasTheThermonuclearBomb Před rokem

      @@nintySW I think this is a calculator so each line is different by 1 or 2 numbers

  • @computermariobross
    @computermariobross Před rokem +475

    As a programmer, this makes me feel that perhaps I'm not so bad at this.

    • @projectkepleren
      @projectkepleren Před rokem +42

      No, you're still bad at it

    • @Yuikot
      @Yuikot Před rokem +32

      @@projectkepleren wow you're so savage 😩💅✨ slay kinggg 🥳👑

    • @hermespymander9167
      @hermespymander9167 Před rokem +19

      @@projectkepleren yep everyone sucks, some just suck less

  • @thestudentofficial5483
    @thestudentofficial5483 Před rokem +2

    `Import tensorflow as plt`
    I shivered at the sight of such villainy

  • @swagunit3084
    @swagunit3084 Před rokem

    The most unforgivable crime is getting an ad before this video that is longer than this video

  • @unfairdev8197
    @unfairdev8197 Před rokem +617

    As a programmer and not a paid actor like everyone else, I was and still am traumatized after I watched this video of horrendous programming mistakes.

    • @joriankell1983
      @joriankell1983 Před rokem +19

      How do I become a paid actor?

    • @unfairdev8197
      @unfairdev8197 Před rokem +14

      @@joriankell1983 You convice your dad to come back with the milk
      Edit: To do that, you have to do nothing because that never happened.
      There is no such thing as a good ending in memes

    • @vaibhavgt0
      @vaibhavgt0 Před rokem +5

      Someone watches Chess Simp I see 👀

    • @unfairdev8197
      @unfairdev8197 Před rokem +2

      @@vaibhavgt0 Are you in my walls? How’d you know?
      Edit: You are a mobile user aren't you?

    • @vaibhavgt0
      @vaibhavgt0 Před rokem +4

      @@unfairdev8197 Yes, I am a mobile user and we're in each other's walls :)
      Edit: I watch Chess Simp as well :p

  • @papahemmy8587
    @papahemmy8587 Před rokem +184

    1:40 this one killed me

    • @memerightsactivist7972
      @memerightsactivist7972 Před rokem +4

      You can actually see what’s going on?

    • @5cover
      @5cover Před rokem +13

      @@memerightsactivist7972 github copilot madness

    • @mepipe7705
      @mepipe7705 Před rokem +2

      The problem starts where "coders" want to get explained by somebody, what the code they are looking on is doing. So the myth was born, that lots of "documenting" comments would be useful... Regardless of the fact that nobody could guarantee, that any comment speaks truth

    • @adamPhoebe
      @adamPhoebe Před rokem

      UMHell

  • @otesunki
    @otesunki Před rokem +2

    okay
    all of those were horrifying
    but the cursive one actually literally made me revulse

  • @DereC519
    @DereC519 Před rokem +4

    Your video will make a fine addition to my "CZcams algorithm strikes again" collection

  • @cerulity32k
    @cerulity32k Před rokem +461

    Marlett is a Windows font. It's for common Windows symbols like minimizing and maximizing. Almost every lowercase letter is a symbol. The Windows enchanting table language. You can use it basically anywhere on pretty much every Windows computer.

    • @marquess2004
      @marquess2004 Před rokem +66

      No. Fucking. Way.
      I’mma use that.

    • @Ilikewater-andice
      @Ilikewater-andice Před rokem +1

      Thank you

    • @jerrypie2792
      @jerrypie2792 Před rokem +28

      🞂 🞃 🗖 🗗❓🗙

    • @cerulity32k
      @cerulity32k Před rokem +16

      @@jerrypie2792 now THAT'S what im talking about!

    • @cerulity32k
      @cerulity32k Před rokem

      @Certyfikowany Przewracacz Hulajnóg Elektrycznych Yeah, I have 4 fonts I use all the time. JetBrains Mono for general use, Consolas for when JB Mono isn't supported, Calibri for variable width use, and Times New Roman for serif and compatibility.

  • @beanureeves9650
    @beanureeves9650 Před rokem +192

    as a programming student, this entire video instills fear in my heart and a comical level of humor in my monke brain

  • @lukar7270
    @lukar7270 Před rokem +6

    1:21 either he didn’t create the variable, or he misspelled it or the times regardless those errors are insane

  • @bingusbingus7860
    @bingusbingus7860 Před rokem +2

    1:26 really got me for some reason, couldn’t stop chuckling while waiting on this oil change

  • @malwaretestingfan
    @malwaretestingfan Před rokem +276

    I like the fact that in Swift, C++ (GCC), Racket and such you can use emoticons to name variables and functions, but maybe it's not exactly the best idea.

    • @WackoMcGoose
      @WackoMcGoose Před rokem +25

      Hot take: If a programming language wants to be taken seriously, it should ONLY allow ASCII alphanumerics and underscores for identifier names. Unicode obviously is valid for the contents of a string and for comments, but nowhere else.

    • @TRDario
      @TRDario Před rokem +97

      @@WackoMcGoose Not everyone codes in English.

    • @givikap120
      @givikap120 Před rokem +76

      @@TRDario everyone should

    • @emissarygw2264
      @emissarygw2264 Před rokem +33

      @@WackoMcGoose programming in Chinese is fun

    • @WackoMcGoose
      @WackoMcGoose Před rokem +8

      @@TRDario Transliteration exists, and is already a requirement for programming languages that DO enforce ASCII-only code.

  • @LePhenixGD
    @LePhenixGD Před rokem +47

    1:45 Man there's nothing wrong with this FizzBuzz te-
    *Notices that it starts at 0*
    Man that's criminal

    • @jayjaayjaaay94
      @jayjaayjaaay94 Před rokem

      Haha, I thought exactly the same

    • @lot.bajrami
      @lot.bajrami Před rokem +4

      Whats wrong, just another iteration?

    • @lucy_derg
      @lucy_derg Před rokem +3

      that's not the problem with it
      you could just do
      for(let i=0;i

    • @lucy_derg
      @lucy_derg Před rokem +5

      even that could be optimised to just 1 line but then it's annoying to read

    • @corinnarust
      @corinnarust Před rokem +8

      @@AMalevolentCreation ? this is not dividing by 0, it's 0 being divided by 3 & 5

  • @taylankammer
    @taylankammer Před rokem +14

    1:47 That's fine, actually! It makes the code easier to understand. So long as further branches aren't going to be added...

    • @TheSinfulFreak
      @TheSinfulFreak Před rokem +5

      As a programing noob, I don't understand what's so wrong with this. I understand that there might be other ways of doing it but why is this such a crime?

    • @taylankammer
      @taylankammer Před rokem

      @@TheSinfulFreak You would normally just use two consecutive if statements without an else, like this: if (i % 3 == 0) print("Fizz"); if (i % 5 == 0) print("Buzz"); so if it's divisible by both 5 and 3, it prints both Fizz and Buzz, because there's no "else" and both if statements match. Note that this doesn't really do the same thing, because printing "FizzBuzz" as one line isn't the same thing as printing "Fizz" then "Buzz" as two lines... I've never been asked the FizzBuzz question directly, but from what I know, it's usually worded somewhat ambiguously and the best thing to do is probably ask for clarification what's really needed. At least that's what I would want an interviewee to do, unless I've already given her/him a really exact specification on what the code should do.
      When in doubt, just ask your boss/client/etc. what they really want, if it was ambiguous. Even better, make sure you understand their real needs (which they may not even be fully aware of) and work with them to achieve a good exact specification on what the code should do in all corner cases that could be encountered in real life while using the program.

    • @haikalhendrawan8
      @haikalhendrawan8 Před rokem +3

      ​@@TheSinfulFreak the more commonly accepted solution to the fizzbuzz problem is using nested if statement. While this solution also works.

    • @miroslavbulldosex
      @miroslavbulldosex Před 3 měsíci

      ​@@haikalhendrawan8i think the issue is that itwill print fizzbuzz for i = 0 while it should just print 0

  • @JamesSmith-ix5jd
    @JamesSmith-ix5jd Před rokem +6

    Please make more of these :)
    0:40 in st terminal there is a patch you can install which changes your font on the terminal (but not in a file), so you can program in conscript without even utf8 support, including builtin functions written in your own script.

  • @CHROMIUMHEROmusic
    @CHROMIUMHEROmusic Před rokem +19

    1:10 now this, is true madness

  • @diamondyoshi6649
    @diamondyoshi6649 Před rokem +142

    0:50 the worst crime of all, trying to work with Scratch.

    • @cvpgame7267
      @cvpgame7267 Před rokem +18

      I argue that it's a good starting place for programmers, but as a programming platform, there is so much better lol

    • @freuschfreu
      @freuschfreu Před rokem +17

      No need for looping if copy and paste is faster 😂

    • @cvpgame7267
      @cvpgame7267 Před rokem +5

      @@freuschfreu noooooooo

    • @mega_micro
      @mega_micro Před rokem

      why

    • @mega_micro
      @mega_micro Před rokem +3

      @@cvpgame7267 actually, im pretty sure that im ready for "real" programming, but scratch has a cool community and ITS REALLY EASY TO USE

  • @ahdiwjnaydjjs
    @ahdiwjnaydjjs Před rokem

    Catching an exception just to throw it has got to be the Chad-est power move I have ever witnessed.

  • @MrVextran69
    @MrVextran69 Před rokem +1

    As a programmer, I'm not gonna be able to sleep tonight 💀

  • @YOSFP
    @YOSFP Před rokem +76

    there’s no other way to cope with the pain this video is delivering. you can just maniacally laugh about it

    • @vor946
      @vor946 Před rokem +2

      bro thinks he is living in anime

    • @bananab3813
      @bananab3813 Před rokem +2

      Not even crying helps coping this

  • @playerguy2
    @playerguy2 Před rokem +35

    "I'm not even mad, that's impressive!"

  • @tomsterbg8130
    @tomsterbg8130 Před rokem +3

    Just got this recommend, as a programmer since 6 years this is too true and cursed haha 😂
    I had an expression I haven't held since years and this time it was very very strong. You absolutely broke me when the while false appeared

  • @antekwaldek7478
    @antekwaldek7478 Před rokem +2

    I am new to programming, but even I can feel good about myself after watching this video

  • @Sheep-s4n
    @Sheep-s4n Před rokem +45

    Reminds me when i compile C++ 1:23

    • @roastyou666
      @roastyou666 Před rokem +5

      The pain of using Visual Studio with Unreal without installing the dependencies 😢

  • @okb6436
    @okb6436 Před rokem +50

    The fact that there are subtitles makes this video better

  • @heckerhecker8246
    @heckerhecker8246 Před měsícem +1

    this works really well with the spy theme

  • @chris.y.l.o
    @chris.y.l.o Před rokem +1

    As an actual programmer, I can confirm that will give me nightmares for the week

  • @64-bit63
    @64-bit63 Před rokem +12

    1:10 when your assignment is to create a calculator but you didn't study 😂

  • @hardronix
    @hardronix Před rokem +11

    0:40 coded an entire MVP service in Java with that font.. Interpol chases me.

  • @avgchoobafan
    @avgchoobafan Před rokem +3

    Cursive font and center aligned code are the most cursed ones

  • @slavicmax8682
    @slavicmax8682 Před rokem +2

    I remember writing code like this back before loops were invented

  • @nankinink
    @nankinink Před rokem +46

    I like one image where theres C# code but all the brackets are all the way to the right, pratically hidden away, to make it look like Python.

  • @PheggasSVKVideos
    @PheggasSVKVideos Před rokem +11

    Captions are the biggest gold of this video.

  • @rocksaremyfavorite
    @rocksaremyfavorite Před rokem +8

    0:25 and 0:35 are by far the best parts in this vid

  • @boxthememeguy
    @boxthememeguy Před rokem +2

    the enchantment table one is how the average person sees code

  • @sephstar-offical
    @sephstar-offical Před rokem +28

    0:18 thats the one that gets me lol

    • @ABoxIsMyHome
      @ABoxIsMyHome Před rokem +4

      It reminds me of if(isActive == true)

    • @sephstar-offical
      @sephstar-offical Před rokem

      @@ABoxIsMyHome for those who dont understand his problem, if(isActive) would return true by default, if(!isActive) would be false, no need to use == true with Booleans, its like saying if(true == true) no need.

  • @chancefreely
    @chancefreely Před rokem +23

    I don’t even program and I know what level of eyebarf this is. Thanks for showing me Cyberpunk 2077’s code after launch.

  • @gavinthecrafter
    @gavinthecrafter Před rokem +5

    1:31 Imagine you run this and it actually prints

    • @gustavocvieira8584
      @gustavocvieira8584 Před rokem +1

      It's one of those moments where you start thinking the programming language is broken, but them 1 hour later you realize it's just a typo

    • @gavinthecrafter
      @gavinthecrafter Před rokem +1

      @@gustavocvieira8584 So ironic that when I read this reply youtube decided to bug and duplicate it over and over

  • @nathanpixelkid
    @nathanpixelkid Před rokem +4

    the worst crime is coding a batch script.
    but it's an actual app with a purpose but only in one line.
    that's a lot of &

  • @invalid_user_handle
    @invalid_user_handle Před rokem +13

    0:21
    I would not be surprised if this code is found somewhere in Yandere Simulator.

    • @ieatthighs
      @ieatthighs Před rokem +1

      nerd here, this is from the express framework for nodejs

  • @lucaayfmlyysiaejdsrtnnervd4646

    1:05 The merge at the bottom..

    • @ABoxIsMyHome
      @ABoxIsMyHome Před rokem +2

      What even is this

    • @mega_micro
      @mega_micro Před rokem

      @@ABoxIsMyHome yep, i cant understand it too, heh

  • @FutureAIDev2015
    @FutureAIDev2015 Před 4 měsíci

    I'm not sure if this is hideous, utterly glorious, or both.

  • @digitalunity
    @digitalunity Před rokem +1

    "I haven't worked on my game programming in a while, maybe I should do that-"
    *Ancient horrors born of the dawn of machinery*
    "-first thing after the end of the universe"

  • @ehtresih9540
    @ehtresih9540 Před rokem +35

    As someone who know nothing about programming I can relate

  • @NexusGamingRadical
    @NexusGamingRadical Před rokem +19

    1:35 Tabnine being a legended as usual

  • @shaddykat
    @shaddykat Před rokem

    I went through a lot of pain watching this

  • @jayatflyt
    @jayatflyt Před rokem +1

    i gotta admit, the word IDE had me rolling for like 3 minutes

  • @ethanandrews3076
    @ethanandrews3076 Před rokem +14

    I like how just the existence of block code is a crime 😂

    • @cvpgame7267
      @cvpgame7267 Před rokem +1

      No it's cause it aint in a loop (I think)
      I think block coding itself is actually good and intuitive - I got into programming after learning scratch

  • @almightynan
    @almightynan Před rokem +19

    As a programmer I saw the previous 4 years of my suffering passing before my eyes

  • @blacklight683
    @blacklight683 Před rokem +1

    I understand nothing yet I feel pain...I feel disturbance in the force

  • @DerNoobster
    @DerNoobster Před rokem +1

    just the fact that this video is in 240p, makes it so much funnier

  • @sharpfang
    @sharpfang Před rokem +40

    There's a lot of pure trolling, but some are just things that happen. The first one is probably a debug remnant. Whatever log/print used to be there got removed, catch-throw remained. The defaultFalse seems like a workaround on some idiotic framework/library where changing the values of true and false on the fly is necessary to stop it from failing. That brace tree is either generated code or a real noob programmer. 31248 errors is probably a missing brace in some commonly included header file. And the fizzbuzz is sloppy but seems correct.

    • @ThomasTheThermonuclearBomb
      @ThomasTheThermonuclearBomb Před rokem

      I think what's cursed about the fizzbuzz is that the brackets are on the same lines as the code that follows

    • @sharpfang
      @sharpfang Před rokem +13

      @@ThomasTheThermonuclearBomb There are way too many bracket styles to get religious about them, and if you use if{ in one line, one-liner }else{ is only consistent. Recently I was configuring a standalone autoformatter and some of the options were just ridiculous... but them being there means some people use them, and use them as a standard. Stuff like indent function braces, keep body flush with the indented braces, or no newline after opening brace, just first line of body indented on same line... or condition for if on the next line after if, indented.

    • @daezwae985
      @daezwae985 Před rokem +3

      @@ThomasTheThermonuclearBomb all of my js codes are like that for the brackets, almost every tutorials that I followed are using that style

    • @bakedbeings
      @bakedbeings Před rokem +4

      31248 errors: when you open a C++ Visual Studio project targeting the wrong windows SDK point version and it's just dying to tell you it couldn't find any standard library files ever, anywhere.

    • @jussiollila7714
      @jussiollila7714 Před rokem +2

      @@sharpfang Yes, usually there is a reason for everything. Not necessarily a good reason, though. Which reminds me of a rule in Call of Cthulhu rpg: sanity stat can't be more than max-value minus cthulhu knowledge stat. Seems relevant.

  • @matthewboyer4212
    @matthewboyer4212 Před rokem +48

    actually there's a use case for the first one:
    in Java, reading files from NIO requires you to handle a file not found error, and actually that's pretty damn good

    • @davidwuhrer6704
      @davidwuhrer6704 Před rokem +19

      That's a misfeature of Java. Exceptions are not supposed to be secondary return values.

    • @corinnarust
      @corinnarust Před rokem +7

      I'm a Java programmer, and I don't got what you mean. If it's a runtime exception, this is useless, and if it's a checked exception, you can just declare "throws ...."

    • @davidwuhrer6704
      @davidwuhrer6704 Před rokem +3

      True, all this does is split the stack trace between two objects.

    • @theninjascientist689
      @theninjascientist689 Před rokem +1

      @@davidwuhrer6704 Rust programmers crying

    • @rune.theocracy
      @rune.theocracy Před rokem

      I've handled java a lot and...
      I only know java has some other similar strange quirks like that

  • @krekelyt
    @krekelyt Před rokem +1

    I can confirm as a developer that this video has given me severe depression

  • @kylehart8829
    @kylehart8829 Před rokem +6

    Hot take:
    } else {
    Is good styling and makes if statements much easier to read. The naked closing brace makes it easy to instantly know where the end of the if block is and where further code begins. Putting the else on its own line is just adding space for the hell of it. It's standard styling at a LOT of companies, and if it drives you insane maybe be a *little* less uptight about braces perhaps. And don't get me started on opening braces on the start of the next line instead of the end of the current one. If you think that if-else statement should require scrolling to read I honestly don't know what to tell you.

    • @Eidako
      @Eidako Před rokem

      I like you. Come work where I work.

  • @DaviAreias
    @DaviAreias Před rokem +57

    Whats wrong about the fizz buzz?

    • @megadolon7000
      @megadolon7000 Před rokem +11

      starting at 0 i think

    • @DaviAreias
      @DaviAreias Před rokem +4

      Oh yes i just spotted the i- 0 😂

    • @drag0vien289
      @drag0vien289 Před rokem +2

      the algorithm looks fine, but there's a rando ; on last console.log, and idk, maybe the spaces in "i% 3" vs. "i%5"
      idk

    • @williamdrum9899
      @williamdrum9899 Před rokem +8

      Fun fact: If instead of 3 and 5, you used powers of 2, it would run a lot faster

    • @magicjuand
      @magicjuand Před rokem +8

      theres nothing wrong with the implementation, fizzbuzz is just evil.

  • @Minecraft-3699
    @Minecraft-3699 Před rokem +50

    0:40 jokes on you, im fluent in standard galactic. can read and write it just like english

    • @RockyPixel
      @RockyPixel Před rokem +22

      Fun fact: Because it's originally from Commander Keen, an Id Software game, it implies that Doom's Hell and Minecraft's Nether are one and the same.

    • @ChillSeb.
      @ChillSeb. Před rokem +7

      So you quite literally read enchantment table?

    • @Minecraft-3699
      @Minecraft-3699 Před rokem +6

      @@ChillSeb. yeah, sadly the symbols in the video aren't standard galactic tho.. they are just close to it, alot of that is unreadable. like for example the letters O, N, Q, M, I, J, K, and E look similar to each other

    • @ChillSeb.
      @ChillSeb. Před rokem

      @@Minecraft-3699 ℸ ̣ ⍑ᔑℸ ̣ ᓭ ⚍リ⎓𝙹∷ℸ ̣ ⚍リᔑℸ ̣ ᒷ

    • @Minecraft-3699
      @Minecraft-3699 Před rokem +2

      @@ChillSeb. ikr, they have far more than enough bits to add 26 more characters to unicode

  • @CreepahJacket
    @CreepahJacket Před rokem +37

    the best thing about these images is that even though you're not a programmer, you can immediately tell what's wrong

  • @cheesebusiness
    @cheesebusiness Před 6 měsíci

    The last example is indeed the most severe war crime ever was and will be

  • @devenvbok6153
    @devenvbok6153 Před rokem +3

    in early 2000s, you should seen how the callback hells looked like. lol

  • @nxone9903
    @nxone9903 Před rokem +9

    0:10 fireship's code

  • @everybodylmao
    @everybodylmao Před rokem

    The hello world one made me chuckle a little

  • @GroovyDominoes
    @GroovyDominoes Před rokem +2

    1:11 why did this make me laugh more than it should have