DEV Community

Discussion on: What are your snippets?

 
codevault profile image
Sergiu Mureşan

In my opinion snippets are very useful in frontend where you have a lot of HTML accompanied by some boilerplate JavaScript.

But for backend I find very rare occasions to use them. Only when I create new REST calls or implement some fairly boilerplate code that talks to the database we need such things... although that is a limitation of the technologies we use.

Maybe frontend will get there at one point in terms of redundant code but for now, snippets are a decent alternative.