7 ms·
Write Clean, Professional, Maintainable, Quality Code in Python
- chhantyal 12y agoI have been using PyCharm for few months after using Sublime Text 2 for years. It is very well engineered tool and has greatly improved my code quality. Just came to know 'Python code compatibility checks' option. Will definitely be helpful as I am starting to write Python 2/3 compatible code.
- ericcholis 12y agoI too am a convert from ST to PyCharm and PHPStorm. Although, I'm still using ST for editing javascript. I need to break that habit.
- bjohnso5 12y agoWebStorm is a solid javascript IDE, I recommend giving the trial a shot.
- SloopJon 12y agoPHPStorm is essentially a superset of WebStorm.
- filippovd20 12y agoPyCharm is a superset of WebStorm as well
- neokya 12y agoDetailed review of PyCharm - Review of PyCharm 3 from a Vim User’s Perspective http://andrewbrookins.com/tech/one-year-later-an-epic-review-of-pycharm-2-7-from-a-vim-users-perspective/ http://andrewbrookins.com/tech/one-year-later-an-epic-review...
- Killah911 12y agoPyCharm was the reason I started coding in Python. I know it sounds weird, but I was a visual studio addict & going to sublime text or a plain text editor just didn't compare. I wish they had a "startup" package so even boots trappers can get started right.
- kunstmord 12y agoWell, there's the 'Community Edition'. Unless you're heavily into WebDev, it's great.
- mseebach 12y ago> I wish they had a "startup" package so even boots trappers can get started right. You could also stay at your day job for a day or two longer and save up for the $99 personal edition.
- Killah911 12y agoWe have 8 people. That's $800 for license. Which by no means is crazy, but using atlassian products we're a little spoiled. You are right though. It would be very short sighted to say that's not worth the money. Wishful thinking: We'd be willing to pay a higher price in the future since that would mean more pizza money for us now In another startup that I was a part of, we were more than happy to pay the significantly higher price for Atlassian products once we grew past the 10 people limit.
- vially 12y agoThey actually do. It says "50% OFF for startups" on the pricing page: http://www.jetbrains.com/pycharm/buy/ http://www.jetbrains.com/pycharm/buy/ More details here: https://www.jetbrains.com/estore/startup/ https://www.jetbrains.com/estore/startup/
- Killah911 12y agoSweet! Thank you! If you're ever in Melbourne, FL, you can swing by & partake in he extra pizza you just helped us buy!
- buster 12y agoYes, PyCharm is miles ahead of other IDEs or text editors, love it. I wish they had another big sale so i could afford the latest pycharm again.. :(
- sigzero 12y agoMe too!
- turnip1979 12y agoYou know about the free community edition, right?
- meepmorp 12y agoOr you could throw them a few dollars to maintain a product you like.
- buster 12y agoUnfortunately the community edition can't do a lot of nice stuff i care about like remote debug/run, remote interpreters, vagrant integration and some other nice things that make the difference between ST3 and pycharm for me. Without those i can stick with ST3 and python plugins.
- farresito 12y agovim+python-mode is more than enough for my needs.
- chojeen 12y agoSame here. It seems like a really solid IDE, but I like a more lightweight development environment, and there's always that one vim command that vim emulator plugins miss. However, I've recommended PyCharm to several of my coworkers who use IntelliJ for Java development, and they love it.
- falcolas 12y agoAn 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
- rpmartz 12y agoFWIW, if you're a developer who uses IntelliJ's flagship IDEA Ultimate IDE, you can get the Python plugin and get nearly all the functionality of PyCharm. Same goes for most of their other products (WebStorm, PHPStorm, etc.). Fabulous products for those of an IDE-inclination.
- gdulli 12y agoMy concern about PyCharm is that it's becoming the Microsoft Office of IDEs. I feel like there's more and more bullet points per release that are more marketing-oriented than widely useful. While my needs remain simple. Maybe everyone needs only 2% of the feature set, and a different 2%, but we all have to pay for the bloat anyway. I keep repeating a cycle where I try an IDE because it sounds interesting, but a few weeks later I find I'm spending a lot of time doing things like arranging tool windows, dismissing alerts, trying to figure out how to turn off or customize features. So I always go back to a simpler text editor that I've been using for 15+ years and does everything I need very well without the sluggishness of a feature-rich IDE. For example, every time I open a PyCharm project I get an alert I need to dismiss that managing files will be slow because they're on a network drive. Technically it's a network drive but it's really mounted from a VM on my local machine, so no, it's not slow, and if it was I wouldn't need Clippy telling me so. There may or may not be a way to turn off this alert, but I shouldn't have to hunt for these things so often. I want to use PyCharm but keep getting annoyed with it.
- mseebach 12y agoIf your text editor works better than PyCharm, then by all means use that instead. However, the article is actually trying to make some point about what an IDE can do that text editors can't so perhaps you'd want to respond to that? > Maybe everyone needs only 2% of the feature set, and a different 2%, but we all have to pay for the bloat anyway. This is not a useful mental model for thinking about software. First, big doesn't equal bloated, and one thing my IntelliJ IDEA fanboy colleagues highlight is just how sleek, light weight and fast it is, especially compared with Eclipse (we're in Java land). Second, if everybody only uses 2% of the package, then basic price theory tells us that everybody is only paying for those 2%. (I think, in reality, the number is significantly higher, although I agree that probably nobody uses 100% of the features).
- xtrumanx 12y agoI think the OP has a point. I bought WebStorm (the javascript equivalent of PyCharm) last year and loved it. A couple of updates ago, it started exhibiting a strange behavior where the editor will hang for a few seconds while it loads up the intellisense which is annoying since I don't use intellisense all that much. Jetbrains' products are not immune from bloat.
- grandinj 12y agoHow do people find PyCharm these days? My brother uses it daily but finds it to be a major memory hog (1G+ of RAM on startup)
- filippovd20 12y agoIt's getting better with each release. First startup consumes a lot of memory, because PyCharm does a lot of indexing
- msluyter 12y agoThe compelling use case for me was that I was already used to the Intellij key bindings, which tend to (mostly) remain constant across JetBrains products. It does use a fair amount of RAM, but these days 8GB seems fairly standard and seems to be plenty most of the time. I currently have PyCharm open and it's using 427MB.
- mckoss 12y agoMy biggest problem with the JetBrains IDE is that it scatters file turds through your project; making it a pain for developers to use source control without generating random conflicts. An IDE's files have no reason to be version controlled in every project (nor should a project require every developer to use the same IDE). If they had a sane way to keep IDE files in a single top level project directory, I would be much happier.
- chojeen 12y agoI find that this typically isn't a problem when you instruct git to ignore those files. Brilliant way of describing the IDE metadata files, BTW. I got a nice chuckle from that.
- Walkman 12y agoI have no idea what you are talking about. PyCharm stores every setting in a directory called ".idea"
- ericcholis 12y agoI've certainly seen the IDE turd files you mentioned, but I'm pretty sure they all live in .idea. Github has a nice .gitignore build for these (and other common ignores): https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore https://github.com/github/gitignore/blob/master/Global/JetBr...
- infecto 12y agoAll of the IDE files are in fact in the .idea folder. gitignore .idea/ and you should have no trouble. What other type of files are you finding scattered in the project?
- Siecje 12y agoIn PyCharm can you set the indentation size (# of spaces per tab) per file type? I would like 2 spaces for JavaScript and HTML but 4 for Python.
- dyadic 12y agoYes Or, it's certainly possible to have custom formatting rules in IntelliJ and AppCode and I assume that PyCharm is the same.
- vially 12y agoYes, you can. They can be set from: File->Settings->[Project Settings] Code style. You'll then be able to set the indentation level for each filetype separately.
- Siecje 12y agoThanks, I always use the Help -> Find Action to get to settings. I never thought to look under File.
- nl 12y agoNow if only they would do a Go-lang IDE with the "extract method" refactoring. I do mostly Java, and wow I never realized how much I'd miss that until it was gone!
- ColinCera 12y agoThe linked article is really nothing more than an advertisement for PyCharm. Is it acceptable now for companies to just post links to advertisements for their products on Hacker News? I'm a fan of JetBrains and I own PyCharm and WebStorm, but I don't want this to become a trend...
- benblu 12y agoIf this advertisement convinced you to try a Python IDE, consider giving PyDev/LiClipse a try. It's free and open.
- collyw 12y agoI have been a long time Eclipse / Aptana user. I gave the community edition for Pycharm a try, but it lacked a number of features. Plus I have used Eclipse for long enough that I have a fair idea what to when it screws itself up.
- marcosdumay 12y agoI've been trying PyCharm for a few days. It doesn't do anything that emacs can't do (maybe refactoring, but that's on the list ahead), but it's easier to setup. If it's really a memory hog like people are saying, I didn't notice, and didn't look, and didn't care, my computer has enough memory. Maybe it gets better with practice, so I'll keep trying a bit more, but currently, count me as unimpressed: 1 - About code inspection. Well, I fully understand that inspecting Python code is hard, and any tool will have either false positives, or false negatives. But PyCharm gets false positives to the extreme, it complains about not resolving Python standard functions (like open), and it can't find some libraries at my virtualenv. It's so full of false positives that I'm not sure I'll be able to keep reading them - I normaly can't stand code with warnings, but in PyCharm there is no other way. 2 - About formating. It fully enforces PEP8, the most completely enforcement I've seen on any tool (no I didn't try the emacs el for that). That's a good thing if there is an option to turn it off, what I don't know, because I didn't search for it yet. 3 - About refactoring. No, PyCharm, I don't want Django to change because I changed a function name in my code. Maybe there is a way to tell it not to touch some dirs, but the default settings makes PyCharm much less reliable and slower than grepping the old name and replacing it by hand. I'll try to find such setting when I get out of work today, but it's making the case of PyCharm being easier to setup way less appealing.