Live data from Hacker News

Why Write Python in Visual Studio?

blogs.msdn.com

71–80 of 115 posts

Re: Why Write Python in Visual Studio?

#71
post #53

Earlier quoted context omitted.

JetBrains released a free community version: https://www.jetbrains.com/pycharm/download/

They also provide a free 1 year educational license for all of their products to students.

As well as discounts if you're a student. IIRC I paid like 25$/year when I was still a student. Easy money to pay with such an awesome product!

Re: Why Write Python in Visual Studio?

#72
post #27

Earlier quoted context omitted.

Because it's Windows-only still...

It's actually not: https://www.visualstudio.com/en-us/products/code-vs.aspx

VS Code is much closer to sublime/textmate/atom than it is full Visual Studio... It's actually kind of nice to work with, but is emphatically NOT VS.

Re: Why Write Python in Visual Studio?

#73
post #27

Earlier quoted context omitted.

Because it's Windows-only still...

It's actually not: https://www.visualstudio.com/en-us/products/code-vs.aspx

Visual Studio Code support for Python is limited to syntax highlighting and bracket matching. So in the context of the article developers are actually limited to Windows only.

Re: Why Write Python in Visual Studio?

#74
post #27

Earlier quoted context omitted.

Because it's Windows-only still...

It's actually not: https://www.visualstudio.com/en-us/products/code-vs.aspx

That's not remotely like Visual Studio, it's much nearer Atom + some Microsoft Language Support.

Re: Why Write Python in Visual Studio?

#75
post #28

Earlier quoted context omitted.

I work in Visual Studio exclusively for my day job the last 8 years so my experience is pretty limited. But every time I try out other languages and IDEs on my own time, I'm almost shocked at how hard the tools are to work with compared with Visual Studio. VS has excellent intellisense. Compile and runtime errors are clearly pointed out, usually with helpful error messages. And real-time debugging and being able to s…

Creating a Java console app is not really the same as creating a non-portable, Windows only console app. Of course VS does Windows integration better, that's kind of the point :)

In VS, you create a new console solution (Or web) in your language of choice... a hello world template is created... click the run/debug button, it compiles and runs.

That has emphatically not been my experience with Eclipse at all... I've had to participate on a number of Java solutions over the years, but it always felt like a hair pulling experience. For that matter, I'm often frustrated with VS after spending most of my time the past 4-5 years in node... full text editor, and two console windows open (plus browser(s)). After a while, it feels like the low tech option is easier.

There are things I miss when I play with VS... but when I use VS for JS editing, I find I'm fighting with formatting options that reformat my text, and other developers with the defaults that don't care. That said, I do like VS more than every other IDE I've used... WebStorm is really nice for node, but I haven't tried the latest NTVS seriously.

Re: Why Write Python in Visual Studio?

#76

Earlier quoted context omitted.

Of course it does, but that's not exactly the same thing, now is it?

why not? with parallels or a similar transparent solution why would you care? Heck most modern solutions even setup all the environment variables and paths so you barely even notice that you are on a different file system when you using them.

Honestly, it's kind of annoying... firing up a Windows VM cuts my battery life significantly. Ubuntu behaves itself. That's just the start...

I do a lot of .Net development, and more JS/Node development... I don't miss VS or windows most of the time.

Re: Why Write Python in Visual Studio?

#77
post #3

I'm a .NET developer so to me this is a slam dunk. How does the Python crowd feel though? I'd guess the majority tend to be Microsoft-adverse. Why wouldn't you use VS when it seems to be so ahead of the competition?

I don't agree that VS is ahead of the competition. In my view the best IDEs in the Python space are PyCharm and WingIDE, and they've both been doing excellent auto-complete, debugging, refactoring, etc. for years.

That said, I'll probably try it out.

Re: Why Write Python in Visual Studio?

#78
post #5

I write Python professionally, and it will be pretty hard to get me away from PyCharm. I don't see anything in the blog post that indicates a feature PyCharm doesn't already have.

I was pretty impressed by the mixed native/python debugging capabilities in PTVS (https://github.com/Microsoft/PTVS/wiki/Mixed-Mode-Debugging). It's really handy to be able to just step into native code and back seamlessly if you project has native components. Not sure if PyCharm offers something comparable.

Re: Why Write Python in Visual Studio?

#80
post #67
post #65

Earlier quoted context omitted.

I just tried this example, since anaconda-mode + company (which uses jedi) has been really good for me, it doesn't show variable1 for me. http://imgur.com/4l6Otvt I used to use the auto-complete package instead, which in some configs (with ac-source-words-in-buffer or ac-source-words-in-same-mode-buffers in the source list) basically tokenize the buffer and provide autocomplete on all words.

Thank you, I gonna check my settings. This bad autocomplete thing has been a mild annoyance for a while.

Yea, the switch from auto-complete to company mode was annoying to get done right, but was well worth it in terms of accuracy. It also provides function signatures which my old setup didn't. I also switched to using virtualenv mode as well.

I can probably try and dig up the relevant part of my config, but since I'm using prelude as a base now it mostly just works with only a few lines of tweaking in my personal.el -- mostly just virtualenv locations and enabling virtualenv mode with a hook.

Post reply on HN