3 ms·
> In my experience, the best use-cases for AI assistants/LLMs are: that seems bad, IDEs are already quite good at these three points without AI.
by jraph 2y ago
> In my experience, the best use-cases for AI assistants/LLMs are:
that seems bad, IDEs are already quite good at these three points without AI.
- XCSme 2y agoPartially, LLMs cover a lot more cases. Sometimes I have multiple variables, like: var firstJob; var lastJob; var totalJobs; And then, if I want to rename Job -> Task, with LLMs, I just edit first variable, and then it auto-detects my intention and suggests all those changes with a single Tab press: var firstTask; var lastTask; var totalTasks; With the IDE you can only F2 to rename individual variables, or replace all occurences, which might overwrite other variable names too (also maintaining casing is tricky sometimes). LLMs are also good at predicting what you're going to type, especially with adding comments or hard-coded content. Like, when you write var firstTask; var l... Now you will get autocomplete for lastTask; in one tab, faster than typing it. Also amazing for conversion, let's say you have a YAML file and you want it converted to JSON, you just select it and ask "convert to JSON", done.
- nunez 2y agoThe last example definitely doesn't need LLM IMO
- XCSme 2y agoWhich one? YAML to JSON?
- nunez 2y agoCorrect. You can use `yq` to do this easily. yq -o json .
- XCSme 2y agoThat was just an example, LLM can convert any format, directly within the document/file. It's a lot faster and easier to use, especially when developing and you just need to try out quickly different things. For example, you can just copy-paste a json snippet from the web, pasted it into the chat window and say "pass this as inline YML".