- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
I have a quick question.
How do you save your code for later use. And i don’t mean projects but things like a validation plugin, custom select boxes small things like that.
The reason i ask this is because 9/10 times i try to wright my code as generic as possible so i can use it in different projects. The problem is that i switch alot between pc and laptop so local storage its not an option, Using things like teamfoundation or vault can be tricky when you need to work on a pc/laptop that doesn’t have that installed or wanna share your code.
I also thought of codepen but i don’t know if you have version control in there.
I have tried to search it on google but i couldn’t find anything about it.
So the question is what do you use to save your generic code?
So the question is what do you use to save your generic code?
…my filesystem?
Seriously, just make a new folder. You can use git for vcs.
There are so many options here. You can save them as separate little snippets in a dedicated directory. Or… you could save them as gists on Github. That way… you get tag functionality. You can also save them as snippets in ST2 or ST3. Makes it MAAAAAAD easy to throw them into code with a tab shortcut.
Yes, I have a library of code I use on a lot of projects. Nothing major, Just simple stuff that fits on most websites. Stuff like the responsive navigation I use often, css resets, some javascripts, etc.