82

zbigy comments on The first two questions from Trump's official poll released to...

 6 years ago
source link: https://www.reddit.com/r/facepalm/comments/7llkwf/the_first_two_questions_from_trumps_official_poll/drnk9la/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

The first two questions from Trump's official poll released today

Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Search within r/facepalm
r/facepalm
Found the internet!

This thread has been locked by the moderators of r/facepalm
New comments cannot be posted
level 1

Did you guys look at the page's html source? Check out their error handling...

if ($('.error-title-wrapper').length != 0) { errorCode = $('.error-title-wrapper legend').text().split(' ')[0]; if (errorCode = '404') { var errorMessage = 'What do Hillary Clinton and this link have in common? They're both <span>"dead broke."' } else if (errorCode = '500') { var errorMessage = 'Oops! Something went wrong. Unlike Obama, we are working to fix the problem... and not on the golf course.' } else { var errorMessage = 'An Unknown Error Occurred'; } }

The fact he would still have a reference to Obama being on the golf course too much is baffling..

level 2

It's ironic that their error handling has errors and that their dig on fixing the problem will never be evaluated. "if (errorCode = '404')" is evaluating an assignment (=) instead of a condition (==), which will evaluate to true in this case. So, the error message will always represent a 404 error even if there's a 500 error.

level 2

It's old and part of the gop.com, not just that specific poll page.

level 2

What the FUCK is that code. if (errorCode = '404')??? That assigns '404' to the variable errorCode instead of verifying if they are equal (needs to be == in that case). This is something learned probably in the first class of a computer science degree. Most student probably know this long before school starts.

On top of that, the Obama references are pathetic.

On top of that, still using jQuery m8???

level 2

Really? Assignment operators in conditions? That’s what we have on the official GOP website’s poll???

level 2

At least someone's nephew who "knows computers" has a job again...

level 2

I shouldn’t even be surprised at the childishness of these twats anymore, but something in my mind is still amazed that grown adults would act this way.

level 2

This, coming from the guy spending US taxpayer money on building a seawall to protect his favourite golf course, IN IRELAND.

level 2
[deleted]
· 5 yr. ago

How can Hillary be dead broke? I thought she made millions in the uranium ore deal?

level 2

There is also if ($('.error-title-wrapper').length != 0) { errorCode = $('.error-title-wrapper legend').text().split(' ')[0]; if (errorCode = '404') { var errorMessage = 'What do Hillary Clinton and this link have in common? They're both <span>"dead broke."' } else if (errorCode = '500') {

level 2
Prolific Commenter+2 · 5 yr. ago
Trump is awful.

Odd. I get told Hillary is paying me for my liberal/Democratic stuff all the time.

level 2

Everything is a big joke to politicians, its just a a game, and we are the game pieces. Thats what happens when the people's voice stops mattering.

level 2
[deleted]
· 5 yr. ago

Wow this is amazing.

level 2
Comment deleted by user · 5 yr. ago

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK