Macron's armada: French carrier group steams towards Iran war as Britain dithers and the Royal Navy withers before our eyes
CodeSOD: All Docked Up
Aankhen has a peer who loves writing Python scripts to automate repetitive tasks. We'll call this person Ernest.
Ernest was pretty proud of some helpers he wrote to help him manage his Docker containers. For example, when he wanted to stop and remove all his running Docker containers, he wrote this script:
#!/usr/bin/env python import subprocess subprocess.run("docker kill $(docker ps -q)", shell=True) subprocess.run("docker rm $(docker ps -a -q)", shell=True)He aliased this script to docker-stop, so that with one command he could… run two.
"Ernest," Aankhen asked, "couldn't this just be a bash script?"
"I don't really know bash," Ernest replied. "If I just do it in bash, if the first command fails, the second command doesn't run."
Aankhen pointed out that you could make bash not do that, but Ernest replied: "Yeah, but I always forget to. This way, it handles errors!"
"It explicitly doesn't handle errors," Aankhen said.
"Exactly! I don't need to know when there are no containers to kill or remove."
"Okay, but why not use the Docker library for Python?"
"What, and make the software more complicated? This has no dependencies!"
Aankhen was left with a sinking feeling: Ernest was either the worst developer he was working with, or one of the best.
Drone strike rocks major US diplomatic facility in Baghdad as Iraqi militias enter the fray in widening war with Iran: Live updates
The tiny Essex railway station with great links to London that hardly anyone ever uses
Iran launches unhinged attack on Australia accusing it of taking soccer team HOSTAGE - and comparing it to bombing of school where 160 girls were killed
Historian Alice Loxton reveals the one thing Hamnet gets VERY wrong about Elizabethan England
Oracle says AI coding tools are helping it dodge the SaaSpocalypse
Oracle says AI code generation tools have become so efficient, and it is so good at using them, that it will dodge the SaaSpocalypse and watch smaller rivals suffer.…
Australia's safe house for Iranian defectors is COMPROMISED - as one of the women suddenly changes her mind and calls for help
Gym chain submits plans for 24‑hour site in former Braintree showroom
Senior Essex nurse struck off after stealing fentanyl and taking drugs at work
New GP branch set to open with first appointments in April
Rihanna's alleged home shooter could face life in prison as she's charged with attempted murder
British tourist, 60, is arrested in Dubai after 'filming footage of Iranian missiles'
Treasure hunter is RELEASED from prison after refusing to share location of 500 gold coins
The Morning Poll: Would you be happy to carry a digital ID card?
LAURA CRAIK: Zendaya's in bridal white... and has the ring to match
Drunk mom allegedly left crying daughter at bar to party at Universal resort nightclub
After Outages, Amazon To Make Senior Engineers Sign Off On AI-Assisted Changes
Read more of this story at Slashdot.