4 ms·
It’s still widely inappropriate.
by kipari 9y ago
It’s still widely inappropriate.
- deleted 9y ago[deleted]
- Walkman 9y agoIt is showing confidence that the author know what he is talking about, because as you can see he ran the code and that part did not run.
- kzrdude 9y agojupyter notebooks are easy to share and run locally, so it's still inappropriate
- Walkman 9y agoif you run that code, it still won't run :D
- zbentley 9y agocurl | bash is easy to run locally too, and very few people actually read the code that runs to check for “rm -rf /“-type things. When executing untrusted code from the internet, either you read it or your fate is in the author’s hands. No exceptions, not even for beginners getting started in programming via jupyter notebooks.
- encoderer 9y agoPeople also run compiled code all day long. Curl | bash gets a lot of derision for being a bad practice. Unlike other applications that install themselves the one advantage of curling to bash is that its trivial to read the code.
- yeukhon 9y agoI agree with all the above, but I am more concerned with what's given out. Not a great idea for a tutorial IMO. You can make the point without having to actually using that command - just make it clear as a comment. If this were some other doomsday commands, you are screwed too. Just be nice to your readers.
- aib 9y agoWell, then let's go with the fact that a function called "never_called" is trying to delete all the files on the computer. At best it's a misnomer. And it is right that the fate is in the author's hands. It's those hands that we are trying to tame.