DAILY MAIL COMMENT: The humiliation of our Armed Forces
QUENTIN LETTS: Why I now wish I was French! By the Mail sketch writer so instinctively patriotic that as a boy he had a print of British battleships on his bedroom wall...
Stovepipe jeans, jelly bags and woven leatherette co-ords: the new spring collection at M&S launches today. Here's what our Fashion Editor Hannah Skelley will be adding to her basket
Tube drivers to strike: Militant RMT union announces series of 24-hour walkouts in row over four-day weeks
Pro-Iran hate march is BANNED: Home Secretary bows to huge pressure and halts London rally by backers of Tehran's murderous, women-oppression regime
Pete Hegseth blew millions in Pentagon cash on lobsters, steak, grand piano, and handmade Japanese flute
Experts call for chronic cough to be added to fat jab warnings, after spike of new 'side effect' seen in GLP-1 patients
Lego boss hits out at plans for Danish wealth tax that left-wingers want in UK
Queen Camilla tells abuse survivors 'we stand with you' in thinly veiled reference to Epstein case
A13 crash traffic recap as 6-vehicle crash blocks road near Pitsea flyover causing long delays
Britain's top tourist attractions hit out at weather apps that are 'costing them millions' each year by putting off visitors with 'misleading' forecasts
AI has made the Command Line Interface more important and powerful than ever before
Opinion The command line interface is making a comeback because graphical user interfaces are a poor fit for autonomous agents, which could spell trouble for a lot of software – and software makers.…
Update as Pitsea homes evacuated after 'potentially explosive materials' found
And they're off (their heads!): Cheltenham punters enjoy boozy first day of races as pints flow in drunken start to the festival
A VERY Scottish nine-bed mansion is going under the hammer with a £695k guide price
A 1,300-Pound NASA Spacecraft To Re-Enter Earth's Atmosphere
Read more of this story at Slashdot.
Atlassian built a tool to migrate Jira users to the cloud and it made the move slower
Atlassian has admitted that the tools it developed to move Jira users into the cloud were actually slower than older code that did the same job, and that its efforts to speed things up also had speed problems.…
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.