Organization of sample code
-
@eddiejennings said in Organization of sample code:
In the last month at my new job I've collected a few code snippets and sample scripts that are scattered between text files, OneNote entries, and saved E-mails. This is unsustainable, and before it snowballs out of control, I'm considering how best to manage this material. I'm curious of the tools you folks use (if any) to organize your code snippets and script samples or templates.
GitLab and VSCode.
You can categorize them by project, folder, etc.
-
GitLab or a Wiki
-
BookStack might be okay for this, but I'd got for something like GitHub or GitLab.
I'm probably going to hop on a paid GitHub description tomorrow. I've been threatening to do so for a while now.
-
@dafyre said in Organization of sample code:
BookStack might be okay for this, but I'd got for something like GitHub or GitLab.
I'm probably going to hop on a paid GitHub description tomorrow. I've been threatening to do so for a while now.
Why pay for GitHub when you can use GitLab?
-
@tim_g said in Organization of sample code:
@dafyre said in Organization of sample code:
BookStack might be okay for this, but I'd got for something like GitHub or GitLab.
I'm probably going to hop on a paid GitHub description tomorrow. I've been threatening to do so for a while now.
Why pay for GitHub when you can use GitLab?
That's kinda my thinking. I currently host my own Git server, but if I shut it down, it's one less system for me to worry about patching and such.
Would also save me a few bucks a year.
I may move a couple of projects to it and see.
-
Hosted GitLab is free: https://about.gitlab.com/pricing/#saas
-
@scottalanmiller said in Organization of sample code:
GitLab or a Wiki
Or Wiki.js backed by a GitLab repo!
-
@jaredbusch said in Organization of sample code:
@scottalanmiller said in Organization of sample code:
GitLab or a Wiki
Or Wiki.js backed by a GitLab repo!
I liked that about Wiki.js.
-
@dafyre said in Organization of sample code:
@jaredbusch said in Organization of sample code:
@scottalanmiller said in Organization of sample code:
GitLab or a Wiki
Or Wiki.js backed by a GitLab repo!
I liked that about Wiki.js.
If our Wiki was just me, I would still be using it. But I really needed the WYSIWYG functionality of Bookstack for the other users. Markdown is hard to grasp for people that don't do anything but Word and Excel.
-
@jaredbusch said in Organization of sample code:
@dafyre said in Organization of sample code:
@jaredbusch said in Organization of sample code:
@scottalanmiller said in Organization of sample code:
GitLab or a Wiki
Or Wiki.js backed by a GitLab repo!
I liked that about Wiki.js.
If our Wiki was just me, I would still be using it. But I really needed the WYSIWYG functionality of Bookstack for the other users. Markdown is hard to grasp for people that don't do anything but Word and Excel.
For code snippets it's perfect. But really, VSCode and GitLab is just too easy. A wiki is nice if you want that kind of feature, but for just random categorized code snippets to copy/paste from, I'd rather have those in a file in my editor (vscode) synced to GitLab.
I moved away from a wiki that used Markdown, not because of Markdown (Markdown itself is easy and efficient), but due to the lack of features some platforms (that use Markdown) have.
Example, we used Mediawiki before, which was so inefficient for creating the kind of content we needed.
Now we use WordPress, and it's so easy, fast, and efficient to get the content up.
-
I just shutdown my GOGS server and have all my important bits over on GitLab now.
-
@dafyre said in Organization of sample code:
I just shutdown my GOGS server and have all my important bits over on GitLab now.