Share your repls and programming experiences

← Back to all posts
100 Dumb Ways To Error
h
Coder100 (6457)

100 DUMB WAYS TO ERROR

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.

CHALLENGE!

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

CLOSING

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

PLEASE VOTE UP!

All errors are responsibly small-brained.

Commentshotnewtop
[deleted]

What is the point of this repl if none of us have made these errors? I see you have more quality repls in ur feed, was this one so you get more upvotes? Just seems weird why this is.

Coder100 (6457)

lol what
this is high effort and people have made these errors before @Ihatenoeffort

[deleted]

If people had made these errors, why does ur description say that they have? I'm pretty sure you are upvote farming. @Coder100

Coder100 (6457)

still don't see how this is low effort nor do I see any alts involved @Ihatenoeffort

[deleted]

Nono, I don't mean ur upvote farming in that sense, but the fact that you seem to have more quality posts, and you have no ideas. This makes me think that you want more votes since you aren't actually making quality things, like in your past. @Coder100

Coder100 (6457)

ah, no. This repl was made purely for the pleasure of others :) @Ihatenoeffort

[deleted]

Yes we do, we can't have no-effort posts going around. @RaidTheWeb

Coder100 (6457)

101-file projects shouldn't be low effort don't you agree? @Ihatenoeffort

[deleted]

Are you sure about that? I might have this post turned in for questioning. Not sure yet. @Coder100

bramley (198)

@Ihatenoeffort It's fine if you report, just don't expect the action you want from a Talk Mod.

AdCharity (1307)

@Ihatenoeffort :l I think it would be best to make some repls yourself and see how the community fares. It seems like your account was literally created half an hour ago.

[deleted]

I agree they don't do anything. @bramley

RaidTheWeb (68)

@Ihatenoeffort people can do what they like leave them alone. Just because you hate "no-effort" posts doesn't mean you can be rude.
GET A LIFE

[deleted]

U like having posts that no time were put into it? I could make a stupid repl and you won't get mad? U would be an upvoter? @RaidTheWeb

RaidTheWeb (68)

@Ihatenoeffort i wouldn't care because it isn't my business

CSharpIsGud (544)

@Coder100 @RaidTheWeb Yes, people care. They just don't point it out this blatantly all the time. You can't deny that its not very "pleasurable" watching a program print out some text they could do themselves if they wanted.

CodeSalvageON (559)

^ He is completely right. I guarantee you a joke post will get way more upvotes than a post with effort.

Coder100 (6457)

Anyways, this is a high quality post. It was not easy to find and make all these errors and is a show of high creativity and humor. If you believe otherwise, please state which exact parts are considered "low effort" to you. @Ihatenoeffort

[deleted]

I will give to you that the effort is good; you seem to show a lot of talent. However, the idea of this post and that bagel post don't seem to match up very well with your agario I would understand this as a progressive account, however by looking at the dates, nothing makes sense. I'm not mad that this is a bad post, but it seems like we could have expected more @Coder100

[deleted]

I agreee @CSharpIsGud

[deleted]

Also a fair point. @coder100 why did pi day get so many votes? @CodeSalvageON

[deleted]

Yea, I agree. You don't need upvotes from repls. U can get upvotes by doing this. @CodeSalvageON

theangryepicbanana (1623)

@Ihatenoeffort Thanks for mentioning the possible upvote farming, but we have determined that all of the upvoters are legitimate users. Have a nice day :)

[deleted]

Maybe my definition of upvote farming is bad.....I'm saying he is using more repl shares to get more upvotes. @theangryepicbanana

studentAlfredAl (464)

I mean, compared to other posts, this isn't low quality or no-effort

firefish (412)

@Coder100 I may have nee inspired by this project to mae another one

firefish (412)

@Coder100 I did it in C#, would've done in node but I thought node is for servers and APIs like aoz

firefish (412)

@Coder100 if you wanna check out aoz, you could be of good help to me us

Bookie0 (3631)

Hallo I’m not sure (I am also small brained) but maybe should the comments be in # instead of // because the code is in python? I don’t know...

Coder100 (6457)

XD I really don't know... @Bookie0

Bookie0 (3631)

Sooooo wrong or correct? @Coder100

Bookie0 (3631)

Okkkkk cool. Lol XD btw this is ressembles to my repl “ultimate dumb things to do” :) @Coder100

Coder100 (6457)

lol yes it was inspired by that :) @Bookie0

Bookie0 (3631)

Cool I’m glad i made something that you, thy CoderGod found inspiring! :D @Coder100

Bookie0 (3631)

Oh wow i see you mentioned me thanks! @Coder100

Bookie0 (3631)

Lol and I just saw your 50 errors wow and the next 50 coming soon! @AmazingMech2418

AmazingMech2418 (840)

@Bookie0 Yep. I'm pretty good at debugging. The funniest one though was the text file...

[deleted]

@Coder100 idk how you got a lot of cycles!

Coder100 (6457)

lol me neither honestly lol @Zuhdi28

firefish (412)

@ZDev1 found an old comment of yours

firefish (412)

@ZDev1 also you can change your pfp back to normal . it isn't prie month anymore

firefish (412)

@ZDev1 It ended on the 1st of july

AmazingMech2418 (840)

