Orbital datacenter startup CEO admits launch economics don't fly, presses ahead regardless
A startup called Orbital has revealed a plan to build a 10,000-satellite neocloud in space – if Elon Musk delivers on his ambitious plans to increase launch capacity and reduce costs.…
Police plan in place as fuel protests planned TODAY at Dartford Crossing and M25
Police plan in place as fuel protests planned TODAY at Dartford Crossing and M25
A day in the life of the Maids Moreton killer: How twisted former churchwarden murderer Ben Field spends his time in jail
Supermarket worker left suicide note after emptying his mother's life savings of £595,000 before turning himself in to police, court hears
'Obstruction' causing rush hour delays on A12 near Chelmsford
Fewer breast enlargements were carried out in 2025 than ever before - but surgeons saw spike in facelifts and eyelid ops
The only technology that died more times than VR is AI, and that seems to have worked out
Opinion Could the recent death of Meta's unloved and unused Horizon Worlds signal the demise of the wider metaverse?…
Coronation Street star Lisa George reveals her incredible transformation after £8,000 eyelid surgery as she shows off her three stone weight loss
Amazon Buys Globalstar For $10.8 Billion, Moving To Expand Its Satellite Internet Service
Read more of this story at Slashdot.
Lena Dunham admits she cheated on Jack Antonoff after their 'worst-ever fight' following her 2017 hysterectomy surgery while he got close to 'a teen pop star'
Pictured for first time: Disgraced child sex offender footballer Adam Johnson and his partner Stacey Flounders look barely recognisable as they are spotted after 'typical suburban parents' makeover - as we reveal new life
CodeSOD: Three Letter Acronyms, Four Letter Words
Candice (previously) has another WTF to share for us.
We're going to start by just looking at one fragment of a class defined in this C++ code: TLAflaList.
Every type and variable has a three-letter-acronym buried in its name. The specific meaning of most of the acronyms are mostly lost to time, so "TLA" is as good as any other three random letters. No one knows what "fla" is.
What drew Candice's attention was that there was a type called "list", which implies they're maybe not using the standard library and have reinvented a wheel. Another data point arguing in favor of that is that the class had a method called getNumElements, instead of something more conventional like size.
Let's look at that function:
size_t TLAflaList::getNumElements() { return mv_FLAarray.size(); }In addition to the meaningless three-letter-acronyms which start every type and variable, we're also adding on a lovely bit of hungarian notation, throwing mv_ on the front for a member variable. The variable is called "array", but is it? Let's look at that definition.
class TLAflaList { … private: TLAflaArray_t mv_FLAarray; … }Okay, that gives me a lot more nonsense letters but I still have no idea what that variable is. Where's that type defined? The good news, it's in the same header.
typedef std::vector<INtabCRMprdinvusage_t*> TLAflaArray_t;So it's not a list or an array, it's a vector. A vector of bare pointers, which definitely makes me worry about inevitable use-after-free errors or memory leaks. Who owns the memory that those pointers are referencing?
"IN" in the type name is an old company, good ol' Initrode, which got acquired a decade ago. "tab" tells us that it's meant to be a database table. We can guess at the rest.
This isn't a codebase, it's a bad Scrabble hand. It's also a trainwreck. Confusing, disorganized, and all of that made worse by piles of typedefs that hide what you're actually doing and endless acronyms that make it impossible to read.
One last detail, which I'll let Candice explain:
I started scrolling down the class definition - it took longer than it should have, given that the company coding style is to double-space the overwhelming majority of lines. (Seriously; I've seen single character braces sandwiched by two lines of nothing.) On the upside, this was one of the classes with just one public block and one private block - some classes like to ping-pong back and forth a half-dozen times.
Villagers in year-long fight to close traveller site after bank holiday land grab: Residents' fury after family moved onto horse's field overnight, set up camp - and are refusing to leave
Footy star reveals how cutting out a meal many Aussies love was key to saving his career as he dropped a staggering 30kg
King is set to address 'challenging' nature of US-UK relationship in historic address to Congress during state visit
Keep a record of financial gifts to your loved ones to avoid inheritance tax headaches
These 12 new pieces from George at Asda's spring collection could easily be designer - and prices start at just £14
Boeing deliveries soar past Airbus for the first time in years, but this is no time to unbuckle your seat belt
Boeing has delivered more commercial planes in a quarter than Airbus for the first time in seven years.…