Hacker News new | ask | show | jobs
by swaggyBoatswain 2852 days ago
I mostly do frontend development, so I just use codepen, and tag all my codepens so its easy to search. Then I bookmark that page. I have all those files backed up by gists.

I might try the "everything.php" or "everything.js" file, scrolling through a single page makes a lot of sense for me as well. But I find I just reference the actual repository in github for backend things, so I can see the context of the use case.

Do you dump "everything.js" and "everything.php" in its own repo in dropbox? Would save the hassle of needing to commit it everytime, pull it from seperate PC's, etc.

I'm still looking for a golden unicorn solution where I just look in one place while still offering micro-testing environments (like codepen). I've tried way too many code snippet solutions it just adds more friction to development

Common snippets I have it all binded by macros.

My goal is to have everything searchable in 3 steps max, one keyboard click, one file navigation button press, and grokking it to find the snippet.

1 comments

Yes I just used to dump everything in those file. But later on I realized that it makes more sense to segregate it into broad categories like net.php (google search, youtube, and website stuff related), mechanize.php (we crawler stuff) and everything.php (everything including the kitchen sink).

It really doesn't even take me 3 steps to find it anymore since I name the functions quite intuitively (str_match_brackets_balanced) so anytime i type strbrackbal phpstorm automatically autocompletes the function for me. Similar for JS though I haven't been able to create any categories and everything.js is all that is.