News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by devoutsalsa on Friday November 19, 2021 @01:08AM (#29274328)
“git grep” is pretty amazing for tracking things down.
Re:Where is Ruby Headed in 2021? by oblio on Friday November 19, 2021 @05:28AM (#29275722)
That's like someone asking for directions and you giving them a shovel and a introduction to archaeology manual.

If someone asks for directions you give them directions or a current map.

Re:Where is Ruby Headed in 2021? by hagbard_c on Friday November 19, 2021 @10:39AM (#29278269)
Well, no, not really. It is more of the equivalent of showing how to read (or where to find) maps instead of pointing out something on one. If the searcher is in a hurry the latter is more helpful, otherwise the former is preferable.
Re:Where is Ruby Headed in 2021? by oblio on Friday November 19, 2021 @11:16AM (#29278744)
Yeah, but you shouldn't need git grep to find out what something is.

I understand using to find out why it's there, but not what it is.

Re:Where is Ruby Headed in 2021? by sanderjd on Friday November 19, 2021 @05:36PM (#29283510)
Yeah the problem is that grep understands lines of text but not the structure of code. But code should be understandable by a computer program (by definition it has to be at some point) so you should be able to use a tool that understands the structure of the code it's reading rather than just seeing a bunch of lines of text.
Re:Where is Ruby Headed in 2021? by devoutsalsa on Friday November 19, 2021 @02:45PM (#29281406)
Personally I find it faster than using an IDE much of the time. It’s super fast and very powerful.
Re:Where is Ruby Headed in 2021? by rhizome31 on Friday November 19, 2021 @04:29AM (#29275364)
Of course that's what we end up doing in practice, using external tools (CLI or IDE) to work around a limitation in expressiveness of the language. This advice is a testimony that there's indeed a problem upfront :) And it comes short when searching from commonly used names...
Re:Where is Ruby Headed in 2021? by nitrogen on Friday November 19, 2021 @06:22AM (#29276082)
This advice is a testimony that there's indeed a problem upfront

Indeed, and the problem is that IDEs have encouraged developers to write convoluted code and to forget how to navigate a filesystem. Reading code and commit history is a much faster path to understanding a system than an IDE's autocomplete. I learned this from Ruby, and it serves me well in C, Kotlin, Scala, PL/SQL, Typescript, etc.

Re:Where is Ruby Headed in 2021? by maccard on Friday November 19, 2021 @08:41AM (#29277000)
> IDEs have encouraged developers to write convoluted code and to forget how to navigate a filesystem.

I would argue the exact opposite. Developers who force tools designed 30 years ago to dictate programming language best practices today are holding back the entire industry. There is no reason for my tooling to depend on my filesystem; imagine if my IDE integrated directly with vcs, and a language server provided both of those tools semantic information about my code, available on any device. Let's not kid ourselves either, utf-8 isn't human readable on disk, it's still a binary-like format.

Re:Where is Ruby Headed in 2021? by rhizome31 on Friday November 19, 2021 @09:48AM (#29277695)
You're right to remind that the filesystem is a metaphor, a model and not the reality of what's going on on the computer. The thing is it's still the common denominator between different IDEs and text editors. IDEs cannot be used in every situation so any professional developer who uses an IDE also knows his way around with a text editor. If we were to come up with a better abstraction than the file system, it would have to be shared between different IDEs for interoperability. My understanding is that Smalltalk was such an attempt but somehow that aspect of it didn't really spread. Are you aware of current progress being made in this area?
Re:Where is Ruby Headed in 2021? by sanderjd on Friday November 19, 2021 @05:33PM (#29283483)
I did that for many years, then I switched to languages with good static analysis and felt really silly about how many years I had wasted wandering around in darkness.