Live data from Hacker News

How bad is the Windows command line really?

blog.nullspace.io

11–20 of 110 posts

Re: How bad is the Windows command line really?

#11
post #6

Earlier quoted context omitted.

Noticeably faster than average on desktop. There's no silver bullet.

Setting a max-width on the body text would make this incredibly more readable on narrower viewports. At 636kb and 48 requests, this page probably isn't as "minimal" as you think it is. For example, should there be any reason you can read the disqus comments at a reasonable size but not the body of the post?

[deleted]

Re: How bad is the Windows command line really?

#12
post #6

Earlier quoted context omitted.

Noticeably faster than average on desktop. There's no silver bullet.

Setting a max-width on the body text would make this incredibly more readable on narrower viewports. At 636kb and 48 requests, this page probably isn't as "minimal" as you think it is. For example, should there be any reason you can read the disqus comments at a reasonable size but not the body of the post?

I tried it on mobile. It still loaded fast. As with many pages, Firefox Reader Mode improved the experience. Though for me, the bulk of the improvement comes from text formatting, part of the improvement is hiding blog comments, ads, email signups, etc.

Anyway, my experience is that touching Firefox's reader-mode icon in the address bar is usually faster than a boatload of formatting logic; produces more readability than a website's general optimization, and bypasses all the ancillary crap that people concerned enough to optimize for mobile tend to add.

Re: How bad is the Windows command line really?

#13
Powershell is garbage. .Net does utf8 by default but powershell, built on .Net, manages not to.

Try type utf8Encoded.txt > out.txt in cmd.exe and posh. Cmd works and posh fs it up.

And after you do figure out utf8 encoding in posh, it'll always add a BOM just to screw you

Re: How bad is the Windows command line really?

#14

I get perverse joy out of using the Windows CMD.EXE shell (and the earlier COMMAND.COM from MS-DOS). Yes, it's tremendously crufty, idiosyncratic, and sometimes seems down-right illogical in its behavior. Arguably, just about anything else is better, but it holds a special place in my heart.

I was recently reading about OS/8, which happened because I have become interested in SIMH, and I was surprised to see how similar some of its commands are to those from DOS (which in turn copied CP/M). It was interesting to see the ASSIGN command on another OS.

https://en.wikipedia.org/wiki/OS/8

Re: How bad is the Windows command line really?

#15
Agree about Windows command prompt being lame compared to bash, but I really find PowerShell amazing, even more so then bash. If you look at all the recent (even not so recent) products from MS, it is clear that PowerShell is the shell for Windows, and not batch. I didn't get the cure for polio analogy that's in the article but I really think anyone that's comparing shells should compare with PowerShell.

Re: How bad is the Windows command line really?

#17
post #13

Powershell is garbage. .Net does utf8 by default but powershell, built on .Net, manages not to. Try type utf8Encoded.txt > out.txt in cmd.exe and posh. Cmd works and posh fs it up. And after you do figure out utf8 encoding in posh, it'll always add a BOM just to screw you

This has frustrated me to no end. I've given into using WriteAllLines as a work-around.

[IO.File]::WriteAllLines($filename, $content)

(from https://stackoverflow.com/questions/5596982/using-powershell...)

Re: How bad is the Windows command line really?

#18

Earlier quoted context omitted.

Setting a max-width on the body text would make this incredibly more readable on narrower viewports. At 636kb and 48 requests, this page probably isn't as "minimal" as you think it is. For example, should there be any reason you can read the disqus comments at a reasonable size but not the body of the post?

I tried it on mobile. It still loaded fast. As with many pages, Firefox Reader Mode improved the experience. Though for me, the bulk of the improvement comes from text formatting, part of the improvement is hiding blog comments, ads, email signups, etc. Anyway, my experience is that touching Firefox's reader-mode icon in the address bar is usually faster than a boatload of formatting logic; produces more readability…

Fast-schmast, I do not care, cannot read anything at all (chrome on android).

Re: How bad is the Windows command line really?

#19
This isn't completely related to Windows command line but I thought I would post it out here.

I was trying to run a Bash script from a Git repo mounted in a Docker container. When running the Bash script, I kept getting all kinds of errors. I ran the exact same script in the same Docker container on a different Linux computer that had cloned the repo. It turns out the \r Windows line endings (which I later normalized in Git settings) caused my script to barf.

Re: How bad is the Windows command line really?

#20

This isn't completely related to Windows command line but I thought I would post it out here. I was trying to run a Bash script from a Git repo mounted in a Docker container. When running the Bash script, I kept getting all kinds of errors. I ran the exact same script in the same Docker container on a different Linux computer that had cloned the repo. It turns out the \r Windows line endings (which I later normalized…

You can also normalize them using the dos2unix package, which is available on most distros.
Post reply on HN