Live data from Hacker News

Turning Sublime Text into a Lightweight Python IDE

cewing.github.io

91–100 of 154 posts

Re: Turning Sublime Text into a Lightweight Python IDE

#91
post #48

> The final requirement for a reasonable IDE experience is to be able to follow a debugging session in the file where the code exists. > There is no plugin for SublimeText that supports this. But there is a Python package you can install into the virtualenv for each of your projects that does it. This drives me batty whenever I see "turn XYZ into an IDE for (foo)." The author of this post at least lists debugger inte…

That's one thing I really miss in Vim when writing C++. I have reasonably good autocompletion with YouCompleteMe and good code indexing by a combination of exuberant-ctags and rtags, but no debugger integration. To me the editing gains outweigh the lack of GDB integration, since I only infrequently have to debug, but when I do I basically just open GDB in a separate terminal window and set it to "layout src". That said, I also get to use rr[1] from time to time and its productivity gains obliterate any downsides to having to type everything in the terminal, especially for debugging memory corruption. Just record your program until it crashes, then run it backwards with a breakpoint set on the corrupt memory address to see where it gets overwritten. Only downside is that it can't support shared memory.

[1] https://github.com/mozilla/rr

Re: Turning Sublime Text into a Lightweight Python IDE

#92
post #84

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

The appeal of Sublime is that you have more than 3 hours of battery life. All Electron applications are battery killers.

I don't get these comments. I use Atom on my Chromebook (via Ubuntu/Crouton) and the other day I did a 9-hour stint switching between atom (~80% of the time) and Firefox, from full charge. At the end of the 9 hours I still had 8% left in the battery. Perhaps you are doing something very different with electron apps than me, but for bog standard coding and doc writing, my battery lasts longer than I do!

Re: Turning Sublime Text into a Lightweight Python IDE

#93

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

>Sublime? None of that. So what's the appeal?

Sublime is not really an IDE imho. It's a very good text editor though, which has a lot of feature overlap with IDEs, but I wouldn't prefer to develop within Sublime.

There are diminishing returns for learning really obscure text manipulation features. It's always cool to see someone make it look easy with emacs on an i3-gaps desktop with anime wallpaper, but most of us can get by with learning some basic regex/replace, navigation commands, and editing commands. I'd rather be learning a different language than a text editor.

Re: Turning Sublime Text into a Lightweight Python IDE

#94

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

Exactly my thoughts. I'm using VS Code for Python and it's a complete pleasure. Integrated Git, IPython, scripting, everything is easily available. I do own Sublime and I haven't used it for a while.

Re: Turning Sublime Text into a Lightweight Python IDE

#95

No mentioning of Anaconda for Sublime? It has many of this features out of the box. But the best IDE experience (beside PyCharm) is really using VSCode + the most popular Python extension https://github.com/DonJayamanne/pythonVSCode This setup is a total replacement for PyCharm for me. Code Refactoring, code definition jump, IntelliSense suggestions and help, linting, virtualenv support, code formatting etc. etc. And…

My biggest problem with VSCode was the loss of ST's support for working across multiple project folders. When I'm working with Django I'll break code out into reusable apps but find it difficult to work concurrently on these separate folders of code. Would love to hear if there's a setting I was missing as I'd like all the other features in VSC.

I have each project open in a different VSCode — is that what you're asking for? You can do File > New Window and then open another project in it or just set "window.openFoldersInNewWindow": "on" to always open directories in a new window.

Re: Turning Sublime Text into a Lightweight Python IDE

#96
post #89

Earlier quoted context omitted.

So that's the case for JetBrains' products then? VSCode is Microsoft's product, and they are doing solid job with it now, but who knows what they will do with it in 5 years' time. I won't be surprised if they try to integrated it with Azure more closely and do some things which are not relevant to me. Plus it's Electron app which I won't use. And it's not like open source solution can't fail and be abandoned. Only tw…

What's wrong with an Electron app? I am curious.

They are slow, unoptimised , massive memory and cpu hogs. Here is the best example https://www.theregister.co.uk/2017/03/23/cursor_devours_cpu_...

Re: Turning Sublime Text into a Lightweight Python IDE

#97

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

> Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere.

Sublime is not Vim or Emacs, you just move on to the next CUA text editor or IDE. It's not like you need more than 20 or so extra commands to be effective in a CUA IDE:

* go to class/function/file/symbol

* build/run/debug/run tests

* debug commands (step over, step into)

And you pick those up in 15 minutes. Good editors and IDE have remapable keys or can even emulate ones from other editors and IDE.

And this is on top of the default: save is Ctrl-S, copy is Ctrl-C, cut is Ctrl-X, paste is Ctrl-V, close tab is Ctrl-W, etc., etc.

Re: Turning Sublime Text into a Lightweight Python IDE

#98

A lot of unjustified negative comments. Sublime Text is a nice fast IDE for python. So is PyCharm. CWWFY (Choose what works for you)

Indeed. I use both. If I have to do something quick, I just open it in Sublime(chances are I have it already open because it's also my notepad) but if I need the full env I just fire up IntelliJ.

Re: Turning Sublime Text into a Lightweight Python IDE

#99

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

Do you use OSX or Chrome?

Re: Turning Sublime Text into a Lightweight Python IDE

#100

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

Sublime has been around for a while. Why should it go away anytime soon? And even if it did, it's pretty stable and I bet will continue to work for years, even if the developers did stop working on it. I guess people prefer Sublime over Atom / VS Code because of its performance. To them (including me) that matters more than what might happen in 20yrs.

Slightly related : Does anyone use Textmate since it's been open-sourced ?
Post reply on HN