4 ms·
An IDE will never help you develop "Clean, Professional, Maintainable, [and] Quality" code if you're not interested in writing it in the first place. And if you
by falcolas 12y ago
An IDE will never help you develop "Clean, Professional, Maintainable, [and] Quality" code if you're not interested in writing it in the first place. And if you're interested in writing good code in the first place, an IDE is hardly a requirement.
Frankly, as a developer who has tried a number of IDE's and text editors, I'm not sold on the idea that your choice of editing environment has any correlation to any of those titular descriptors in the first place.
- paukiatwee 12y agoHowever, I think great IDE will help OTHER people to maintenance and refactor code to clean, professional, and maintainable one. I always use IDE to refactor code, as other developers might not writing clean code, even myself.
- deleted 12y ago[deleted]
- AlisdairO 12y agoCertainly in eclipse it's possible to specify formatting rules. You can also use the checkstyle plugin to enforce correct formatting.
- oblio 12y agoAlmost all good IDEs allow that. All IntelliJ ones do that. They can even share the code formatting rules and they can be committed to version control so that your whole team uses the same rules.
- waps 12y agoActually this is quite easily possible. They have lots of settings for it. But in python, for the love of God, PEP8. This standard is built in to pycharm. But there's no substitute for an autopep8 [1] commit script. (Preferably make it a check, not a direct reformat) [1] https://pypi.python.org/pypi/autopep8 https://pypi.python.org/pypi/autopep8
- prawks 12y ago"Senior Code Janitor" would be a fun title to hold.
- waps 12y agoNor will python. Python is dynamically typed. It may not be impossible to write big functioning python apps, but it's damn hard. And specifically, it's a lot harder than doing it in java or C++. I've seen C++ codebases that exceed 8 million lines of code and held together (not without friction, that I guarantee). I've seen java codebases with about half that that held together a lot better than the C++ ones. Even accounting for the fact that python easily lets you achieve 5 times as much in the same amount of lines (at the cost, imho, of more surprises when wrong types get passed to your functions). I'm not sure "normal python" is more than a little bit more succint than (good) C++ though. Easier to read, sure, if you're allowed to make assumptions about types. But not that much shorter. I've yet to see the first million line python codebase. And python has certainly had sufficient time to develop such codebases. Why aren't they here already ? Those C++ codebases were almost operating systems though (with extremely tricky threading support libraries, every project it's own of course), something you fundamentally can't do in python. The java codebases were financial stuff though, something that could easily be done in python, and they certainly have the money to absorb the increased hardware cost, and looking to have faster development turnaround. That's another discussion I can guarantee you will have with your boss if your app really grows, the hardware cost. When it comes right down to it, a programmer is worth (rule of thumb) about 15 servers. If python means one less programmer, but 50 extra servers, you will lose that discussion with your boss. Dynamic typing is certainly a massive advantage for small codebases. It becomes more and more of a disaster on larger ones though. So an IDE for python ... it merely lets you lose the battle with your code that much faster.
- markbnj 12y agoWell, yes, I agree. I don't know what the largest python code bases are, but I would not expect them to get to the size of some of the really big systems written in strongly-typed system-level programming languages like C or C++. However, I would also suggest that the need for huge code bases like that is diminishing. Much of what we build now consists of smaller bodies of code, sitting at the end of a service pipeline, or collaborating in a distributed system. Python works very well in scenarios such as implementing API endpoints which are really glue between layers anyway. And it's certainly been shown that significant applications can be written in it. But if you're facing something that is Department of Defense-sized, maybe it's not the right choice.
- collyw 12y agoI was thinking exactly the same thing reading the headline. Good design will give you a lot cleaner professional maintainable code. I do databases, but I like Linus's quite about getting the data structures right, and not needing to worry about the code. I find if the application level is getting too complex, it probably means the database design isn't matching the problem correctly. Others on my team would keep adding "if" statements to the forming ball of mud. (Usually) I find it easier to take the pain of a schema migration up front. The code then becomes simpler, more reliable, and I can usually forget about it. As for the text editor comment. In general no, but I know a lot of poor programmers who are too lazy to set up / learn an IDE (or any other way of using a step through debugger).