I’m writing a Haskell program. I am the only person who will ever use this and yet I’m spending 60% of my time wringing my hands about when I should be permitted to do IO.
When I make a command-line utility I tend to leave the extension off of the filename: “copy_xattrs” instead of “copy_xattrs.zsh”, for example. That gives me the option later to swap a shell script for a Python script (or a Python script for an executable, or whatever) without renaming the file. Ideally, this also means that I wouldn’t need to change any of the programs that call the utility.
Congressional Democrats have introduced a bill, H.R. 51, to make Washington, D.C. a state.
Subject to the provisions of this Act, upon issuance of the proclamation required by section 103(b), the State of Washington, Douglass Commonwealth is declared to be a State of the United States of America, and is declared admitted into the Union on an equal footing with the other States in all respects whatever.
Statehood is long overdue for Washington, and I don’t want the perfect to stand in the way of the good, but is it really a great idea for the new state to have “Washington” in its name? That’s going to make the Washington–Washington ambiguity even worse. The city is still going to be called Washington, right? Why not give the new state a new name?
It bums me out to see warnings like this in the Python documentation:
The full set of format codes supported varies across platforms, because Python calls the platform C library’s
strftime()function, and platform variations are common. To see the full set of format codes supported on your platform, consult the strftime(3) documentation.
One of the benefits of a cross-platform high-level language like Python should be that it insulates you from these kinds of vagaries. Unless a function comes from the
os module it should work the same whether it’s running on macOS, BSD, or a 5 MB Alpine Linux Docker container.
“I have this friend Jerry Zorthian, who is a crazy artist. We’d have these discussions about art and science. Jerry would say, you scientists destroy the beauty of Nature. You pick it apart and turn everything into equations!
“And I’d say that’s ridiculous! Scientific knowledge only adds to the excitement and mystery and the awesomeness of a flower. Someday science is going to figure out how art is done—and then you boys are going to be in big trouble!”
— The Richard Feynman character in Peter Parnell’s 2002 play QED
Roy Fielding’s knuckle tattoos say LOVEOAS and HATEOAS
This Christmas playlist on YouTube contains 25 songs and 139 key changes.
“So we can argue whether ‘guys’ is or isn’t gender neutral, but for an awful lot of both men and women, ‘people’ isn’t even gender neutral.” — Kate Gregory, “Thoughts about ‘guys’ ”
TIL: It’s possible for a single “git push” command to force-update some refs but not others. For example, “git push origin +develop master” is like a combination of “git push --force origin develop” and “git push origin master”. See the git-push docs.
As expected, Trump walked into the turkey pardoning and pardoned Saudi Arabia instead.
I know we’re not supposed to have a lot of exceptions to the First Amendment, but should people really be allowed to put “Flour” in the name of their gluten-free bakeries?
If anyone reading has a Lobsters account and wants to invite me, I’d greatly appreciate it!