What is foo(book)?
Posted 12:17 a.m. Jan. 8 by alan
I'm terrible at this compulsory soup of buzzwords and marketing speak. Honestly, I'm just one man who did this as a way to learn Django and show off my chops, so here we are.
If you're like me you have a folder on your computer called 'scripts' or something where you hold on to little bits of potentially reusable code. I've always found this inadequate, so I created foo(book).
With foo(book), you can add your scraps and tag them. Everyone else can see and favorite them. This is great for code, HTML, CSS, server config files, command line sessions, whatever. It supports everything-- from obvious stuff like Python, to newer stuff nobody actually knows yet, like Go.
If you're not following what the hell I'm talking about, check out my scraps here.
Eventually we'll have a nicely tagged, searchable, well-organized repository of free-to-use code for any purpose.
Which I guess leads us to licensing. Anything you upload must be free to use.
That's pretty much it. Eventually there will be some sort of job board thing, and maybe I'll put some actual work into the layout.
Whenever you're ready to get started, hit the 'register' link up top.
...
Oh, I almost forgot, I've kept the ads to one small, safe for work text ad per page. I don't really expect to make money off this, but it would be nice if you'd turn off AdBlock and offset my server costs a little. If not, that's cool too. Enjoy and let me know what you think
EDIT: WOW. Great response so far, thanks reddit! For all those of you asking for your language of choice, I suggest contributing to Pygments, as I'll add anything they do within a few days.
EDIT2: HOLY CHRIST REDDIT. First of all, I love you guys, thank you. You've helped me fix a ton of bugs and really get this thing off the ground. I think I've made like 20 commits in my Git tree today.
quantumftl says:
@vpoddar88: I agree, this would have been useful back when I was at University.
Luckily the language I use most right now, Scala (which is similar to SML in an astounding number of ways) was surprisingly supported by this site.
I'm going to try seeding the site with little Scala tricks I pick up, partly to remember for myself, and partly so that others may benefit. It's pretty damn great.
2 years ago
jon says:
Alan,
Thanks for the cool website. Can you add syntax support for autohotkey as well?
2 years ago
axman6 says:
Hmm, there doesn't seem to be any way to browse code snippets. Searching is good, but it's no use if I want to find say all Haskell snippets.
2 years ago
kurige says:
axman6: Agreed. The ability to browse and discover new and interesting scraps of code is a must.
In the meantime, you can view all Haskell code by tag: http://www.foobook.org/all/scraps/tag/Haskell/
I haven't submitted any scraps yet, so I don't know if it's the user's responsibility to tag the language, or if that's done automatically. So, you might not be seeing all haskell scraps by searching by tag.
2 years ago
schalkheunis says:
Ability to browse snippets would be useful.
2 years ago
mmhnef says:
Awesome idea! Suggestions:
Browsing ooptions: Category Popularity Recently Added User/Submitter/Author Another user's favorites list
Ability to link/modify/fork other scripts. So say you had a really cool vimrc file and I loved it, i could link it as one of my scraps but modify it? I guess i could just steal it and resubmit it after modifying it, but it would be cool to keep original credit. (maybe even see how other people have modified off of original submissions)
Anyways, I hope you keep this thing maintained, and I love the simple website design!
vpoddar88 says:
Awesome. Great way to share code with others. One language that I notice isn't supported is SML. I, along with many other students, have to learn SML for my curriculum.
2 years ago