Too right. Drilling into the domain from first principles and with critical faculties enabled unlocks so much more value, because the engineer can then see much better ways to solve problems.
They can probably let South Park slide. Stewart’s remarks are cogent and cutting. Cut into 1-3 minute chunks they can be just the sound bites that will anger grumpy old trumpy.
They can’t be that stupid though. You know South Park is gonna South Park. Matt and Trey don’t let up. They’ve been ready to be cancelled for over 25 years now.
let process = Process()
process.executableURL = URL(fileURLWithPath: "/bin/ls")
let pipe = Pipe()
process.standardOutput = pipe
try! process.run()
process.waitUntilExit()
let data = pipe.fileHandleForReading.readDataToEndOfFile()
if let output = String(data: data, encoding: .utf8) {
print(output)
}
After:
let result = try await run(
.name("ls"),
arguments: ["-1"],
output: .string(limit: 1 << 20)
)
print(result.standardOutput ?? "")
From a companion article: "For instance, an F-35 contains more than 900 pounds of REEs, an Arleigh Burke–class DDG-51 destroyer requires approximately 5,200 pounds, and a Virginia-class submarine uses about 9,200 pounds."
reply