Re:Ask HN: How do you handle large Python projects?
by olau on Saturday May 28, 2016 @05:32PM
(#11793635)
There are in fact some refactoring tools available for Python, but yeah, personally I have ag (find + grep like tool) installed with the ag and wgrep-ag Emacs packages, and don't consider renaming a major hassle. There's a pyflake integration thing for Emacs too, where it underlines errors.
One benefit of grep is that it lets me spot things in different languages (Python, Javascript, HTML, CSS, documentation).
Re:Ask HN: How do you handle large Python projects?
by afarrell on Sunday May 29, 2016 @01:34AM
(#11794964)
> have to grep
Have you tried out the Silver Searcher? http://geoff.greer.fm/2011/12/27/the-silver-searcher-better-...
Re:Ask HN: How do you handle large Python projects?
by StavrosK on Sunday May 29, 2016 @05:36AM
(#11795699)
Yes, it's all I use, but still, we have foreign keys on various models to the user, predictably called "user", so removing or renaming one of them is hell, and the grep tool can't tell you which lines are the one you care about with certainty...
Vim-jedi is pretty good, but not perfect either, unfortunately...
I'd probably agree, but I would love to have more mature static typing, and especially an accurate "find all usages" function. Refactoring has been major hell because you pretty much have to grep for names if you want to find all usages of a variable (or, more specifically and problematically, a model property in Django).