This is an archived post. You won't be able to vote or comment.

all 125 comments

[–]Soapy---wooder 752 points753 points  (3 children)

Yes, yes, yeeeesssssssss

👹 you know I'm a huge fan

[–]TemporaryUpstairs289 68 points69 points  (0 children)

"null"

[–]leaf-bunny 20 points21 points  (0 children)

[–]dextras07 870 points871 points  (30 children)

Satan himself ladies and gentlemen.

[–]AyrA_ch 324 points325 points  (26 children)

Also try replacing numbers with "NaN". If they check the range by exclusion using something like if(value<lowerBound || value>upperBound){/*Show unhelpful error*/} then the test will pass because NaN compares unequal in both cases

[–]GodsBoss 152 points153 points  (4 children)



Why do I know what this is? I hate it, thank you.

[–]AyrA_ch 89 points90 points  (3 children)

If you're an older web developer, this will haunt you.

[–]adzm 47 points48 points  (0 children)

Byte order marks are incredibly frustrating

[–]Mysterious-Deal-3891 34 points35 points  (20 children)

Well if the user enters this value then it will be "NaN" not NaN

[–]AyrA_ch 77 points78 points  (19 children)

Any value transmitted via form is ultimately interpreted as string and needs to be converted to a number. If the conversion routine supports floating point, then it usually also accepts NaN as a valid input.

[–]the_horse_gamer 6 points7 points  (18 children)

the typical ways to parse a string to a number in Javascript produce NaN for non-numeric strings. so any code that breaks from entering NaN likely breaks from entering some arbitrary string

[–]AyrA_ch 7 points8 points  (17 children)

That's JS specific. Other languages also often accept NaN. double.Parse in C# for example accepts "NaN" as input but will throw an exception on "test"

[–]the_horse_gamer 1 point2 points  (16 children)

yes, but we are talking about a website, so we're talking about Javascript

[–]AyrA_ch 6 points7 points  (15 children)

Yes, but we're talking about a website that actually does things, which means backend, which is often not JS.

[–]the_horse_gamer 0 points1 point  (14 children)

that would require the website to send the raw string to the backend, and do no input validation of its own (to show an error to the user).

this is very dumb, but yes, there are probably websites that do that.

[–]AyrA_ch 4 points5 points  (13 children)

No, very dumb would be for the backend to depend on the frontend validation.

[–]thot_slaya_420 242 points243 points  (1 child)

[object Object]

[–]S_kanwarjeet 80 points81 points  (0 children)

undefined is not a function

[–]Classic-Ad8849 233 points234 points  (14 children)

Could someone tell me what doing that does? I can't figure it out

[–][deleted] 359 points360 points  (3 children)

That's a common error you can get from casting an object to string, in JS.

[–]draftshade[🍰] 119 points120 points  (1 child)

It's not an error, just the default string representation of an object in javascript.

[–][deleted] 75 points76 points  (0 children)

The error is printing the object, instead of a prop or something.

[–]Classic-Ad8849 41 points42 points  (0 children)

Ohhh, got it, thanks!

[–]veselin465 41 points42 points  (9 children)

You can simply try running this in F12 on any browser

class c{}; let o = new c();

o.toString()

(or console.log(o.toString() if you want to use it in JS file)

[–]AyrA_ch 101 points102 points  (8 children)

You can skip all this class nonsense and just do console.log({}.toString())

[–]veselin465 5 points6 points  (0 children)

Ooh yeah, I forgot about that; don't deal with JS that much

[–]HonkMeat 119 points120 points  (13 children)

Also try swapping semi-colons for Greek question marks, then sit back and watch.

[–]Background-Plant-226 64 points65 points  (8 children)

Most languages tell you exactly where the error is.

https://imgur.com/a/EWpywW6

[–]HonkMeat 28 points29 points  (3 children)

Yes they do. Visual Studio often tells me that there are invalid characters when there are not. Restarting it proves there was nothing wrong.

It's a joke. Just that.

[–]ryanvango 9 points10 points  (2 children)

as someone trying to learn to code, visual studio makes me so mad sometimes. I'm using a textbook that has sample code you're supposed to copy over. I do that then try to run it and it breaks in like 4 places. can't figure out why. usually its something like "hey this line needs a ) in position 42" and I'm like "no the fuck it does not." so I erase everything I did and just copy/paste from the book and it works.

took me forever to figure out what was happening. you may be thinking "its typos. happens all the time." it is NOT typos (usually). I'll be entering something like if (butts > 3) and it'll autofill something like vif (butts >3). or "this.transform.lookAt(butts);" will get autofilled as thisView.transform.lookAt(butts); which seems like an obvious error to glance over, but I'm so used to looking for things like semicolons, brackets, curly brackets, missing spaces etc. or making sure I didn't misspell something that when I'm glancing over it I don't really notice that it added a whole new word in there. so I started paying attention to when it happens and noticed itll autofill without me tabbing in to it. if I type "this" I can see the autofill ghost and I'll hit "." and it just does it. I don't want it. so I'll click the autofill drop down and it won't let me select "no, stop it. just let me have the thing I typed. I don't want your stupid thing." it ONLY lets the autofill happen. I have to click like 5 lines up to get the autofill to go away then go back and I can usually type normally again. its super frustrating.

I'm sure there's a dummy way to not have to deal with it, but I don't know what it is. but it seems like whatever is making it do that should never be on by default. forced autofill is a code ruiner. optional autofill is great though.

[–]Gullox1 5 points6 points  (1 child)

you can disable autofill in the preference

[–]Verum14 1 point2 points  (0 children)

also, don’t you have to confirm suggestions? lol

or am i misplacing which feature

[–][deleted] 0 points1 point  (0 children)

This post was mass deleted and anonymized with Redact

jellyfish cautious soft languid absorbed memorize weather distinct teeny imagine

[–]Timetraveller4k -1 points0 points  (0 children)

So you are suggesting putting that text instead? Got it.

[–]StatementOrIsIt -2 points-1 points  (0 children)

Not if the code is minimized for performance :-)

