The SIX ways to win a Bingo jackpot: Experts reveal winning strategies that could net you £100k!
CodeSOD: Stop Being So ####
Many a network admin has turned to the siren song of Perl to help them automate managing their networks. Frank's predecessor is no exception.
They also got a bit combative about people critiquing their Perl code:
# COMPLEX SUBNET MATH # Looking up a value in an array was faster than any mathematical solution. Yes, it's hard coded, but these values won't ever change anyway. Stop being so #### about it. $Subnets = @("0.0.0.0","128.0.0.0","192.0.0.0","224.0.0.0","240.0.0.0","248.0.0.0","252.0.0.0","254.0.0.0","255.0.0.0","255.128.0.0","255.192.0.0","255.224.0.0","255.240.0.0","255.248.0.0","255.252.0.0","255.254.0.0","255.255.0.0","255.255.128.0","255.255.192.0","255.255.224.0","255.255.240.0","255.255.248.0","255.255.252.0","255.255.254.0","255.255.255.0","255.255.255.128","255.255.255.192","255.255.255.224","255.255.255.240","255.255.255.248","255.255.255.252","255.255.255.254","255.255.255.255")I believe them when they say that the lookup array is faster, but it leaves me wondering: what are they doing where performance matters that much?
I don't actually think this ascends to the level of a WTF, but I do think the defensive comment is funny. Clearly, the original developer was having a time with people complaining about it.
Frank notes that while Perl has a reputation as a "write only language," this particular set of scripts was actually quite easy to read and maintain. So yes, I guess we should stop being so #### about it.
[Advertisement] Plan Your .NET 9 Migration with ConfidenceYour journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
Google's unloved plan to fix web permissions gathers support
Google has been testing a new way for websites to ask permission to access sensitive browser controls, such as the microphone and camera, despite longstanding opposition from Mozilla and Apple. Following recent refinements to the proposal, Mozilla now appears to be warming to the changes.…
Erin Patterson mushroom murder trial LIVE updates: Defence rubbishes claim Patterson 'wanted to kill' her estranged husband as 'absurd' - as murder trial enters its final days
Conor McGregor brutally floors partygoer with two punches after drinking until 6am at exclusive Ibiza club on same night he partied with Katie Price and Tottenham star at Wayne Lineker's venue
Fury over bid to expand Britain's biggest asylum seeker camp: 'Threatened' villagers living next to ex-RAF base fear arrival of hundreds more 'intimidating' young men to quiet Essex countryside
The homeowners being slapped with petty fines of up to £1,000 by jobsworth councils for leaving a SINGLE item of rubbish outside their properties
The Queen was the 'master of the understatement', according to royal expert INGRID SEWARD
Illegal migrants 'fuel the grooming gangs': Criminals exploiting small-boats crisis, say Tories amid calls to JAIL those who 'covered up' scandal
Sombre Aggie MacKenzie is seen for the first time since the death of co-star Kim Woodburn as she waits for a bus after branding CBB icon a 'tormented soul' following two-decade feud
Frasier star Kelsey Grammer, 70, to become dad for EIGHTH time with his fourth wife, 46
Japan set to join the re-usable rocket club after Honda sticks a landing
Japanese automotive giant Honda has successfully launched and landed a small rocket.…