News for hackers. Stuff that matters.
Re:"@" on Twitter by ChuckMcM on Friday April 27, 2018 @08:33PM (#16945481)
That must be Bobby Droptables twitter account :-)
Re:"@" on Twitter by sulam on Saturday April 28, 2018 @01:19AM (#16946175)
Classic! We named our guild in EQ "NULL", as a joke. People would comment that we had a problem when they saw us running around with "<NULL>" running over our head. It bit us on the ass when someone went to Sony's EQ con one year, and they literally couldn't print out their badge because "your guild name is NULL? Really?"
Re:"@" on Twitter by oneeyedpigeon on Saturday April 28, 2018 @05:19AM (#16946804)
> they literally couldn't print out their badge

I still don't quite get how this doesn't work. Why are they handling "NULL" as a special case? What's coercing "NULL" into null?

Re:"@" on Twitter by sulam on Saturday April 28, 2018 @11:39AM (#16948147)
It was due to the way they exported the data. They used a SQL statement, and if you weren’t in a guild then the SQL would produce NULL. That output was then used to generate PDF badges, and it tried to do some filtering for NULL guilds. The person writing that script clearly did not anticipate there actually being a guild named NULL.
Re:"@" on Twitter by drb91 on Saturday April 28, 2018 @12:13PM (#16948285)
NULL or ‘NULL’? There’s a clear and obvious difference there.
Re:"@" on Twitter by kalleboo on Sunday April 29, 2018 @10:13AM (#16952066)
Re:"@" on Twitter by T2_t2 on Saturday April 28, 2018 @06:22AM (#16946985)
Bad coding.
Re:"@" on Twitter by dyukqu on Saturday April 28, 2018 @06:48AM (#16947063)
It reminded me of a Wired article from 2015 about a guy with the last name "Null" - https://www.wired.com/2015/11/null/
Re:"@" on Twitter by dghughes on Friday April 27, 2018 @11:47PM (#16945964)
The modern twist to that seems to be little miss Infinity https://www.reddit.com/r/javascript/comments/8f57i1/psa_ther...
Re:"@" on Twitter by xg15 on Saturday April 28, 2018 @02:41PM (#16948931)
Do I get this right that jQuery, for developer convenience, content-sniffs the value of "data-" attributes?

I.e., if the value looks like JSON, it will parse it and return the object tree, otherwise it will return the original value as a string?

This sounds like a horrible idea in general - I'd say the authors of this forgetting that certain english words by themselves are valid JSON is a nice cherry on top but hardly the worst problem caused by this.

Re:"@" on Twitter by Alexendoo on Saturday April 28, 2018 @05:12PM (#16949437)
Sort of - there's a jQuery API that does content sniffing called .data(), it's for storing and retrieving arbitrary data on elements. The problem was that they used this API to read from an element where they should have used .attr(), which returns a string.
Re:"@" on Twitter by paultopia on Saturday April 28, 2018 @01:09AM (#16946157)
Now I want to change my name to NaN
Re:"@" on Twitter by make3 on Saturday April 28, 2018 @02:39AM (#16946383)
you probably don't, if the story about the cars with plates on a variations of "NO PLATE" is any indication https://www.snopes.com/fact-check/licensed-to-bill/
Re:"@" on Twitter by Keloo on Saturday April 28, 2018 @06:46AM (#16947058)
Re:"@" on Twitter by oneeyedpigeon on Saturday April 28, 2018 @05:23AM (#16946816)
Wow. Problem one: applicant writes "no plate" instead of leaving it blank or writing in a crossed line. Problem two: so do the law enforcement officials! The former is a silly mistake; the latter should be a learning opportunity.
Re:"@" on Twitter by blackflame7000 on Friday April 27, 2018 @08:53PM (#16945547)