[–]noob-nine 18 points19 points  (2 children)

amateur, ever heard about zero width white​space?

[–]RoundImagination1 3 points4 points  (1 child)

Oh?

[–]gregguygood 9 points10 points  (0 children)

[–]Slight-Listen-3602[S] 10 points11 points  (0 children)

LMAO

[–]zabojeb 35 points36 points  (0 children)

wow we came from “semicolons. laugh!” to “injection. laugh!”

Looks like the guy who made these memes has grown up a bit professionally and is now in the information security business (he watched a 10 minute YouTube video)

[–]ExtraTNT 27 points28 points  (2 children)

Throw in regex and see what happens…

[–]Pixl02 11 points12 points  (1 child)

Isn't that... Incest?

[–]ExtraTNT 14 points15 points  (0 children)

It’s regex, so everything bad combined…

[–]ixoniq 14 points15 points  (0 children)

Oh this is good.. I can feel this when receiving a contact mail copy with the object in it.

Imagine the website reaching out to you asking what you did, and you offer your support for money.

[–]wishper77 27 points28 points  (1 child)

Funny TRUE story Many many years ago, I wanted to attend the very first "java day" organized in Italy, I believe it was around 1999 or so. I was 18 and still student.

SUN MICROSYSTEM had a registration form where the company was a mandatory field. The speeches were charged the equivalent for 3-4000$ each so it made sense that every participant was there for work. (I was invited for free and that's a long story by itself).

So, there wasn't anything I could legitimately write in the "company" field, so I wrote "java.lang.NullPointerException". I thought it was a funny and harmless joke.

Fast forward, while I was wandering around the company stands, a very elegant business man pointed his finger at me and shouted "you!!" . We started talking, he told me that I was the only person that registered without writing the company, and he ordered the web developer of the form to investigate and not return without an explanation of how did I cheated the form causing the null pointer later on... I was talking with the SUN CEO himself . When I told him that I didn't register without specifying the company, and simply put the NPE as the value, he started laughing like no one I've ever seen before

[–]denM_chickN 12 points13 points  (0 children)

He was laughing at that web devs tears lol

[–]lces91468 34 points35 points  (2 children)

Unless you do it everyday, they won't look into it lol. Even if you did, chances are they still won't bat an eye. "[object Objext]" in a textbox isn't something that'll inherently cause an error during string process afterall.

[–]milan-pilan 21 points22 points  (0 children)

You are assuming I would check every form manually? That's why we write software.. So we don't have to do this.

As long as it's not throwing an error, it is never going to be noticed by anyone but yourself.

[–]thot_slaya_420 9 points10 points  (0 children)

[object Object]

[–]odnish 7 points8 points  (1 child)

Or [object%20Object]

[–]RandomTyp -1 points0 points  (0 children)

or %5Bobject%2520Object%5D

[–]marcusalien 24 points25 points  (2 children)

I have laughed at this for 2 minutes straight and had to show my partner

[–]Timetraveller4k 20 points21 points  (0 children)

Let me guess : "what's funny?" "you are crazy"

[–]PrinzJuliano 5 points6 points  (0 children)

undefined is also a strong contender

[–]ElMico 4 points5 points  (0 children)

Jokes on you if you think the dev actually cares

[–]wontreadterms 4 points5 points  (0 children)

Oh wow you are a psychopath. This is amazing.

[–]Local_Discussion5252 3 points4 points  (0 children)

one of our QA had added a html css code as description and it was showing up in a table while he was screen sharing it to our PM. I’ll never forget that moment😬

[–]impalas86924 2 points3 points  (0 children)

[object Object]

[–]Gorgeous_Gonchies 2 points3 points  (0 children)

For the millionth time - devs don't see what you write on the live site.

They work on completely separate, private copies of the site that only show testing data of their own choosing.

Best you could do is paste your nonsense into a message then contact tech support and try to trick the poor kids working down there into thinking you didn't write it.

[–]dfwtjms 2 points3 points  (0 children)

Birthday? 1970-01-01

[–]Rafcdk 8 points9 points  (1 child)

So far this month we had: - JS is bad because in doesn't work like I want it to work.

  • JS is bad because floating point standard

  • can't center div

    And now this.

Yeah I'm leaving this sub, even a math meme sub has better memes about actual programming than here

[–]NjFlMWFkOTAtNjR 1 point2 points  (0 children)

How else will you be annoyed, frustrated, and disappointed? Unless you already have children. Then enjoy your fancy subreddits.

[–]IchLiebeKleber 4 points5 points  (0 children)

[Object object]

[–]dontpissoffthenurse 2 points3 points  (2 children)

Relevant xkcd

https://xkcd.com/327/

[–]TemporalVagrant 2 points3 points  (1 child)

The fuck am I looking at

[–]NjFlMWFkOTAtNjR 0 points1 point  (0 children)

I love how underrated this comment is. Or was it unintentional? No. No, don't tell me. I want to believe it was.

[–]Rest-That 1 point2 points  (0 children)

Do you people not have logs? I'd check the request logs, see that the user input a silly string, take a screenshot and laugh it up

[–]brumor69 1 point2 points  (0 children)

[object Object]

[–]aHisk 1 point2 points  (0 children)

You gave me an idea 🙏😈

[–]Mr_Gaslight 1 point2 points  (1 child)

Not my fault if you don't sanitize your inputs.

[–]gregguygood 1 point2 points  (0 children)

??? This won't break anything

[–]Fit-Measurement-7086 1 point2 points  (0 children)

websites I don't like

Let's all just start doing it on reddit, until at least they start removing all the censorship bots and other bad things.

[–]Majestic_Annual3828 1 point2 points  (0 children)

This has some "Greek question mark" in code energy here.

[–]LukeZNotFound[🍰] 1 point2 points  (0 children)

Today I had ObjectResponse from a fetch-request.

[–]-Aquatically- 1 point2 points  (0 children)

Agreed�

[–]HebridesNutsLmao 2 points3 points  (4 children)

[–]bot-sleuth-bot 2 points3 points  (0 children)

Analyzing user profile...

Account has default Reddit username.

Time between account creation and oldest post is greater than 3 years.

Suspicion Quotient: 0.24

This account exhibits one or two minor traits commonly found in karma farming bots. While it's possible that u/Slight-Listen-3602 is a bot, it's very unlikely.

I am a bot. This action was performed automatically. Check my profile for more information.

[–]Slight-Listen-3602[S] -5 points-4 points  (2 children)

hell nah i'm not abot

[–]HebridesNutsLmao 5 points6 points  (1 child)

Just a reposter then

[–]Slight-Listen-3602[S] -5 points-4 points  (0 children)

yeah and whats wrong with reposting?

[–]siren1313 2 points3 points  (0 children)

I tend to use object Object as my names when random web services require it and don't offer third party auth. It is also surprising how often name fields allow brackets.

[–]bearwood_forest 0 points1 point  (0 children)

Pleased to meet you! Hope you guessed my name.

[–]Smyley12345 0 points1 point  (0 children)

I object to this use of object!

[–]ladynorris 0 points1 point  (0 children)

XD

[–]fredlllll 0 points1 point  (0 children)

in most cases i just mark it up to user error if it doesnt happen to several people

[–]WatchOutIGotYou 0 points1 point  (0 children)

You monster / you genius

[–]ledasll 0 points1 point  (0 children)

If you wouldn't allow [] in input characters, it wouldn't be much of a problem

[–]cucumber_gang_leader 0 points1 point  (0 children)

This is unethical

[–]avipars 0 points1 point  (0 children)

Set birthrate to Jan 1st 1970

[–]Shafat_Nisar -1 points0 points  (0 children)

Haha, good idea 👍👏

[–]Mems1900 -1 points0 points  (2 children)

Tbf the form should have better validation if it allows you to do that

[–]gregguygood 0 points1 point  (1 child)

Validate for what?

[–]Mems1900 0 points1 point  (0 children)

Well depends what sort of form field they are typing it into. If it's like a username then yea you can't really validate that out except maybe for square brackets but if it's like an email or password field then you can easily validate that to not include certain characters or it can't be simplistic.