7 ms·
Show HN: MassCode – a code snippets manager for developers
- xaduha 7y agoI was recently looking for one and I will check it out, but I think I'll probably just use some git folder with snippets and a ripgrep alias for searching, I don't need much.
- jjeaff 7y agoNice. Does it store the snippets in a got repo? Or can it use gitlab or GitHub snippets as storage, if not, that would be handy.
- lostintangent 7y agoIf you’re using VS Code, you can checkout GistPad, which allows managing code snippets, mini-docs, and interactive/CodePen-like playgrounds, all backed by GitHub Gists: https://aka.ms/GistPad https://aka.ms/GistPad. Disclaimer: I built GistPad, and am just mentioning it since you mentioned GitHub-based snippets.
- cheez 7y agoI use the MoinMoin wiki for this.
- thrownaway954 7y agoYour demo gif doesn't convey your idea __at all__. What is going on in it? To me it just looks like you are typing in a hello world function in jaavascript... where does the snippet portion come in? After I create a snippet, how do I use them in my current project and current editor? I really think you need to create demos showcasing these use cases cause as of right now i'm confused as to why this project even exists.
- trwhite 7y agoI agreed with what you're saying, but there's a nicer way to say it. Please be a little more considerate.
- thrownaway954 7y agoyou're an over sensitive. grow up please.
- dang 7y agoPlease read the guidelines and follow them when posting here. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html Edit: you've broken them badly in the past as well: https://news.ycombinator.com/item?id=21721337 https://news.ycombinator.com/item?id=21721337. We ban accounts that post like this, so please don't do it again.
- thrownaway954 7y agoWhatever. I'm NOT going to walk on eggshells with every comment I post in hopes I don't offend or hurt someone's feeling. I didn't personally attack anyone in my original comment, but for reason, someone takes it upon themselves to attack me personally and now I'm being ridiculed for it.
- dang 7y agoI'm certainly not ridiculing you! I'm trying to let you know what the site standards are so you can follow them and use HN as intended.
- thrownaway954 7y agoyes you are. you said nothing to the other two people who stated that my original comment was harsh (for whatever their reasons were), of which their comments added _nothing_ to the conversation, they were personal attacks against me. i simply just stated that they are being over sensitive and need to grow up (which, personally i think they are being and need to). i didn't use any profanity and say anything threatening, yet i get called out by you and not the other two. why? don't cite and hide behind guidelines if you're not going to apply them to everyone. you are ridiculing and personally attacking me and i'm not going to stand for it.
- cddotdotslash 7y agoHere, I rewrote your comment to say the same things in a friendlier way. There are nicer ways to provide feedback. > I would recommend updating your demo GIF to more accurately portray the idea. Perhaps instead of just typing the function into the text editor, it should also convey how snippets can be saved and reused at a later point. This would give me a better idea of how to utilize the project.
- derp_dee_derp 7y agoThere was nothing unfriendly about the original phrasing.
- OGWhales 7y agoCan anyone tell me why some comments, like this one, are darker than others? It would appear lighter with the default scheme. Image showing what I mean: https://i.imgur.com/Beo2qve.png https://i.imgur.com/Beo2qve.png
- walls 7y agoI believe it means the post was down-voted below zero.
- mttjj 7y agoThose are comments that have been predominately downvoted. From the FAQ: https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html > Why don't I see down arrows? > There are no down arrows on stories. They appear on comments after users reach a certain karma threshold, but never on direct replies.
- OGWhales 7y agoThank you! I wasn't aware there were even downvotes, so I didn't think of that as a possibility.
- deleted 7y ago
- antonreshetov 7y agoOf course, I will update README in more detail later. Now all my time is spent on PoC. MassCode is an application for organizing snippets such like as SnippetsLab, Quiver or Boostnote. What makes it different is that it uses Monaco editor as a code editor, it allows for autocompletion in the main frontend languages - HTML/CSS/JavaScript. And of course Emmet :)
- thrownaway954 7y agoawesome!
- mrmonkeyman 7y agoHey there, citizen. You are displaying unacceptable levels of inhumane harshness. First, you expressed your opinion bluntly and second, you were being honest. Shame on you. The owner of the project could be harming his-, her- or itself by now, you realize that? And it would be completely and utterly your fault. You are destroying lives here. Perhaps even children. O God, think of the children you are potentially putting in harms way. Is that how you were raised? This comment needs some healthy "redacting" and the author.. some educational (labour-) camp perchance? The nerve of some people. Tsk.
- thepaulstella 7y agoWhat? This is literally just Apple Notes for code snippets. What’s the confusion?
- JimmyRuska 7y agoIf you don't need the syntax highlighting, keepassXC does a good job of this. It's a free password manager. You can create a new folder called code-snippets and make the URL portion of each entry the code one-liner. You can copy url to clipboard from app with CTRL+U. This also has the nice property that you can password protect your snippets. You can also store them in notes or with attributes. Cherry Tree, Joplin, Zim, Trilium Notes; all have the ability to create a tree-like folder structure.
- medleybron 7y agonice! Does it always assume you're writing "code" or even "JavaScript"? can you use it to store regular notes?
- elchin 7y agoIs there an integration with VS Code or Atom?
- lostintangent 7y agoIf you’re interested, I built a snippet manager for VS Code that uses GitHub Gists for persistence. That way, you get a productive, in-editor experience, while still being able to keep your own data/code, and can benefit from the existing ecosystem and primitives that have been built around gists (e.g. embedding gists into Dev.to/Medium blog posts, opening a Gist-based Jupyter notebook in NbViewer). It’s called GistPad, and in addition to allowing you to create/manage code snippets, it supports easily moving files between your local machine and gists, pasting images, starring/forking gists, viewing and replying to comment threads, and creating “playgrounds” that are CodePen-like runnable samples: https://aka.ms/gistpad https://aka.ms/gistpad. Additionally, since it’s a VS Code extension, you can easily edit/manage your snippets, while taking advantage of your existing editor setup/language support, using your favorite extensions, arranging files into arbitrary grid configurations, etc.
- arnado 7y agowow, this looks great!
- lostintangent 7y agoThanks! Let me know if you get a chance to check it out, and have any feedback (https://github.com/vsls-contrib/gistpad https://github.com/vsls-contrib/gistpad). I’m iterating on it pretty quickly, and am looking for more input about other developer’s use cases
- moralsupply 7y agoThanks for the work on that extension, it's very useful. Can it support private gists? I couldn't find a way to enable that.
- 7y ago
- jcolella 7y agoJust want to say this is great. Poor execution on the demo. README is incomplete. A basic getting started would have sufficed in this case.
- arsalanb 7y agoAwesome! I've been looking into a way to manage my own code snippets. I'm a huge fan of ThisCodeWorks (https://www.thiscodeworks.com/ https://www.thiscodeworks.com/), which has gamified snippet storage to an extent. Also great for sharing snippets around. It's still in beta, but looks good so far!
- Proven 7y agoThisCodeWorks - I checked out one sample page - no license/attribution info. Yikes! There was a link to source page that makes it possible to dig further, but that's like StackOverflow minus cross references and comments.
- kndjckt 7y agoHow does this compare to SnippetsLab? I see it’s inspired by SnippetsLab
- proc0 7y agoNot to diminish the effort, but the use case for this can only be a role that requires a ton of snippet handling, which inherently means you are doing something wrong as a programmer (imho). Once you get to a point where you are regularly using snippets a lot, writing some automated script is the next step, not a tool that makes it easier to copy/paste.
- onion2k 7y agoWhat would the "automated script" do? My use case for snippets is mainly to stub out tests, components, and stories - things that are largely an exercise in boilerplate code with fill-in-the-blanks changes to start with. I can't think of a way to do that with a script that would be less effort than a snippet.
- proc0 7y agoI may be missing some key use cases, but presumably you would somehow use the same snippet again and again otherwise why have it in some tool, ready to go. Once you are using that snippet a lot, then I think the incentive to make it part of the running script is high, or even creating a new repo to track those snippets and then link that somehow.
- penagwin 7y agoSnippets for me are things I find that I google and copy+paste from stackoverflow semi-frequently. See the example here, it prints the currently loaded settings in Django. I don't use it super frequently (say a few times a month, depending on what I'm doing), but it's faster for me to find with a snippet manager then copying from the same stack overflow answer. > python manage.py diffsettings --all
- ArtDev 7y agoTried running locally on Linux but ran into issues and gave up. It seems useful and I like how it looks. "npm build" SHOULD get it running locally but it didn't for me. Did anyone else get it working?
- Throwaway656543 7y agoI use Sublime as my code editor. Anything that I need to save as a code snippet goes into its own Snippets project. That way, I can organize it easily and open up the project whenever I need it. No separate application necessary since Sublime is already editing my code anyways.
- breytex 7y agoVery cool project. I like that you have matched the mac os design. Working on a note app and aiming for a similar UX. Anyone having an idea how to come close to MassCode's UI with a React.js UI library? Is there anything out there, which is similar?