3 ms·
Absolutely not. It's terrible. Some more reasons to hate it: 1. It can throw a message box or prompt on the screen without any notice. Precisely how this is ha
by csmuk 13y ago
Absolutely not. It's terrible. Some more reasons to hate it:
1. It can throw a message box or prompt on the screen without any notice. Precisely how this is handled from a scheduled task is "interesting".
2. If you're non US locale, you get different date formats pop out of get-date, gci and CLR DateTime. This at some points in time scares the living fuck out of me as an implicit cast to string can swap day/month around.
3. Changes every year or two. Features features features. Gotta learn them all. Pokemon time.
4. Module system is a piece of shit.
5. Signing is so friction inducing that everyone just turns it off to get shit done.
you compare to bash here. Bash doesn't do much at all. This is the point. It leverages other tools to do the work. In your example you mention regex for parsing dates. This is a bad approach. "date +%s" returns sortable integers which you should work with.
PowerShell is Word. LaTeX is a felt tip. Bash is a fountain pen and a steady hand.
- nailer 13y agoTotally agreed re: module system and interactivity. As I mentioned, it's only in terms of syntax I think Powershell is excellent. > "date +%s" returns sortable integers which you should work with. Date returns text, not integers. Your shell doesn't understand that there are not more than 60 seconds in a minute. You might argue that people shouldn't use a shell to parse dates, and pass the text onto a proper tool to read it. That doesn't change the fact that Unix admins, like Perl developers, try and do this all the time. Maybe the best thing about posh it stops people from doing stupid things. The LaTeX/Word analogy was simple: powershell separates content from presentation. bash does not.