Junior sysadmin’s first lines of code set off alarms. His next lot crashed the company
Who, Me? Welcome again to Who, Me? It's the Monday morning column in which readers of The Register admit to making big mistakes and somehow swerving the consequences.…
Air India investigators are probing sabotage after crash killed 260 when 'both engines lost power' moments after take off
This Braintree primary school is closed today due to an 'emergency closure'
'Incomprehensible' - Essex students, 15, win national awards for school musical
Pia and Patrick Whitesell attend wild star-studded 50th in Mexico after Bezos-Sanchez wedding - and Lauren's ex-husband couldn't look happier with his stunning Aussie wife
Jessica Alba's lookalike daughter Honor, 17, quietly steals the spotlight at Bezos-Sánchez wedding
Why Wigan, Blackburn and Falkirk are the new house price hotspots
Prince William praises charity workers for 'shifting the dial' in their bid to tackle the 'mammoth challenge' of homelessness in Britain
Ozempic queen Oprah emerges arm-in-arm with facelift-fresh Kris Jenner after bonding at Bezos' wedding extravaganza
Holly Willoughby makes a rare appearance with husband Dan Baldwin as she opts for a chic paisley dress for the final day of sun-soaked Glastonbury
John Lewis rejected my TV price promise claim - as it disagreed with my definition of 'seven days'
Tech expert reveals five warning signs that someone is spying on you through your phone - and one of them is worryingly common
Veteran newsreader Jan Leeming, 83, takes swipe at current generation of TV anchors for their 'bad pronunciation, mumbled speech and heavy accents'
Labour's botched welfare cuts 'target the wrong people', with rising numbers still signed-off as too sick over the phone
Schoolboy, 12, dies in West Yorkshire after trying social media challenge as family warn of dangers
My boyfriend is 27 years older than me - people say our relationship is disgusting and I'm only in it for money but they're just jealous
Revealed: Notorious Rochdale grooming gang paedophile builds new house in Pakistan village while getting £285k taxpayer handout to fight deportation battle
Travel chaos as wildfires tear through holiday hotspot and grounds flights leaving 100s of passengers stranded as Europe scorches... and Britain is set to hit record-breaking temperatures
CodeSOD: A Highly Paid Field
In ancient times, Rob's employer didn't have its own computer; it rented time on a mid-range computer and ran all its jobs using batch processing in COBOL. And in those ancient times, these stone tools were just fine.
But computing got more and more important, and the costs for renting time kept going up and up, so they eventually bought their own AS/400. And that meant someone needed to migrate all of their COBOL to RPG. And management knew what you do for those kinds of conversions: higher a Highly Paid Consultant.
On one hand, the results weren't great. On the other, the code is still in use, though has been through many updates and modernizations and migrations in that time. Still, the HPC's effects can be felt, like this block, which hasn't been touched since she was last here:
// CHECK FOR VALID FIELD IF FIELD1 <> *BLANKS AND FIELD1 < '1' AND FIELD1 > '5'; BadField1 = *ON; LEAVESR; ENDIF;This is a validation check on a field (anonymized by Rob), but the key thing I want you to note is that what the field stores are numbers, but it stores those numbers as text- note the quotes. And the greater-than/less-than operators will do lexical comparisons on text, which means '21' < '5' is true.
The goal of this comparison was to require the values to be between 1 and 5. But that's not what it's enforcing. The only good(?) news is that this field also isn't used. There's one screen where users can set the value, but no one has- it's currently blank everywhere- and nothing else in the system references the value. Which raises the question of why it's there at all.
But those kinds of questions are par for the course for the HPC. When they migrated a bunch of reports and the users compared the results with the original versions, the results didn't balance. The HPC's explanation? "The users are changing the data to make me look bad."
Don't pay for AI support failures, says Gradient Labs CEO
interview Dimitri Masin, CEO of Gradient Labs, argues that companies using AI agents for customer support should only pay when the bot does its job.…