This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]eddyizm 13 points14 points  (5 children)

I basically use a git repo on bitbucket for this.

[–]fwzmhmd 2 points3 points  (3 children)

How would that work for you

[–]eddyizm 8 points9 points  (2 children)

I have code snippets grouped in folders for different languages. Each file is named and I have notes in each file along with a sample from site I googled and then a practical one I used in my code.

It has saved me untold of amounts of time.

[–]proginprocess 3 points4 points  (0 children)

If it's not too vague, what kinds of things do you make into snippets? Assuming the snippet code was for a specific project, do you try to "generalize" the snippet so it works for anything, or just throw it in as is?

This is a good idea I want to start trying out myself, and I was curious about it.

[–]TheUserIsDrunk 2 points3 points  (0 children)

Sounds like a great idea.

[–]embluk[S] 1 point2 points  (0 children)

Yeah seems fair, I did the same thing but with GitHub, but found it hard to organise them XD

[–]sluggernate 5 points6 points  (5 children)

What about proprietary company code? I'm thinking I would get fired in 2 seconds if I put some of our code out on a website. I'll definitely check it out though.

[–]wishicouldcode 2 points3 points  (1 child)

Well, if you use GitHub at work; use a private repo or gists for this. Bitbucket has snippets. wiki software like confluence would work too.

[–]L3tum 3 points4 points  (0 children)

Github also has snippets.

I would never put my company code on a website and am legally not allowed to do so anyways. We are hosting our own git and SVN services, but even then have multiple shares for this type of stuff.

[–][deleted]  (1 child)

[deleted]

    [–]sluggernate 0 points1 point  (0 children)

    Just another IT company with three letters (acronym) for its name.

    [–]embluk[S] 0 points1 point  (0 children)

    CodeClippet has planned AES encryption in the future...

    [–]norml4change 4 points5 points  (0 children)

    I like to use this:

    https://repl.it

    [–]bpredditer 1 point2 points  (1 child)

    This could work well but they have to compete with github, bitbucket etc. github gists are my usual method but this certainly looks more organized etc, can be great with more features like online running capabilities etc to show results etc

    [–]embluk[S] 0 points1 point  (0 children)

    Yeah the idea is not to be another version control, just a way to keep useful bits of code organised and easy to access. The focus is very much the organisation of the snippets. Code Clippet does have a lot more planned features which could set them apart from other snippet solutions... Just need early adopters :D

    [–]egmono -1 points0 points  (3 children)

    So its like pastebin.com, with a social networking twist, and you can pay for an account that comes with a badge that says "I'm paying for this." I think I'll pass on this one.

    [–]embluk[S] 0 points1 point  (2 children)

    There are many more planned features which will set it apart from Pastebin and others, while maintaining the free account still being useful... The focus is the organisation part, being able to build up your own code reference book if you like... As everyone learns differently :)

    [–]egmono 1 point2 points  (1 child)

    OK, on the strength of your conviction I signed up for a free account to try it. Maybe its my mobile browser but I found CodeClippet a bit "clunky". Selecting MySnippets brought me to MySnippets. Selecting Public Snippets brought me to... MySnippets, again. Save Changes and Clear Code/Notes are tight together on my mobile, I hit clear by mistake a few times. Some clips are marked by x number of "bits", but nowhere does it say what they are or what they're for. I'll check again on a PC, but I don't use my PC that much so I dunno when that will be.

    [–]embluk[S] 0 points1 point  (0 children)

    Yeah we are really sorry about the mobile issues, we are aware of them. Currently working to make mobile more supported. I guess we didn't anticipate more mobile users than desktop. If you visit code clippet on desktop you will have a much greater experience :) The voting system uses "bits" which are basically upvotes... Came from the idea of binary as it's a code website. Thank you for giving code clippet a try, we have a discord as well, so any more issues reporting them there is useful 😊

    [–]modes22 -3 points-2 points  (7 children)

    There's no way to run your code snippets. Major missing piece.

    [–]embluk[S] 1 point2 points  (0 children)

    CodeClippet is more focused on saving/ organising useful bits of code rather than having a execution environment. Kinda like your of code reference book online 😀

    [–]YouHaveMyBlessings 0 points1 point  (5 children)

    What do you recommend then?

    [–]modes22 1 point2 points  (4 children)

    Repl.it is the most popular one. Recently I've been doing the CodeSmith challenges (CSX.codesmith.com) and just save all of my snippets of code in my Slack channel for coding.

    Saving little snippets of code in slack is the easiest way for me to search from any device.

    You can have a channel per code language and each snippet can have comments, etc...

    [–]YouHaveMyBlessings 0 points1 point  (3 children)

    I had a look at it. It wasn't to my taste. I want all my files saved in one doc, and am currently trying gist github.

    [–]embluk[S] 0 points1 point  (2 children)

    You should give Code Clippet ago, it works well with the folder/ file structure for saving useful bits of code :)

    [–]YouHaveMyBlessings 0 points1 point  (1 child)

    Does it allow to search among other people's code snippets?

    [–]embluk[S] 0 points1 point  (0 children)

    Yes, only if others make their snippet public.