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.
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.…