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

> “All variables must be declared my or our. That you would even consider doing otherwise reveals what a despicable coder you are.”

> This was stupid advice, but it was common. Perl’s defaults were as much a part of the language as regular expressions and were just as useful. I’d written dozens of scripts that relied, for example, on variables springing to life when first referenced, and they’d all been working perfectly for years. It’s not hackwork to take advantage of a language’s documented features.

The point here is not it will break the script but maintaining the script becomes a nightmare. that's why it's a bad practice. Clarity should always be favored over magic in programming.



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

Search: