This thread asks which functions people keep around to copy into various projects.
But my question is... How do you manage this? Which programs do you use to manage your personally re-usable code snippets? Text editor? Note-taking app? Thanks!
This thread asks which functions people keep around to copy into various projects.
But my question is... How do you manage this? Which programs do you use to manage your personally re-usable code snippets? Text editor? Note-taking app? Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.
What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.
Cristian Fernando -
Ben Halpern -
JS -
David Bros -
Once suspended, sherrydays will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sherrydays will be able to comment and publish posts again.
Once unpublished, all posts by sherrydays will become hidden and only accessible to themselves.
If sherrydays is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sherry Day.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag sherrydays:
Unflagging sherrydays will restore default visibility to their posts.
Top comments (9)
I use org-roam paired with org-babel. Org-roam helps me tag and relate it. Org-babel means I have rich "backticks"; meaning the code is editable and runable.
Below is an example. The first two paragraphs are "prose" and the
#+BEGIN_SRC
line indicates that what follows is PlantUML code, which I can run from Emacs and will generate the filefeed-strategy-erd.png
.The above is an example of code I don't often call but want to remember.
Otherwise, I use a snippet manager. For Emacs that's a mix of Yasnippets (for ye'old Textmate style snippets) and Tempel when I want more bare metal Lisp snippets.
I use SnippetsLab on Mac. A great app that has the needed features (fragments, notes, language markup and highlight). 100% worth it.
I use a snippets manager in Neovim. Don't recall which one off the top of my head, but they're all very similar. I maintain a few of my own in a filetype plugin package I made for my own use which is available on GitHub.
That said, in the last few weeks I've been using Copilot and that's made a lot of those redundant since it can create a decent starting point for many use cases without having to actively store snippets yourself. It seems to learn what you use a lot too and suggest it when appropriate. It's not perfect and you can't just trust everything it suggests, but it's incredibly handy.
I don't use any service or software anymore. Just use your IDE sync to collect all your snippets
I will share just two links.
code.visualstudio.com/docs/editor/...
code.visualstudio.com/docs/editor/...
I keep them into my notion dev wiki, ordered by language
I use GitHub Gists gist.github.com/discover
If it's really repetitive, I'll use a snippet from vscode
i have a sample project called 'bintracker'. i throw everything in there. it's also the reference point for onboarding new people.