5 ms·
Use nimgrep?
by michaelsbradley 4y ago
Use nimgrep?
- overthrow 4y agoCan you integrate that into an IDE? In many IDEs, if you hit ctrl-shift-f, it will search the project for the selected text with just one keystroke. Can vscode be made to Do The Right Thing for Nim without extra fiddling on every search?
- michaelsbradley 4y agoGood question, but I don't know the answer (yet) because I don't use vscode, sorry.
- Manabu-eo 4y agoYour Nim project will be in a consistent casing, otherwise the compiler will be warning you about inconsistent spelling. Regular Ctrl-shift-f will work just fine.
- Nullabillity 4y agoRipgrep is already integrated into my editor and muscle memory. Nimgrep is just yet another special case tool that only exists because Nim decided to spend its weirdness budget on inconsequential nonsense.
- xigoi 4y agoThe “weirdness budget” concept is nonsense. Are you saying that programming languages should do only some things right?
- planetis 4y ago@Nullabillity The only nonsense we are dealing with constantly is opinions of people who haven't ever bothered to use this feature before declaring it "inconsequential nonsense".
- Nullabillity 4y ago[flagged]
- planetis 4y agoVery mature, congratulations! Naming has nothing to do with style insensitivity. You can write M_ya_wse_s_omEv_ar in any language, yes? Proof that you don't understand what you're arguing about.
- Nullabillity 4y ago> You can write M_ya_wse_s_omEv_ar in any language, yes? Yes? That doesn't mean that we should add features that encourage that kind of confusion. Especially not when they, again, help nobody and bring no actual benefit.
- monetus 4y ago(Not who you responed to) Just to argue against there being no benefit, I have a cognitive impairment that occasionally puts me in an altered state, a delirium to varying degrees. camelCase is much more difficult to read at that point, so I can get confused ridiculously easily. I tend leave a bunch of comments and then step away, but sometimes I can work well through it; things like horrendous variable names/regexs will throw me. I default to snake_case but compile over when I share the code. This is my unique situation and predilection to being able to read one form more easily than another, but it does indeed help me.
- Nullabillity 4y agoThat's understandable, but doesn't that cause the same issues when reading documentation or third-party code?
- monetus 4y agoI can back away from those while leaving the tabs open and be not too confused coming back, not having temporarily broken them. When I'm in the middle of refactoring especially though, getting a seizure and trying to back away without jumbling the house of cards is a lot easier with whatever pattern recognition I have around snake_case. Edit: curious, have a preference besides consistency for cases?
- v3ss0n 4y agoWhy would someone change its tooling because of a particular Language ?
- Manabu-eo 4y agoDo you use it regularly? I don't, and I don't have any problem finding what I need with regular ctrl+F in Nim, because Nim projects are internally consistent in terms of style, with the compiler helping enforcing it with `-styleCheck`. So don't bring up nimgrep like it's a necessity when it's more of a last resort tool nowadays. You will be just attracting flaming.