Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

Ask HN: Does anyone still use code snippets?

Feb 03, 2025 - news.ycombinator.com
The discussion revolves around the continued use of code snippets in programming, despite the rise of AI-based completion tools like Copilot. Some users still rely on snippets for specific tasks, such as scaffolding error logs or creating React components, due to their predictability and efficiency. Others appreciate snippets for their simplicity and context-sensitive nature, which can be more reliable than AI tools that sometimes make incorrect suggestions.

While some programmers have moved away from traditional snippets in favor of modern IDE features like IntelliSense, others maintain their use, especially for custom or temporary tasks. There is a sentiment among some users to avoid generative AI tools altogether, preferring the control and familiarity of manually created snippets. Overall, the use of code snippets remains a personal preference, influenced by individual workflows and the specific demands of their projects.

Key takeaways:

  • Some developers still rely on code snippets for predictable and specific tasks, despite the rise of AI-based tools like Copilot.
  • Code snippets are particularly useful for creating repetitive structures, such as React components or error handling in Go.
  • AI tools like Copilot can sometimes be too intrusive or incorrect, leading some developers to prefer traditional snippets.
  • While some developers have moved away from snippets due to IDE features like IntelliSense, others continue to use them for custom or temporary tasks.
View Full Article

Comments (0)

Be the first to comment!