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

Yea, I kind of agree with some of this. My coworkers are big fans of Perl Critic because it enforces a standard (and I assume one that promotes cleaner Perl). But it often seem to me that the popularity for Critic is somewhat of a language failing.

I guess the argument could be main that it allows you to write hacky little scripts which could can then apply Critic too and slowly refactor into large projects. I'm not entirely sure I buy it.



the popularity for Critic is somewhat of a language failing

By this argument, Javascript (JSLint), C# (StyleCop), C (lint), Python (Pychecker and Pylint) all have failings.


No, whereas pylint promotes a good style, same space between function definitions, etc. this is something that is heavily missing in perl. Python also doesn't have (or actually it's almost never used) global variables and goto and all that crap that people still use in perl code. On of the first things i do when having to work on others perl code is to run Critic and first fix the myriad of warnings that come up. With Pylint it's typically just some minor stuff. With Critic it's typically some major stuff that's plainly wrong.




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

Search: