Google just spent $14 billion on servers in 91 days, plans even higher spending soon
Google’s parent company Alphabet has increased its capex budget for the year by $10 billion and now expects to spend $85 billion this year, and more in 2026.…
Columbia University caves to Trump with eye-popping settlement for civil rights violations of Jewish students
Essex Police chief rejects calls to resign over handling of Epping asylum hotel protests after force admitted escorting pro-migrant activists to demo before violent clashes broke out
Israel is accused of 'mass starvation' as 100 charities blast aid blockade: At least ten people 'die of malnutrition' in 24 hours
High-flying saleswoman wins payout after 'female boss laughed at her when she said she wanted her job back' after birth of her daughter
Sweet Spot For Daily Steps Is Lower Than Often Thought, New Study Finds
Read more of this story at Slashdot.
Manager creates 22 fake employees with perfect attendance to steal £1,600,000 from work
How a behind-the-scenes advisor handpicked by Queen Elizabeth quietly transformed William and Harry into modern royals... and the two unusual conditions he demanded from the late monarch
How Sarina Wiegman's daughter quit the sport her mother loves: 21-year-old left Dutch club, now run by her father, weeks before Euros
Beach hut owners' fury as 'risk-averse' council removes cliffside beach huts over coastal erosion fears - leaving them £25,000 out of pocket each
The £280,000 Ford Escort: MkII RS 1800 owned by same family for 50 years sells for record price
CodeSOD: ConVersion Version
Mads introduces today's code sample with this line: " this was before they used git to track changes".
Note, this is not to say that they were using SVN, or Mercurial, or even Visual Source Safe. They were not using anything. How do I know?
/** * Converts HTML to PDF using HTMLDOC. * * @param printlogEntry ** @param inBytes * html. * @param outPDF * pdf. * @throws IOException * when error. * @throws ParseException */ public void fromHtmlToPdfOld(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException {...} /** * Converts HTML to PDF using HTMLDOC. * * @param printlogEntry ** @param inBytes * html. * @param outPDF * pdf. * @throws IOException * when error. * @throws ParseException */ public void fromHtmlToPdfNew(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException {...}Originally, the function was just called fromHtmlToPdf. Instead of updating the implementation, or using it as a wrapper to call the correct implementation, they renamed it to Old, added one named New, then let the compiler tell them where they needed to update the code to use the new implementation.
Mads adds: "And this is just one example in this code. This far, I have found 5 of these."
.comment { border: none; }