3 ms·
If reading from STDIN is something that's considered a "ceremony", I'm already concerned about the rest of the code. STDIN is one of the most common input meth
by akerl_ 10y ago
If reading from STDIN is something that's considered a "ceremony", I'm already concerned about the rest of the code.
STDIN is one of the most common input methods I use for most of the commands I interact with on a daily basis. It would be like discovering that somebody found "logging errors to STDERR" to be a "ceremony"
- deleted 10y ago[deleted]
- coredog64 10y agoThe days of Perl CGI are a distant memory. More than that, it is a distraction. I'd be happier with the use of a parameterized test framework that lets you get to the point much more quickly.
- peruvian 10y agoIn real life, I agree. But if I'm trying to solve an array sorting problem, why can't they just give me an array? LeetCode does it and it works fine. I get to focus on how to sort the array. The other commenter (natdempk) makes some good points though.
- jakobegger 10y agoIf you work with a modern framework, chances are high you'll never actually read from STDIN. For example, I have no idea how I'd read from standard input in ObjC or Swift.