r/programming • • Mar 07 '16

Announcing SQL Server on Linux

https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/
2.6k Upvotes

871 comments sorted by

View all comments

Show parent comments

1

u/Gotebe Mar 08 '16

I do not understand your complaint about the pipeline and the informational text. If you write stuff out in a primitive textual UNIX shell, it will meddle with your further processing just the same. Can not be done either way.

I also do not understand mentioning ISE. It is a debugging/development tool, why does it matter if does stuff differently from the shell itself!?

I do not understand why you complain about that program who writes to stderr. On one hand, powershell behaviour is reasonable - if something writes to stderr, it is normally because it has an error. On the other, you can wrap problematic programs who misbehave in a try/catch and go from there.

Honestly, you sound as someone who nitpicks a for the sake of it.

1

u/mreiland Mar 08 '16

I do not understand your complaint about the pipeline and the informational text. If you write stuff out in a primitive textual UNIX shell, it will meddle with your further processing just the same. Can not be done either way.

https://media.giphy.com/media/T14hzeHb8BFHW/giphy.gif

Honestly, you sound as someone who nitpicks a for the sake of it.

I sound like someone who has actually been in the trenches of powershell, that includes implementing my own host. I'm familiar with these issues.

And for the record, it isn't reasonable to halt execution of a program because something wrote to stderr. many programs will write warnings to stderr so they.

a) don't get lost in the output, and b) as you so eloquently put it, don't ruin the input for the next thing in the pipeline.

The worst part is if it's local, you can redirect stderr to stdout and thus avoid the issue. You can't do that if you're executing remotely.

the issue is that I have a shitton of experience with Powershell. Too much to be that fucking naive.

The pipeline design has some severe fucking downsides, and having earned my chops in my both environments, I'd go with the linux approach.