3 ms·
Why are you not using a snippet manager? It is significantly faster than an LLM, it’s local, consumes far fewer resources, and actually returns a correct versio
by latexr 1y ago
Why are you not using a snippet manager? It is significantly faster than an LLM, it’s local, consumes far fewer resources, and actually returns a correct version of what you want based on your knowledge.
- allenu 1y agoThanks for the suggestion. I don't use LLMs for everything and do still copy-paste a lot from existing projects where I have an established pattern. LLMs can be a lot faster if you're tossing together an initial prototype with a lot of UI. I could type it all out or copy-paste bits and pieces, but just giving a few sentences of what I want and letting it go build is much faster.
- latexr 1y agoYou don’t need to copy and paste manually. Snippet managers allow you to search for what you want and paste directly, or even type a few characters and have the text automatically replaced. There is no LLM which could ever be faster than a well-configured snippet manager for stuff you’ve done before. Not to mention you won‘t get random bad text thrown at you.
- 01HNNWZ0MV43FF 1y agoI have never heard of a snippet manager until right now. (In good faith:) Where did you hear of them? Should I be following news somewhere else? I see this one is popular and high on DDG: https://github.com/massCodeIO/massCode https://github.com/massCodeIO/massCode But there's no screenshots or example usages, and it's not obvious to me how it works. Is it like a local search engine you install? Is it an LSP? An LSP that's lighter than rust-analyzer could be useful for this kind of thing. Edit: I searched for "What is a snippet manager" and DDG search returned a bunch of useless-looking listicles, but their AI actually told me and linked to an article explaining it: https://www.codiga.io/blog/code-snippet-definition/ https://www.codiga.io/blog/code-snippet-definition/ Edit 2: I guess it's meant to be used as a VS Code extension. It might work as a standalone app but it would be a little unwieldy. I don't think my favorite text editor has a web view built in, so I couldn't install massCode in there
- latexr 1y ago> Where did you hear of them? I no longer recall, I’ve been using them for something like two decades. > But there's no screenshots or example usages, and it's not obvious to me how it works. See SnippetsLab for a good example of a snippets manager. https://www.renfei.org/snippets-lab/ https://www.renfei.org/snippets-lab/ > I guess it's meant to be used as a VS Code extension. It might work as a standalone app but it would be a little unwieldy. I prefer it as a standalone app. I don’t use VSCode nor would I want integration with my text editor. Snippet managers generally have ways of being invoked from anywhere, or you can type a few characters and have them replace the text, or you can search them from launchers like Alfred. https://www.alfredapp.com https://www.alfredapp.com https://alfred.app/workflows/renfei/snippetslab/ https://alfred.app/workflows/renfei/snippetslab/