News for hackers. Stuff that matters.
Re:Does Visual Studio Rot the Mind? (2005) by ivan_ah on Thursday February 06, 2020 @10:12PM (#22262923)
Anecdote from this week: I've been working on a Python project that uses several classes and subclasses, with code paths that move around a lot through the class hierarchy. I was trying to add some functionality but kept getting bogged down trying to make sure all the subclasses implement the same interface, using Atom as the text editor.

Then I installed PyCharm and completed the task in just a few hours thanks to the "find uses" and jump to definition functionality. I was also able to refactor some less-than-good variables names. I've always hated IDEs for personal projects (to avoid mind-rot), but now I'm starting to think for large enough projects you just need an IDE.

The only drawback I see is a few millisecond lag on all actions. Every time you scroll, or clock on something there is a lot of things going on in the background, vs. Atom which feels near-instant.

Re:Does Visual Studio Rot the Mind? (2005) by apetresc on Thursday February 06, 2020 @10:41PM (#22263034)
You definitely don't need to go to a full IDE just to get find-definition and find-references. Those are basic features of any ctags-enabled editor, and nowadays with the momentum behind LSPs you get carrier-grade versions of it without even needing to generate a tag file. (In fact, Neovim's next version will actually ship with an LSP client, you won't even need an extension for it).

I just bind 'gd' and 'gr' to go to definitions and references, respectively, and I'm good to go in vim.

Re:Does Visual Studio Rot the Mind? (2005) by dleslie on Friday February 07, 2020 @01:50AM (#22263776)
Emacs has dumb-jump, which is just... Fantastic. Absolutely fantastic.

It doesn't perform any deep semantic analysis; it just abuses whatever existing grep-like tools you have and a bare minimum understanding of the language syntax to find likely correct definitions.

https://github.com/jacktasia/dumb-jump

Re:Does Visual Studio Rot the Mind? (2005) by TeMPOraL on Friday February 07, 2020 @07:23AM (#22265288)
Holy hell, it's the missing companion for Hippie Expand! For non-emacsers, hippie-expand completes the word you're typing by throwing a bunch of heuristics at it, most notable of which is "search this and every other opened buffer for the last few things before the cursor, and see if this produces a completion".

(A funny side effect of this heuristic is that it essentially behaves like a Markov chain. If you have it bound to a key, say M-/, then you can type a starting word and repeatedly press "M-/ Space", and it'll start generating text based on what you have in your open buffers.)

https://www.emacswiki.org/emacs/HippieExpand

Re:Does Visual Studio Rot the Mind? (2005) by bordercases on Thursday February 06, 2020 @10:46PM (#22263058)
Very popular LSPs actually have poor support for basic definition/reference jumping.

`javascript-typescript-language-server` sticks out to me as my first disappointment. And the only implementation of a vue language server is no better, where tls would just throw errors for mixing HTML templates with scripts even if it handles the Javascript properly.

Re:Does Visual Studio Rot the Mind? (2005) by fiddlerwoaroof on Thursday February 06, 2020 @11:49PM (#22263312)
Whichever language server the tide package uses in emacs has excellent jump to definition abilities.
Re:Does Visual Studio Rot the Mind? (2005) by m0zg on Thursday February 06, 2020 @11:59PM (#22263363)
There's also YouCompleteMe, which gives you completion for half a dozen popular languages.
Re:Does Visual Studio Rot the Mind? (2005) by bobbylarrybobby on Thursday February 06, 2020 @10:47PM (#22263062)
I think visual studio code strikes the right balance between performance and functionality
Re:Does Visual Studio Rot the Mind? (2005) by thrower123 on Friday February 07, 2020 @06:39AM (#22265062)
I don't understand why people like VS Code. Are they coming from Eclipse, or writing code in Notepad?

It's light for an Electron app, but that still makes it a bloated pig compared to Sublime or Geany or any of the older Scintilla/SciTE editors.

It can't do multi-window at all, which is a disqualifying mark in my books.

Re:Does Visual Studio Rot the Mind? (2005) by michaelgrafl on Friday February 07, 2020 @10:28PM (#22273612)
I come from Vim, Sublime Text, Jetbrains IDEs, and have tried a lot of other stuff as well, but not as thoroughly.

At some point VSCode became snappy enough for me to use as my main editor, and Sublime Text really spoiled me in that regard. What pulled me over was that VSCode implements a lot of features from bigger IDEs without installing extensions, and they also seem to work better in VSCode than in Sublime Text, let alone Vim.

The ecosystem is amazingly alive and well, and the pace of development is really impressive. The user interface is in my opinion the best of any editor I've ever used.

While I was transitioning I still used Sublime Text for quick edits to text files, but now I am using VSCode for that as well.

Also, it can do multiple windows, as well as vertical and horizontal splits. If you're not using VSCode because of some missing feature, check back every month. It might very well have been implemented in the latest version.

Re:Does Visual Studio Rot the Mind? (2005) by zelly on Friday February 07, 2020 @11:36AM (#22267693)
It is very well designed. Probably the most well designed editor/IDE ever created. (This is coming from a long-time Emacs enthusiast who still uses it most of the time.) Everything is modular and pluggable, like the extension system, tasks, the formatter, the debugger, language server. It offers a consistent API for any language or build system to tool against, so one improvement in the core editor can improve the experience of every language/build system.

It is heavy because it pulls in Chromium, but this is also one of its strengths. User extensions run on the same V8 that the entire editor does, so when you make an extension, it runs as fast as it would if it were part of the core editor. (This is a huge downside of Elisp's and Vim's interpreters.)

Re:Does Visual Studio Rot the Mind? (2005) by jcdentonunatco on Friday February 07, 2020 @07:04PM (#22272539)
VScode is a glorified text editor. It pales in comparison to a real IDE like Visual Studio
Re:Does Visual Studio Rot the Mind? (2005) by this_user on Friday February 07, 2020 @07:32PM (#22272723)
Thank you. I honestly get the sense that people calling something like VS Code an "IDE" have never worked with an actual IDE.
Re:Does Visual Studio Rot the Mind? (2005) by zelly on Sunday February 09, 2020 @12:33AM (#22280562)
I have barely used Visual Studio, so maybe you're right. I did use it a few times for C++, and the version of it from circa 2006 is what I learned with. Visual Studio is very good, especially the debugger, but honestly VS Code with the C++ language server is good enough (80%, Pareto equivalent). Emacs with clangd is also decent while being lightweight.

What does an IDE do? VS Code can refactor, rename symbols, run a graphical debugger, parse a semantic outline of code, do version control with the mouse. A pure editor is like vi/ex/notepad.exe. VS Code is definitely closer to IDE than it is to an editor on that continuum.

Obviously for .NET, it's another story. Hands down the best way to make Windows desktop applications. You can build entire worlds without ever leaving the IDE. Thanks to Unity and Xbox, you can even do professional game dev with it.

Personally, for me it doesn't matter how good Visual Studio is or becomes because it'll take too long for me to learn Windows. I'm (happily) vendor locked in to the GNU ecosystem.

Re:Does Visual Studio Rot the Mind? (2005) by michaelgrafl on Friday February 07, 2020 @10:17PM (#22273564)
I have used IDEs. I get how some might refer to VSCode as an IDE, although I don't use it in that way (or do I?).

If you read about the typical features of an IDE on Wikipedia, VSCode checks most boxes. So I don't see any point in complaining about it being called one, unless you're trying to be a snob about it.

Re:Does Visual Studio Rot the Mind? (2005) by michaelgrafl on Friday February 07, 2020 @10:12PM (#22273543)
Yeah. But, I mean, what development tool doesn't pale in comparison to Visual Studio, right?
Re:Does Visual Studio Rot the Mind? (2005) by thrower123 on Saturday February 08, 2020 @01:08PM (#22277286)
Basically IntelliJ and its variations. That's it, that's the list.

And they've only got one kitchen sink, not the triple commercial sink of features VS lugs along.

Re:Does Visual Studio Rot the Mind? (2005) by Barrin92 on Thursday February 06, 2020 @11:18PM (#22263180)
as a very loyal long term emacs user I have to agree. I find myself using vscode more and more just to how more pleasant refactoring and debugging python code is.
Re:Does Visual Studio Rot the Mind? (2005) by fiddlerwoaroof on Thursday February 06, 2020 @11:52PM (#22263324)
I almost switched to VSCode for JavaScript but I’ve found that tide-mode (for JavaScript) and lsp-mode (for other languages) have really closed the gap. (If you turn off lsp-sideline-mode)
Re:Does Visual Studio Rot the Mind? (2005) by fergie on Friday February 07, 2020 @03:05AM (#22264048)
I dallied with VSCode when work forced me to deal with a gigantic lump of Typescripted React, but in the end I found that emacs with tide/prettier was a nicer experience, so I ended up going back, as I always do, to emacs.
Re:Does Visual Studio Rot the Mind? (2005) by Scarbutt on Friday February 07, 2020 @12:39AM (#22263507)
I miss the raw text editing and no-mouse flow when on vscode.
Re:Does Visual Studio Rot the Mind? (2005) by michaelgrafl on Friday February 07, 2020 @10:31PM (#22273629)
Yes, and mostly out of the box, too.
Re:Does Visual Studio Rot the Mind? (2005) by Scarbutt on Friday February 07, 2020 @12:03AM (#22263377)
How is your grep/sed/regex fu? learning these tools will pay big time.
Re:Does Visual Studio Rot the Mind? (2005) by flukus on Thursday February 06, 2020 @11:38PM (#22263265)
> ses several classes and subclasses, with code paths that move around a lot through the class hierarchy

The flip side I see more often than not (no idea if it applies here) is that IDE's are the enabler that allow such terrible code where less tooling would force a much simpler and more readable design. The more tooling you need to navigate a codebase the less readable it is. The reason "you need an IDE for java" is so prevalent isn't so much because of the language but because of the "enterprisy" OO code the ecosystem is famous for.

IDE's can certainly help, especially once projects reach a certain size, but reliance on them is an indicator of greater problems.

Re:Does Visual Studio Rot the Mind? (2005) by closeparen on Thursday February 06, 2020 @11:49PM (#22263307)
Codebases get unwieldy because lots of people make small, individually reasonable changes to them over years, and it adds up.

I don’t need an IDE to add another invocation of the method. I need an IDE when the signature has to change.

Re:Does Visual Studio Rot the Mind? (2005) by fiddlerwoaroof on Thursday February 06, 2020 @11:50PM (#22263317)
You don’t need an ide, you need a list of potentially affected lines.
Re:Does Visual Studio Rot the Mind? (2005) by flukus on Friday February 07, 2020 @06:14AM (#22264921)
And they don't get wieldly again because Ides are so enabling.