Error 1: Apostrophe in single-quote string
Error 2: Error in catch statement
Error 3: Incorrect comment syntax for Python
Error 4: Should be True, not true
Error 5: Semicolons in incorrect places
Error 6: Opening tag started with less than sign, causing "HTML", the closing p tag, and the entire div tag to not render.
Error 7: async function joe() {} or joe = async ()=>{} or joe = async function(){} should be used
Error 8: console.log is JavaScript, not Python.
Error 9: No command node.js; use node instead.
Error 10: Double quotes should be used instead of single quotes in JSON.
Error 11: No error that I know of. I just tested it in a SQLite repl.
Error 12: Should be true instead of True.
Error 13: Text files don't run.
Error 14: import {Os} from "./os.js" or import "./os.js" should be used.
Error 15: Use require in Node. Also, see error 14.
Error 16: Usage of curly brackets in Python if statement and use of true instead of True.
Error 17: Redeclaration of variable a as a function. Set variable to anonymous function instead (such as a = ()=>{console.log("hi")}).
Error 18: Functions not allowed in JSON.
Error 19: Usage of class Animal before declaration.
Error 20: Memory overload.
Error 21: Function declared as turnary and called as ternary.
Error 22: Direct assignment to variable declared with const which is relatively immutable.
Error 23: Setting array to spliced value. Splice function returns deleted values.
Error 24: prompt is not defined in most Node environments. Use the readline module instead.
Error 25: No error. However, it is best to use a list rather than a set in most array usages in Python.
Error 26: Defines fs as argument, but calls without argument.
Error 27: Produces char[] array (use single quotes for char) instead of expected int array.
Error 28: console.log is JavaScript, not Java. Use System.out.println instead. Also, JAVA IS NOT JAVASCRIPT!!!
Error 29: Closing tag of iframe required (can be a hybrid open/close tag using <iframe/>). Content will only show if error occurs in iframe.
Error 30: Should be overflow: hidden. none is an invalid option for the overflow property, so it does nothing in the code.
Error 31: No yadda and yodda tags in HTML. Change file to index.xml or make this valid HTML.
Error 32: Sets page HTML to input in textbox. Also, it is recommended to use a closing tag as well. This will throw an error in XHTML.
Error 33: object["name"] should be used instead. Python dictionaries do not use keys as properties and require the usage of brackets in retrieving the value of a key in the dictionary.
Error 34: std::cout is C++, not C#. Additionally, no main class is used and a "#" is used in importing System. This is essentially a C++ program with a .cs file extension and an incorrect import attempt using the using keyword which is only in C# and a capitalized function name which should be lowercase.
Error 35: int function never returns an int. Additionally, function should be lowercase.
Error 36: Missing semicolon after System
Error 37: Terminal flickers and closes because the Console.WriteLine is not a continuous function. Try adding a while loop or time delay to keep terminal open.
Error 38: Use puts, not put.
Error 39: Python code used in Ruby file.
Error 40: Use gets instead of input. Also, you must use puts to display the prompt.
Error 41: No program, just random words.
Error 42: Cannot program C++ in Node.js file.
Error 43: gcc and clang++ are C++ compilers. Use those instead. Also, invalid std argument c++0x.
Error 44: No iostream or std::cout in C. Use stdio.h and printf instead.
Error 45: console.log after return.
Error 46: fetch is asynchronous. Use a promise and await to get this to work or use a callback with the console.log function.
Error 47: You must use a promise to use await with a callback already defined.
Error 48: Same as 47, but also fetch is not defined.
Error 49: Empty function in Python. Use pass to avoid error.
Error 50: Not using System.

Next 50 coming soon!

AmazingMech2418 (840)

@Coder100 Also, did you see what I said for error 28? I find it very annoying when people mix up Java and JavaScript...

CodingCactus (3060)

@AmazingMech2418 i believe the saying is:
Java is to JavaScript as, hedge is to hedgehog

AmazingMech2418 (840)

@CodingCactus Never heard that before, but it's great!

firefish (412)

@AmazingMech2418 The only thing they have in common with each other is the name

BobTheTomatoPie (1066)

Lol, watch someone make all of these errors

Coder100 (6457)

the error was that the code used itself to run itself forever. Dangerous recursion. @ayush2007

ayush2007 (41)

@Coder100 that is pretty smart
I never thought about that

ayush2007 (41)

@Coder100 I am doing one of my school work if u want to help u can

ayush2007 (41)

@Coder100 I hope not disturbing you I want you to check did I do the codding correct I hope you would be happy to help check in notification for my invite

ayush2007 (41)

@coder100 I am not telling you to do my work but just cross checking is it correct

ayush2007 (41)

pls teach also how to do this if u are free plspls

ayush2007 (41)

@ayush2007 and I am sure its difficult to do it

Coder100 (6457)

hi what help do you need? @ayush2007

Coder100 (6457)

XD I really small-brained this time XD @CodingCactus

TheForArkLD (711)
new SyntaxError()
new ReferenceError()
new EvalError()
new InternalError()
new RangeError()
new TypeError()
new URIError()

Generate Error

#include <stdio.h>
#include <string.h>
int main(){
char a[0]="a";
char b[0]="b";
strcat(a,b);
return 0;
}

Char array size too short

#include <stdio.h>
int main(){
return 1;
}

Return error

#include <stdio.h>
int main(){
printf("Hello World")
return 0
}

Forgot Semicolon

[deleted]

hey @Coder100 !
How do you learned javascript?
or give me the course or anything else link plz!

[deleted]

i am not so stupid to make these errors
but cool!

math_genius (7)

Cool idea, but it goes by too fast and I can't get a good look at the error

Coder100 (6457)

ahh ok sorry ill make it slower @math_genius

DynamicSquid (3229)

Normal people: dumb ways to die
Coders: dumb ways to error

AmazingMech2418 (840)

@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 (520)

@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 (840)

@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 (520)

@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 (840)

@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 (520)

@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 (840)

@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 (840)

@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 (520)

@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 (840)

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

AmazingMech2418 (840)

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

sugarfi (520)

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

AmazingMech2418 (840)

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

AmazingMech2418 (840)

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

AgastyaSandhuja (149)

I'm just gonna give an upvote out of pity, but It's pretty good

AdCharity (1307)

I have no upvotes to spare but I'll give one :cry: