CodeSOD: Completely Readable
It is eminently reasonable for companies to have "readability standards" for their code. You're writing this code for humans to read, after all, at least in theory. You need to communicate to future inheritors of your code.
But that doesn't mean readability standards are good. Tony's company, for example, has rules about returning boolean values from functions, and those rules mean you are expected to write code like this:
public bool Completed () { if (completed == true) { return true; } else { return false; } }It's more "explicit" this way. Which I certainly would have explicit things to say if I were told I needed to write code this way. Also, what's with the non-indented return statements? Is that also part of their coding standards?
The Essex school where smartphones are banned during the day
'World's sexiest footballer' reveals the huge falsehood that almost drove her out of the sport
Rock legend looks worlds away from his onstage persona during low key supermarket shop with his girlfriend
Timeline of events as search for missing woman Vitória Barreto continues
Tory councillor apologises after serious allegations of code of conduct breach
Some Microsoft Insiders Fight to Drop Windows 11's Microsoft Account Requirements
Read more of this story at Slashdot.
Earth's climate is more out of balance than EVER before: Shocking report confirms humanity has just endured the 11 hottest years on record - as scientists warn 'every key indicator is flashing red'
CHRISTOPHER STEVENS reviews the weekend TV: Celebrities? Even with name badges this bunch would be unrecognisable
MARK ALMOND: This is no time to be asleep at the wheel. Iran's threat is real
Carrie Anne Fleming dead at 51: Supernatural star passes away as cause of death is revealed
Now Notting Hill homeowners are hiring SECURITY to try to control influencers who are flocking to their street to snap photos with blooming cherry blossoms
Dreaming of a course that will guarantee you a job with a £50,000 salary? Enrol at the university of... Norland nannies!
Argos is blasted over its £15 influencer kit - for toddlers: Toy camera, phone and ring light set are labelled as 'completely irresponsible'
William's expression of his 'quiet faith' is not a Damascene flash, but he has a clear-headed grasp of reality
Boat packed with migrants crosses Channel as gendarmes look on - just days after border chief quit
Shock new entry in Britons' top ten takeaways - as fish and chips flounders and doners are done for
ADRIAN THRILLS: A performer in her prime, Raye makes her pitch to sing the next Bond theme
City law firm boss orders top partners to tackle a 'pattern' of bullying and sexual harassment
Microsoft: Removing some Copilots will improve Windows 11
Microsoft has acknowledged that it needs to improve the quality of Windows 11 and outlined its plan to get the job done.…