News for hackers. Stuff that matters.
Re:Ask HN: Does anyone still use code snippets? by x3n0ph3n3 on Monday February 03, 2025 @01:18AM (#42915485)
No snippets, no LLMs, no autocomplete.
Re:Ask HN: Does anyone still use code snippets? by somenameforme on Monday February 03, 2025 @01:43AM (#42915621)
Eep on the autocomplete. For me that's a must-have to enable clear code. Calling SomeFunctionWithAReallyDescriptiveName would get pretty painful pretty quickly if I had to type it out every time.

No clue if it's true, but this is why I assumed a lot of older computing stuff is often abbreviated to the point of obfuscation.

Re:Ask HN: Does anyone still use code snippets? by x3n0ph3n3 on Monday February 03, 2025 @10:23AM (#42919079)
How frequently do you actually have to type it out though?

You can always copy-paste from nearby code that also calls it.

Re:Ask HN: Does anyone still use code snippets? by bemmu on Monday February 03, 2025 @01:48AM (#42915640)
For things you write a lot, learning how to quickly autocomplete them can pay off.

I don't autocomplete everything, as picking things from a list is if not slower then at least more annoying than just typing that thing, but for common things it's helpful. For instance I type "game.ReplicatedStorage" all the time, so taking a few moments to learn that "game.reso<tab>" is the same has saved time.

What upped my motivation to learned some shortcuts was switching from one keyboard layout to another (qwerty->colemak) and having 20-30 WPM for a week. Typing everything was so painful that I could doubly appreciate it.

Re:Ask HN: Does anyone still use code snippets? by x3n0ph3n3 on Monday February 03, 2025 @10:25AM (#42919103)
Maybe you should brush up on your typing proficiency.
Re:Ask HN: Does anyone still use code snippets? by _hao on Monday February 03, 2025 @03:59AM (#42916303)
This is the way!
Re:Ask HN: Does anyone still use code snippets? by senectus1 on Monday February 03, 2025 @01:22AM (#42915508)
Almost Iron-Man coding by todays standards...
Re:Ask HN: Does anyone still use code snippets? by js8 on Monday February 03, 2025 @02:46AM (#42915907)
Not really. It's how it should be, except maybe autocomplete. If your code is predictable, it means it has low entropy and you are not using the right abstractions.
Re:Ask HN: Does anyone still use code snippets? by someoneontenet on Monday February 03, 2025 @01:23AM (#42915513)
At that point you may as well use a typewriter