Live data from Hacker News

Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

marketplace.visualstudio.com

11–20 of 55 posts

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#11
I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#12

I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

How come nobody came up with an LSP that can perform this, all this time ?

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#13

I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

How come nobody came up with an LSP that can perform this, all this time ?

https://shopify.github.io/ruby-lsp/rails-add-on#go-to-defini... ?

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#15

I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

How come nobody came up with an LSP that can perform this, all this time ?

Because it's an unsolvable problem without static type annotations and as far as I'm aware Ruby doesn't have a good solution for those yet (or if they do nobody uses it).

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#18
I've tried it, but it's very slow on a not too complex codebase with my M3 Macbook Air.

    --------------------------------------------------------------------------------
     Language             Files        Lines        Blank      Comment         Code
    --------------------------------------------------------------------------------
     Typescript JSX         121        18724         1699         1051        15974
     TypeScript              61         5389          629          550         4210
     CSS                      5         1039           50           22          967
     Markdown                 3          657          173            0          484
    --------------------------------------------------------------------------------
It was like 5-10FPS at best, not really usable unfortunately because I like these tools.

I'm using another similar one which is buttery smooth, Code Canvas.

Re: Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

#19

I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

How come nobody came up with an LSP that can perform this, all this time ?

I've developed a small tool[1] that has helped me for the same problem, but in Python. Basically just uses simple parsers to attempt to find a definition wherever is sensible. Adding a Ruby module should not be too difficult, but it would probably be trickier than Python to get some good enough results

[1] https://github.com/federicotdn/irk

Post reply on HN