100 Dumb Ways To Error
Coder100 (6249)


I'm SURE you have NOT made these errors before!

As the name suggests, I have small brianed and made ERROR in many languages. These include

  • HTML
  • Node.js
  • Python
  • Raku (Perl6)
  • Ruby
  • Bash
  • C
  • C++
  • C#
  • XML
  • Txt
  • PHP
  • CSS
  • DOM JavaScript
  • React (maybe)

So these languages are basically all that I can code in.


See if you can figure out where each error occurred (rewards may come)
Also, confirm that there is a react error


This took me literally 4 hours to make and was very hard to do because it is quite painful to make coding errors that you know are going to error.

"\e or \033 in bad languages" ~ TAEB

"the first 100[+1]-file no dependency repl coming to stores near you" ~ AdCharity

"... This resembles my repl "ultimate dumb things to do" ..." true statement ~ Bookie0


All errors are responsibly small-brained.

You are viewing a single comment. View All
AmazingMech2418 (830)

@sugarfi That is one of the great things about JS. Easy type conversion! '2' is a string which then has [2], an array that is converted to a string automatically, added to it, and then 2 subtracted, converting the previous string to a number since you can't subtract text.

sugarfi (519)

@AmazingMech2418 That is one of the most horrible things I have ever seen in my life. That's not type conversion, that's more like brutal type torture and then type maiming.

AmazingMech2418 (830)

@sugarfi Well, it is not made for '2' + [2] - 2. It is made for actually useful things to decrease the code needed. For example, you don't have to use ["a","b","c"].join(",") and can just use a string method with it or append an empty string. I like this better than errors being thrown everywhere like in Python...

sugarfi (519)

@AmazingMech2418 Sometimes you need the errors so your code is actually semi-sane. Take minified JS, for example: why does it even exist? So you can have a few milliseconds faster load time? You don't see .min.py files. Also, JS isn't really made to decrease the code needed - it's just the people who wrote the ECMAScript standard got stuck in a rabbit hole, and were total boomers anyway.

AmazingMech2418 (830)

@sugarfi I always minify JS. Minified JS provides security through obscurity and saves space. Also, if you want explicit type conversions, use a language like C/C++/C# instead of slowpoke Python! Also, you don't need errors for semi-sane code. You just need a semi-sane coder! I personally don't use the type conversions like arrays to strings that much, but really like how you can concatenate a string and a number. Then, I don't have to use str (in JS, it would be String) every time I want a number in a print function (console.log in JS) given that I don't want an embedded expression. Also prototypal languages beat class-based any day!

sugarfi (519)

@AmazingMech2418 That is not secure! Anyone can unminfiy your code! As well, minified code goes against the whole open source and free software philosophy, which is a very bad thing to do!

AmazingMech2418 (830)

@sugarfi I know people can unminify code, but there is still a level of security through obscurity. I mean, you don't want to name a variable "password", do you? Also, CODEGOLF!

AmazingMech2418 (830)

@sugarfi Also, it doesn't go against open source and free software philosophy. People can easily take the time and read minified code if they really want to see how it works.

sugarfi (519)

@AmazingMech2418 From gnu.org:

Compacted code is a bogus, useless substitute for source code; the real source code of these programs is not available to the users, so users cannot understand it; therefore the programs are nonfree.

AmazingMech2418 (830)

@sugarfi You CAN read it, it is just a little more difficult.

AmazingMech2418 (830)

@sugarfi Most of my original source code is also minified. I just write code minified. It just saves time and space.

sugarfi (519)

@AmazingMech2418 not really - all comments are gone, as are all original names.

AmazingMech2418 (830)

@sugarfi I almost never use comments in my code. Also, I almost always use one-letter named variables.

AmazingMech2418 (830)

@sugarfi Faster. If I don't have to type comments or long variable names, it takes less time to program.