this post was submitted on 31 Aug 2024
4 points (100.0% liked)
Ruby
9 readers
1 users here now
A community for discussion and news about Ruby programming.
Learning Ruby?
- Try Ruby in your browser
Tools
- Ruby Version Manager (RVM) Install, manage and work with multiple Ruby environments. adsf is an increasingly popular option too.
- rbenv Groom your app’s Ruby environment with rbenv.
- Looking for new gems? ruby-toolbox
- Install Ruby on macOS
Documentation
- Ruby API or Ruby Doc
- YARD docs via rubydoc.info YARD Documentation Server
Books
- Well Grounded Rubyist
- Eloquent Ruby
- Metaprogramming Ruby
- Effective Testing with RSpec 3
- Programming Ruby 1.9: The Pragmatic Programmers’ Guide
- The Ruby Programming Language
Screencasts
News and updates
- Ruby news in a weekly email from Ruby Weekly
- 'Planet' of Ruby blogs at rubyland.news
- Ruby tweets at @RubyInside
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
can RubyMine completion shows the method for
word
variable here?for example the end_with? method cuz with both solargraph and ruby-lsp they don't show any suggestions for the
word
variable at all.Yes, RubyMine will offer completion for this block.
now i'm confused about why solargraph, which is said to be mature, can't do that. and also i just realized it when i used
map
instead ofselect
; the methods appeared.wanna try RubyMine but i already comfortable in neovim. since RubyMine is an IDE i think my machine can't handle that lol.
It's important to note that
ruby-lsp
is made by Shopify, and is currently used in-house by the company. The resources they can invest intoruby-lsp
both in terms of development man-power and project management is naturally going to be higher than the community developedsolargraph
.That's strange, but
Enumerable#map
andEnumerable#select
have different uses. One is used to execute a block across a collection of elements, while the other constructs a new collection based on the block passed to a collection and the results of evaluating that block against each element.I use RubyMine on my desktop and it's a very solid development experience. I'll say that if your machine can't quite handle RubyMine, VS Code(ium) is a nice alternative with the solargraph or ruby-lsp plugins. I don't know if they'll have the same completion issue as neovim though.