Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interestingly PowerShell is petty awesome in that regard. You pass around objects instead of trying to parse strings and things.


I don't think that's what the parent was complaining about, it was more about handling signals correctly. It's incredibly easy to write buggy signal handlers on a Linux system. The "self-pipe" trick[1], and later, signalfd(2) have made signal handling much easier, but a lot of programs still do it the old way.

[1]: http://cr.yp.to/docs/selfpipe.html [2]: http://man7.org/linux/man-pages/man2/signalfd.2.html


PowerShell is not Windows API, win32 is. So your comment makes little sense.


Powershell is just that, a shell. I agree that Powershell itself is pleasant enough to use but that's not what's being discussed.


> You pass around objects instead of trying to parse strings and things.

That can't be very good for debuggability.


Type checking and calling help methods can be useful for debuggability! If you want to figure out what you're looking at in string format, call its .ToString method.


Adding extra complexity just means more to go wrong. Plain text can't really go wrong because anything can use it, anything can edit it, anything can show it. With "objects" I'm betting that Powershell itself never fails.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: