Need help with storing my codes and useful extensions
Posted by vaibhav_yadav_09@reddit | learnprogramming | View on Reddit | 3 comments
21M in my 6th semester of BTech. I am learning DSA from the Strivers sheet, and practicing the code in Leetcode and VS code. A lot of times it happens that while studying I have to write and understand a code multiple times with a little tweaking in each one of them. So I usually store them in .cpp files in VS code, but for revision it gets very messy to open each file then recall. I just wanted to know how you guys do this? I am a lazy person so I don't prefer writing all the codes in my notebook, instead storing them at a particular place with a subheading for each code would've been better, so any app or website to help me with this? Also, it would be really useful if you suggest some VS code extensions that I can add to enhance my programming journey.
OleksandrPadura@reddit
For DSA revision specifically, git is overkill - it's built for projects, not flipping through snippets. What actually made revision click for me: organize by PATTERN, not by problem. A folder or Obsidian note per pattern - two pointers, sliding window, DP - and at the top of each snippet a one-line "when to use this / what tipped me off". On revision you're training pattern-recognition, not re-reading 200 separate solutions. For VS Code, Code Runner runs a single file instantly without a build setup, handy for Leetcode-style practice.
AdSubstantial5004@reddit
either upload the code to github or use a notetaking app that supports code blocks like obsidian for example.
Digital-Chupacabra@reddit
git.
The most popular cloud hosted git provider is github.