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.…
Erin Patterson mushroom murder trial LIVE updates: Jury retires to deliberate verdict after judge revealed 'ultimate issue' they needed to consider
M25 recap as lorry and car crash saw two lanes closed
Mount Rushmore experts reveal if Trump can be added to the iconic monument - as sculptor's granddaughter gives blunt response
The subtle signs that hinted at Meghan Markle's latest business foray as the Duchess's wine goes on sale
Huge setback for Bankstown Hospital nurses who allegedly declared to 'kill Israelis' in viral video
DoJ clears HPE to buy Juniper if it sells Instant On Wi-Fi and licenses some code
The US Department of Justice (DoJ) has cleared the way for HPE’s $14 billion acquisition of Juniper Networks.…
Trump gives telling update on his relationship with former 'First Buddy' Musk after billionaire reignited feud
Chalkwell Park news: Woman 'couldn't sleep' after rushing to help children after fatal tree incident
Weapons collectors, 'Nutz' criminal gangs, pedophiles and aggressive beggars - Essex criminals jailed in June 2025
BBC chiefs have blood on their hands, says family of man murdered at Nova music festival by Hamas terrorists in October 7 massacre
China claims breakthroughs in classical and quantum computers
Chinese chip designer Loongson last week announced silicon it claims is the equal of western semiconductors from 2021.…
After 45 Years, 74-Year-Old Spreadsheet Legend/EFF Cofounder Mitch Kapor Gets His MIT Degree
Read more of this story at Slashdot.