Computer
Trump Suspends Trade Loophole For Cheap Online Retailers Globally
Read more of this story at Slashdot.
Apple Is Selling iPad Repair Parts for Astronomical Prices
Read more of this story at Slashdot.
Google Loses Epic Games Appeal, Must Open App Store To Rivals
Read more of this story at Slashdot.
World's 'Oldest Baby' Born From Embryo Frozen in 1994
Read more of this story at Slashdot.
Microsoft Ends Tradition of Naming Competitors in Regulatory Filings
Read more of this story at Slashdot.
Internal Microsoft Documents Detail Pay Scales
Read more of this story at Slashdot.
Sony Is Suing Tencent Over Shameless Horizon Knock-off Game
Read more of this story at Slashdot.
UK Competition Authority Rains on Microsoft and Amazon Cloud Parade
Read more of this story at Slashdot.
China Claims Nvidia Built Backdoor Into H20 Chip Designed For Chinese Market
Read more of this story at Slashdot.
Microsoft Joins $4 Trillion Club
Read more of this story at Slashdot.
Physicists Disagree Wildly on What Quantum Mechanics Says About Reality
Read more of this story at Slashdot.
Stack Overflow Data Reveals the Hidden Productivity Tax of 'Almost Right' AI Code
Read more of this story at Slashdot.
Australia Widens Teen Social Media Ban To YouTube, Scraps Exemption
Read more of this story at Slashdot.
Peacock Feathers Can Be Lasers
Read more of this story at Slashdot.
CodeSOD: What a CAD
In my career, several times I've ended up being the pet programmer for a team of engineers and CNC operators, which frequently meant helping them do automation in their CAD tools. At its peak complexity, it resulted in a (mostly unsuccessful) attempt to build a lens/optics simulator in RhinoCAD.
Which brings us to the code Nick L sends us. It sounds like Nick's in a similar position: engineers write VB.Net code to control their CAD tool, and then Nick tries desperately to get them to follow some sort of decent coding practice. The result is code like:
'Looping Through S_Parts that have to be inital created For Each Item As Object In RootPart.S_PartsToCreate If Item.objNamDe IsNot String.Empty Then If Item.objNamEn IsNot String.Empty Then If Item.artCat IsNot String.Empty Then If Item.prodFam IsNot String.Empty Then If Item.prodGrp IsNot String.Empty Then 'Checking if the Mandatory Properties are in the partfamilies and not empty If Item.Properties.ContainsKey("From_sDesign") Then ' I omitted 134 lines of logic that really should be their own function Else MsgBox("Property From_SDesign is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If Else MsgBox("Property prodGrp is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If Else MsgBox("Property prodFam is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If Else MsgBox("Property artCat is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If Else MsgBox("objNamEn is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If Else MsgBox("objNamDe is missing or empty.", MsgBoxStyle.DefaultButton2, "Information RS2TC") Exit Sub End If NextAll of their code is stored in a single file called Custom.vb, and it is not stored in source control. Yes, people overwrite each other's code all the time, and it causes endless problems.
Nick writes:
I really wish we'd stop letting engineers code without supervision. Someone should at least tell them about early returns.
.comment { border: none; } [Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.Google Tool Misused To Scrub Tech CEO's Shady Past From Search
Read more of this story at Slashdot.
Voice Actors Push Back As AI Threatens Dubbing Industry
Read more of this story at Slashdot.
Google's AlphaEarth AI Maps Any 10-Meter Area on Earth Using Satellite Data
Read more of this story at Slashdot.
Boring Company To Build Tesla Tunnels Under Nashville
Read more of this story at Slashdot.
Scammers Unleash Flood of Slick Online Gaming Sites
Read more of this story at Slashdot.