Feed aggregator
Samsung Mocks Apple's Controversial 'Crush' Ad With 'UnCrush' Pitch
Read more of this story at Slashdot.
Revolutionary New Google Feature Hidden Under 'More' Tab Shows Links To Web Pages
Read more of this story at Slashdot.
Smartphones Can Now Last 7 Years
Read more of this story at Slashdot.
US House of Representatives Passes TICKET Act To Create Transparency in Pricing
Read more of this story at Slashdot.
Toshiba To Cut 4,000 Jobs in Restructuring Drive
Read more of this story at Slashdot.
Visa Adds New Way To Share Customer Shopping Data With Retailers
Read more of this story at Slashdot.
'Microsoft's Quest For Short-Term $$$ is Doing Long-Term Damage To Windows, Surface, Xbox, and Beyond'
Read more of this story at Slashdot.
Microsoft Asks Hundreds of China-Based AI Staff To Consider Relocating Amid US-China Tensions
Read more of this story at Slashdot.
Airbus Unveils Half-Plane, Half-Copter In Quest For Speed
Read more of this story at Slashdot.
AT&T Goes Up Against T-Mobile, Starlink With AST SpaceMobile Satellite Deal
Read more of this story at Slashdot.
Microsoft's AI Push Imperils Climate Goal As Carbon Emissions Jump 30%
Read more of this story at Slashdot.
CodeSOD: Scoring the Concatenation
Today's a simple one. We've all seen code that relies too heavily on string concatenation and eschews useful methods like Join.
Nick L sends us this VB.Net example, written by a slew of mechanical engineers.
PartSearchDescription = _ dFrameType + _ dFrameSize + _ dSYZD + _ dPoles + _ dBearingType + _ dBearingInsulated + _ dTerminalBoxType + _ dMBBreatherDrain + _ dTerminalBoxSH + _ dMBServitPost + _ dMBNotes + _ dStandoffs + _ dStatorGnd + _ dLA + _ dCT + _ dMeteringCT + _ dSC + _ dIrisPartialDischarge + _ dLocation + _ dWOrientation + _ dStatorRTD + _ dBearingRTD + _ dBearingThermocouples + _ dTypeEE + _ dTypeJJ + _ dTypeKK + _ dTypeTT + _ dMainFrameSH + _ dThermostats + _ dSepAuxBoxes + _ dRotation + _ dAPI + _ dMCI + _ dFlanges + _ dIP55 + _ dCPLG + _ dPumpBrkt + _ dINPRO + _ dOilMist + _ dPipeExtensions + _ dCLO + _ dFloodLube + _ dwFlanges + _ dwSightFlow + _ dSumpHeater + _ dGemsPak + _ dSideDucts + _ dVAD + _ dLNFH + _ dShimPack + _ dAdapter + _ dBreather + _ dServitPost + _ dSolePlate + _ dDimensions + _ dGNDBrush + _ dGNDPads + _ dGNDStrap + _ dProbes + _ dKeyphasor + _ dTransmitter + _ dTachometer + _ dDialTherm + _ dDPS + _ dAccelerometer + _ dVelometer + _ dOptionNotes + _ dAdditionalNotes + _ dNoiseLevel + _ dLeads + _ dShaft + _ dSO + _ dLI + _ dCustomerThat's… a lot. It's basically throwing every field into a single string, separated by "_". Which you know that means the other side, whatever it may be, has to unpack them with a split. If you don't know what serialization is, I suppose it makes sense.
I also see a lot of what looks like Hungarian notation, but every field starts with d or dw, and I doubt that dCustomer, dLocation, and dGNDStrap are all the same type as dNoiseLevel. In fact, this may be the worst use of Hungarian I've ever seen- at best Hungarian symbols are more noise than signal, but this one is just pure static. Even if they're describing the purpose of these fields ("d for data member"?), it's basically repetitive and pointless.
[Advertisement] Otter - Provision your servers automatically without ever needing to log-in to a command prompt. Get started today!Wallet Recovery Firms Buzz as Locked-out Crypto Investors Panic in Bitcoin Boom
Read more of this story at Slashdot.
MIT Students Stole $25 Million In Seconds By Exploiting ETH Blockchain Bug, DOJ Says
Read more of this story at Slashdot.
Bay Area City Orders Scientists To Stop Controversial Cloud Brightening Experiment
Read more of this story at Slashdot.
Netflix To Take On Google and Amazon By Building Its Own Ad Server
Read more of this story at Slashdot.
US Regulators Approve Rule That Could Speed Renewables
Read more of this story at Slashdot.
UK Police Could Get Ghostbusters-style Backpack Devices To Halt Ebike Getaways
Read more of this story at Slashdot.
Arizona Accuses Amazon of Unfair, Deceptive Business Practices
Read more of this story at Slashdot.
Quantum Internet Draws Near Thanks To Entangled Memory Breakthroughs
Read more of this story at Slashdot.