DEV Community

Discussion on: Code snippets or nah?

Collapse
 
recursivefaults profile image
Ryan Latta

I use them regularly in only one kind of case. I use code snippets to do something that is esoteric but required in a technology. The example that comes to mind for me is from iOS. If you were building a table view you'd have to implement one method that had in it a lot of very specific things that were easier to do as a snippit than remember each time.

Past that though I refrain from using them, mostly because I don't like being reliant on any given tool. Just a personality quirk of mine.

Collapse
 
andrewchou profile image
Andrew Chou

That's a good point! Yeah I guess some technologies can have some quirks that code snippets help with. Definitely agree with you on trying to stay away from tool dependence if possible 👍🏼