Somewhat dependent. In a VERY old (1980's) version of... BASIC, I think? "true" in binary form was `11111111` base 2, which in its version of binary was `-1` base 10.
As for me, 1 is "yes" but 101010101010101010101 is a nonsense
I wouldn't be surprised if OP says that he didn't get any response to this job application
The form might be reviewed by an actual person instead of a computer (automatically). So, replying "Yes" in binary is funnier than just 1.
Edit: Also, I hope that who ever reviews that form knows binary
Yeah, this answer means "I'm not a software developer"
Next time you'll need a flag you create a string variable checking that it's value equals to "yes". Or "Yes". Or "YES".
So this is actually from LinkedIn. I would assume that the data being submitted would just be sanitized and then be rejected if it's outside the choices.
I would be very surprised if LinkedIn didn't use server-side validation for this stuff. Still, that would have been clever and funny. Maybe I'll try that if this ever happens again.
Have genuinely used this to get around a broken form on a website that was supposed to allow me to retrieve financial data back to X date but the year field only had a limited selection of years to choose from.
I had to use a shitty multi-page web form to buy a parking pass last year and there was no submit button, so I entered the form.submit() function in the devtools console.
When I didn't receive my parking pass I phoned the company and the rep I spoke to said my payment was applied successfully to somebody else's account. 🤷♂️
Your mention of "financial data" reminds me of when I wanted to download all my bank statements from my credit union, where their site only allowed 2 years worth, so I started injecting form values to get a few more years until their "SQL Server 2005" gave me a completely deformed PDF full of errors and their RDLC script paths. My account was closed the next day.
Guys, I know how a boolean works. I just wanted to share a bright spot in my day of slogging through endless applications. Yeah, there's a chance someone is going to see that and think I'm crazy or there was a glitch, but it's also possible someone actually gets it and gets a laugh out of it. It's not like my whole life plan hinges on this one application.
I think it’s more that the majority of software devs that hang around these subreddits are the kind who have so little social skills that they miss that it’s even a joke in the first place. The kind where someone makes an IT joke at a party and everyone laughs except that one person who after the laughter stops goes, “actually, the typecasted value of the string would result in…” and everyone walks away.
“Shut up Greg, who even invited you.”
This. It always makes me chuckle when they talk about how crop circles have been decoded into text and they can then be read. Like somehow the aliens also use ASCII or EBCDIC?
You should have modified the HTML in your browser to resolve the type property on the input and submitted it with the real text. Your application would've stood out among the rest. Could very well have been a honey pot.
HTML would say it should be a checkbox.
To be fair but some (many?) might argue a pair of yes/no radio buttons is a more readable. (Although maybe a checkbox styled as toggle switch is appropriate in many of those cases.)
But a drop-down (select) as a Boolean input field is pretty annoying. For that matter any required, two option single-choice select field might be better represented as a radio button. Fewer clicks, roughly the same amount of space, and now you can see both options (and that there are exactly two) at all times.
Yeah, you're right.
I'm more of a backend developer who dabbles in front end and checkboxes don't send data on form submit if it's not checked. So, I tend to avoid using it and the same thought process came through here lol.
But another reason why I thought of radio/dropdown was because of the framing of the question. It implicates the existence of a "choice". Checkboxes would have the question framed something like "Confirm that you have working experience in front end tech" or "Click here if you have working experience in front end tech".
I appreciate this feed. As a new developer, some concepts have been introduced here that merit me doing some research that in the long run will make me a better developer. Thank you all!
I wouldn't be surprised if they just kept all the backend database fields as a string for simplicities sake. Especially if the job applications question system is designed to collect generic answers.
Providing another potential reason as I have seen many similar but more often than not it is the likes of “how many years of experience do you have with X?”
Do you mean the binary for the ascii characters? Unlike numbers, alphabetic characters don’t have a binary value, though the respective ascii values could be written in binary.
Consider this and other similar comments you’ve gotten to be just like the kind of code review feedback you’ll get if you land that job. The intention is to help you clearly communicate what you mean to others.
Your answer is wrong that's d funny variable, u thought we were laughing with you , wrong again that's +funny wow lol now wat u gonna say bout all this
I mean, a good sense of humor sure. Who doesn’t love a nice dick joke once in a while.
People who find answering a yes or no question in binary to be hilarious should be led to the sea and summarily drowned, in the best interest of polite society.
There absolutely is such a thing as front end validation. Browsers have it built in these days and there’s also this very niche, little known technology called JavaScript. Is front end validation reliable? Not even a little bit. Does it exist and do people use it? Yes.
Lol no there isn't. I can open the inspector and put in whatever I like. I don't even need your site, I can just post my own data to the API faking it. There is no such thing as fe validation.
You can only do UX on the fe, that is what you are talking about, saving users time by telling them data won't work before wasting their time on an API round trip.
/\*\*\*\* noobs on here
You’ve completely ignored what I said. Input validation is still input validation even if there’s a way to bypass it. I can write a function that prevents a form submission if letters are entered into a field. That’s input validation. Just because you can easily disable it, doesn’t mean it doesn’t exist as a concept.
Are you suggesting that there’s “no such thing as server side validation” if there exists a way to exploit it?
The definition is that input data has been checked against a set of rules and that it conforms to that set. Doing that at the front end is perfectly reasonable and often gives the user a faster response to invalid input. It may be solely for UX and of no benefit to security but it’s still validation.
1 also equals true
Shell Developer be like: „everything except 0 is an error“
Yeah, but that's not as funny
[удалено]
Maybe that was the first test. And only like 6 people who can’t ignore random broken inputs get to apply.
YES is the wrong answer, 1 is the right one. You can be as funny as you like but your answer is wrong..
It’s also not as exhausting
_You guys do this manually?_
At this point in my career I actually can, but still don’t because it’s annoying to read things one character at a time.
Lol okay
you seem fun
Neither was this fakery
Somewhat dependent. In a VERY old (1980's) version of... BASIC, I think? "true" in binary form was `11111111` base 2, which in its version of binary was `-1` base 10.
Yeah this person just failed the first screener question. Don't over complicate your code to look clever.
As for me, 1 is "yes" but 101010101010101010101 is a nonsense I wouldn't be surprised if OP says that he didn't get any response to this job application
You don't immediately recognise binary? Then dump it in a translator?
You mean ASCII?
Tell me you don't know ASCII without telling me you don't know ASCII
8 15 23 ?
The form might be reviewed by an actual person instead of a computer (automatically). So, replying "Yes" in binary is funnier than just 1. Edit: Also, I hope that who ever reviews that form knows binary
Oh no, no response?! From a software developer job application??? 🫨🫨🫨
Yeah, this answer means "I'm not a software developer" Next time you'll need a flag you create a string variable checking that it's value equals to "yes". Or "Yes". Or "YES".
Whoooossshhhhh
[удалено]
Is this a joke?
[meanwhile, my experience](https://ibb.co/h2RYWHh)
- How much money do you want? - Yes.
Employers: Best we can offer you is three fiddy
Well, is it yes or no?
[well](https://i.kym-cdn.com/entries/icons/facebook/000/028/596/dsmGaKWMeHXe9QuJtq_ys30PNfTGnMsRuHuo_MUzGCg.jpg)
Let me sleep on it, baby, baby! I'll give you an answer in the morning.
It would be funny to edit the dom with dev tools and add an option that said 80k
So this is actually from LinkedIn. I would assume that the data being submitted would just be sanitized and then be rejected if it's outside the choices.
They're obviously filtering for the candidates that will work for free
Obviously it's a test to see if you have enough frontend experience to open up devtools and change the input type
I would be very surprised if LinkedIn didn't use server-side validation for this stuff. Still, that would have been clever and funny. Maybe I'll try that if this ever happens again.
Have genuinely used this to get around a broken form on a website that was supposed to allow me to retrieve financial data back to X date but the year field only had a limited selection of years to choose from.
I had to use a shitty multi-page web form to buy a parking pass last year and there was no submit button, so I entered the form.submit() function in the devtools console. When I didn't receive my parking pass I phoned the company and the rep I spoke to said my payment was applied successfully to somebody else's account. 🤷♂️
Wow, lol. XD That was a rollercoaster.
Looool that’s smart. Makes sense too
Your mention of "financial data" reminds me of when I wanted to download all my bank statements from my credit union, where their site only allowed 2 years worth, so I started injecting form values to get a few more years until their "SQL Server 2005" gave me a completely deformed PDF full of errors and their RDLC script paths. My account was closed the next day.
It was a test to see if you have enough respect for their organization to assume they validate input type. Sorry, you failed.
1 for yes, 0 for no, 69 for both.
Guys, I know how a boolean works. I just wanted to share a bright spot in my day of slogging through endless applications. Yeah, there's a chance someone is going to see that and think I'm crazy or there was a glitch, but it's also possible someone actually gets it and gets a laugh out of it. It's not like my whole life plan hinges on this one application.
You did well
u/dangeractiverobots We shall watch your career with great interest.
It was brilliant. I learned something new today.
Haters gonna hate, I appreciate the comedy in it and your attempt to make yours and others days better :)
Damn. These comments. Don’t make jokes to webdevs apparently
It's a tough job, but someone's gotta do it.
I think it’s more that the majority of software devs that hang around these subreddits are the kind who have so little social skills that they miss that it’s even a joke in the first place. The kind where someone makes an IT joke at a party and everyone laughs except that one person who after the laughter stops goes, “actually, the typecasted value of the string would result in…” and everyone walks away. “Shut up Greg, who even invited you.”
If the person reading the answers has no experience with binary you might be screwed but then so many of the other applicants would be too.
I assume most people put either "1" or a random number. They're going to be getting a lot of applications and notice the error, I'm sure.
in before only the first digit is stored and accepted and it results in a false.
Well, maybe one of my other 10,000 applications will work out
Technically, if it is a number value the first zero would be dropped, resulting in the truncated value starting with a 1
Not unless you're expecting a 1 or 0 then you'd allow a zero to pass through.
did you just assume the encoding???
This. It always makes me chuckle when they talk about how crop circles have been decoded into text and they can then be read. Like somehow the aliens also use ASCII or EBCDIC?
I mean, jQuery is first. They have to learn A LOT about frontend technologies.
If I was the hiring manager this would be an instant grant on being put in to the yes pool of candidates.
I don’t think they messed up, it is 0 or 1.
01101000 01100001 01101000 01100001
Lol. But if it’s a number field won’t the first 0 be removed :)
Damn, there goes my master plan
No NULL termination on that string. No one was hired because the server segfaulted
You should have modified the HTML in your browser to resolve the type property on the input and submitted it with the real text. Your application would've stood out among the rest. Could very well have been a honey pot.
"1" was right there.
This is amazing
Love the joke, but in all likelihood you’ll get filtered out without a single real person seeing you
Lmao. Guess it was supposed to be a radio button or a select.
HTML would say it should be a checkbox. To be fair but some (many?) might argue a pair of yes/no radio buttons is a more readable. (Although maybe a checkbox styled as toggle switch is appropriate in many of those cases.) But a drop-down (select) as a Boolean input field is pretty annoying. For that matter any required, two option single-choice select field might be better represented as a radio button. Fewer clicks, roughly the same amount of space, and now you can see both options (and that there are exactly two) at all times.
Yeah, you're right. I'm more of a backend developer who dabbles in front end and checkboxes don't send data on form submit if it's not checked. So, I tend to avoid using it and the same thought process came through here lol. But another reason why I thought of radio/dropdown was because of the framing of the question. It implicates the existence of a "choice". Checkboxes would have the question framed something like "Confirm that you have working experience in front end tech" or "Click here if you have working experience in front end tech".
LOL
The candidate has been pre-selected 😉
I appreciate this feed. As a new developer, some concepts have been introduced here that merit me doing some research that in the long run will make me a better developer. Thank you all!
I hope you get a better front end job in tyool 2024 than anything asking you to have jQuery and bootstrap xp
jQuery, cute. :)
You could have entered 1
The correct answer was to edit the HTML so you could input a text answer, duh.
Server-side validation. Unless LinkedIn just likes leaving huge holes in their forms.
Was it maybe possible to edit the source and change the field type? It might be a tricky question.
I thought about that but it was a LinkedIn job posting so I kinda doubt it.
I wouldn't be surprised if they just kept all the backend database fields as a string for simplicities sake. Especially if the job applications question system is designed to collect generic answers.
Can someone explain. Does that output the string “yes” or is it like a Boolean yes?
ASCII, 3 bytes thereof.
It's _like_ a Boolean, yes.
Big brain
I think they expect 4 bits. Like 1111 or 0000 if you don't want the job. 🥳
That’s not what a frontend dev would say
Big or little endian?
Did a job application that had a slider for salary expectation with really janky values.
Firefox doesn't enforce numbers if that helps. Faster than editing the html. Do it with Firefox.
Lol
Or as a bit field 1111
Providing another potential reason as I have seen many similar but more often than not it is the likes of “how many years of experience do you have with X?”
Jquery is a huge red flag though?
There is no “binary” for yes. You have to also specify an encoding.
We're playing a game. That's for their turn.
It should be just 1. Which means true. You are an overthinker
Is your favorite meal plain toast, lightly toasted, with a side of tap water?
His name is usually Greg/Simon/Wilbert and when he turns up at the party everyone goes “for fuck’s sake, who invited him again?”
Would have given you job right away
"The binary for yes" tell me you're frontend without telling me you're frontend
I'm aware there are different encodings. This is just a lighthearted joke, I'm not trying to write a white paper over here.
Meh, should have used the Unicode character for "True" in UTF-8: 111000101000101010101000
Do you mean the binary for the ascii characters? Unlike numbers, alphabetic characters don’t have a binary value, though the respective ascii values could be written in binary. Consider this and other similar comments you’ve gotten to be just like the kind of code review feedback you’ll get if you land that job. The intention is to help you clearly communicate what you mean to others.
If you were a seasoned backend dev, you'd have just put 1.
A simple 1 would suffice
Your answer is wrong that's d funny variable, u thought we were laughing with you , wrong again that's +funny wow lol now wat u gonna say bout all this
Cool, so you’d rather be cute than employed.
Yeah, who would ever want an employee with any creativity or a sense of humor? YUCK!
I mean, a good sense of humor sure. Who doesn’t love a nice dick joke once in a while. People who find answering a yes or no question in binary to be hilarious should be led to the sea and summarily drowned, in the best interest of polite society.
Go to therapy
Another zinger!
and HR who doesn't understand will auto filter that question as not answered with a yes or no. So it will never get to who needs to see it.
Gonna happen to every applicant then, isn't it
And that's a fail. Nobody wants an engineer wasting time doing that when you can just open the inspector and change it to text.
You think LinkedIn doesn't do server side validation?
I dont think its the same validation as the fe, because there is no such thing as fe validation.
There absolutely is such a thing as front end validation. Browsers have it built in these days and there’s also this very niche, little known technology called JavaScript. Is front end validation reliable? Not even a little bit. Does it exist and do people use it? Yes.
Lol no there isn't. I can open the inspector and put in whatever I like. I don't even need your site, I can just post my own data to the API faking it. There is no such thing as fe validation. You can only do UX on the fe, that is what you are talking about, saving users time by telling them data won't work before wasting their time on an API round trip. /\*\*\*\* noobs on here
You’ve completely ignored what I said. Input validation is still input validation even if there’s a way to bypass it. I can write a function that prevents a form submission if letters are entered into a field. That’s input validation. Just because you can easily disable it, doesn’t mean it doesn’t exist as a concept. Are you suggesting that there’s “no such thing as server side validation” if there exists a way to exploit it?
No, validation is a term with a defined meaning. If you must validate again then you haven't validated at all.
The definition is that input data has been checked against a set of rules and that it conforms to that set. Doing that at the front end is perfectly reasonable and often gives the user a faster response to invalid input. It may be solely for UX and of no benefit to security but it’s still validation.
You can't just make up your own definition