MP hits out at Government 'incompetence' after huge Essex Police cuts announced
CodeSOD: Does This Spec Turn You On?
I'm a JSON curmudgeon, in that I think that its type-system, inherited from JavaScript, is bad. It's a limited vocabulary of types, and it forces developers to play odd games of convention. For example, because it lacks any sort of date type, you either have to explode your date out as a sub-dictionary (arguably, the "right" approach) or do what most people do- use an ISO formatted string as your date. The latter version requires you to attempt to parse the sting to validate the data, but validating JSON is a whole thing anyway.
But, enough about me being old and cranky. Do you know one type JSON supports? Boolean values.
Which is why this specification from today's anonymous submitter annoys me so much:
field: sw_auto_update type: string valid values: /(on)|(off)/ field: data_auto_update type: string valid values: /(on)|(off)/ field: spanning_tree_protocol type: string valid values: /(on)|(off)/Their custom validator absolutely requires the use of strings, and absolutely requires that they have these values. Sending a boolean, or worse, the string "true" causes the request to get rejected.
Our submitter doesn't explain why it's this way, but I have a strong suspicion that it's because it was originally designed to support a form submission with radio buttons. The form is long gone, but the API contract remains.
Isla Fisher is red hot as she shows off her cleavage in a low-cut scarlet dress at the premiere of Bridget Jones Diary after split from Sacha Baron Cohen
Inside Rihanna's trip to LA courtroom to support A$AP Rocky who faces 24 years in prison
5 pets at RSPCA Essex who are searching for their forever homes
Witham charity installed new defibrillator in memory of resident
Officers investigate 62 vehicles after illegal street race near racecourse
Essex Solar Scheme offers residents affordable green energy
5 pets at RSPCA Essex who are searching for their forever homes
Hunt launched for Basildon woman wanted on recall to prison
Wynne Evans' friends 'insist talk of his career ending is "premature" and defend his inappropriate jokes as "schoolboy comedy"' while his Strictly co-stars 'rally around him' in wake of his withdrawal from the live tour
Jay-Z's team makes MAJOR legal request in shock sex assault lawsuit
Prince Andrew is seen for the first time since daughter Princess Beatrice gives birth - as delighted mother Sarah Ferguson shares heartwarming message
Democrat Teams Up With Movie Industry To Propose Website-Blocking Law
Read more of this story at Slashdot.
Diplomat who left classified MoD papers at bus stop 'lined up for new top job as UK's NATO ambassador'
Azure Can’t Make Up For On Premises Profit Decline At Microsoft
If you think it might be difficult to sell companies general purpose servers when they are frenzied about GenAI and trying to figure out how to get GPU-accelerated systems, you ought to try to convince the same companies to upgrade to Windows Server 2025, which launched last November. …
Azure Can’t Make Up For On Premises Profit Decline At Microsoft was written by Timothy Prickett Morgan at The Next Platform.
Nicole Kidman's nepo baby Sunday Rose lands big modeling campaign despite savage reaction to runway debut
DeepSeek's not the only Chinese LLM maker OpenAI and pals have to worry about. Right, Alibaba?
Analysis The speed and efficiency at which DeepSeek claims to be training large language models (LLMs) competitive with America's best has been a reality check for Silicon Valley. However, the startup isn't the only Chinese model builder the US has to worry about.…