Live data from Hacker News

Show HN: MassCode – a code snippets manager for developers

github.com

31–40 of 55 posts

Re: Show HN: MassCode – a code snippets manager for developers

#31
post #27

Not 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.

What 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.

Re: Show HN: MassCode – a code snippets manager for developers

#32

Your 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 exist…

Hey 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.

Re: Show HN: MassCode – a code snippets manager for developers

#33
post #13

Earlier quoted context omitted.

Stet. The comment wasn't particularly unfriendly at all. It didn't contain any personal attacks or contentless bashing. Indeed, the comment did something valuable: identified a problem, and thoroughly described why it was a problem. If the only way some one can give usable problem analysis and criticism is by including suggested fixes, and delicately toning down the criticism, then far fewer people are going to be wi…

I agree that the original comment was not overtly _un_friendly. I also think that the reply represents a better way. > If the only way some one can give usable problem analysis and criticism is by including suggested fixes, I think we can all agree that the inclusion of suggested fixes does make feedback more helpful in general. > and delicately toning down the criticism, then far fewer people are going to be willing…

Including good suggested fixes is certainly better than not. But no suggested fixes are better than bad suggested fixes. Finding problems is a different skill set than proposing solutions. Letting people with these complementary skill sets coöperate in improving something seems to be better than requiring one person have both. The perfect is the enemy of the good.

I'm not sure why emphasis on failure is a problem, when that failure is precisely what is being communicated. However, the comment certainly does look a lot more unfriendly in light of the responses. Perhaps I was too kind to "i'm confused as to why this project even exists", because I don't understand why I would ever want "code snippets" myself.

Re: Show HN: MassCode – a code snippets manager for developers

#34
post #27

Not 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.

Snippets 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

Re: Show HN: MassCode – a code snippets manager for developers

#35
post #29

Earlier quoted context omitted.

Those are comments that have been predominately downvoted. From the FAQ: 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.

Thank you! I wasn't aware there were even downvotes, so I didn't think of that as a possibility.

[deleted]

Re: Show HN: MassCode – a code snippets manager for developers

#37
post #10

Is there an integration with VS Code or Atom?

If 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 GistP…

Thanks for the work on that extension, it's very useful.

Can it support private gists? I couldn't find a way to enable that.

Re: Show HN: MassCode – a code snippets manager for developers

#38

Your 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 exist…

What? This is literally just Apple Notes for code snippets. What’s the confusion?

Re: Show HN: MassCode – a code snippets manager for developers

#39
post #27

Not 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.

Snippets 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

just make an alias :o

Re: Show HN: MassCode – a code snippets manager for developers

#40

Earlier quoted context omitted.

If 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 GistP…

Thanks for the work on that extension, it's very useful. Can it support private gists? I couldn't find a way to enable that.

Yep! You can run the “GistPad: New Secret Gist” command, or right-click the “Your Gists” node in the Gists Explorer and select “New Secret Gist”. Let me know how that works for you!

“Secret” is the term that GitHub uses (as compared to a private repo), which is why I call them that.

Post reply on HN