In a Last-Minute Decision, White House Decides Not To Terminate NASA Employees
Read more of this story at Slashdot.
CodeSOD: The Right Helper
Greg was fighting with an academic CMS, and discovered that a file called write_helper.js was included on every page. It contained this single function:
function document_write(s) { document.write(s); }Now, setting aside the fact that document.write is one of those "you probably shouldn't use this" functions, and is deprecated, one has to wonder what the point of this function is. Did someone really not like object-oriented style code? Did someone break the "." on their keyboard and just wanted to not have to copy/paste existing "."s?
It's the kind of function you expect to see that someone wrote but that isn't invoked anywhere, and you'd almost be correct. This function, in a file included on every page, is called once and only once.
More like the wrong helper, if we're being honest.
[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.A$AP Rocky's six-word message to the jury amid Rihanna's tears after shock verdict
Savvy Essex mum says making one small change helped her save £5,000 in a year
Elon Musk considers 'DOGE dividend' that would send $5,000 check to all Americans following massive budget cuts
Evri admits it will lose 22,000 UK parcels EVERY day
Serena Williams reacts to Drake fans calling her Super Bowl cameo 'petty' before jetting off on vacation
Westcliff man fined £500 after using his wife's blue badge to park on double yellow lines outside his home
Photography award finalist launches new studio above Witham gym
Former head of NYU Republicans breaks silence after being ousted over bizarre Barron Trump comments
A-list art dealer's incredible fall from grace after scamming $6.4m from wealthy clients
3D Map of Exoplanet Atmosphere Shows Wacky Climate
Read more of this story at Slashdot.