Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
80% Positive
Analyzed from 441 words in the discussion.
Trending Topics
#git#pathspec#options#rev#cases#long#something#poorly#cmd#revspec
Discussion Sentiment
Analyzed from 441 words in the discussion.
Trending Topics
Discussion (17 Comments)Read Original on HackerNews
Remembering app-specific one-offs is kind of the worst!
https://stevelosh.com/blog/2013/04/git-koans/
I wonder: would it not be better to tell users with those edge cases to fix their problems some other way? To take an example from the article: why does someone have a filename beginning with a dash? Maybe don't do that.
I also chafe whenever I run into artificial restrictions on things like characters in names of things, because there's no good reason for them besides the laziness of developers or the limitations and inertia of existing systems that might be used under the hood, like DNS for instance.
Argh, that's when I wished for object oriented shells. Powershell sure isn't perfect but objects encoding their own meaning really helps differentiate those cases (but it may not always help the user if types aren't clear to the reader)
I agree that rust and haskell are not your typical OO (or not OO at all in a traditional sense) I guess my poorly worded claim was less focused on the OO nature of psh than on the typization (which both of these also do) - if you knew what type $rev and $path are, it's easier to distinguish intent, whether objects or not.
By the way, something munched the article title. An emdash is incorrect command-line usage. It’s supposed to be a double hyphen.