Code Snippets
March 22, 2006 11:58 AM   Subscribe

Code Snippets is a tag-based repository for (duh) code snippets.
posted by turbodog (15 comments total)
 
The layout is broken on IE/PC, so i'm not particualrly inclined to trsut it for HTML/JS/CSS.
posted by Artw at 12:25 PM on March 22, 2006


Apoper search would be nice too. TBH doing everything by "tags" is extremely limiting.
posted by Artw at 12:26 PM on March 22, 2006


Apoper = a proper
posted by Artw at 12:27 PM on March 22, 2006


artw: If you don't mind me asking, why do you still use IE?
posted by slater at 12:30 PM on March 22, 2006


There's a fair bit of code of questionable utility -- or at least unknown and undocumented purpose -- piled up there. Such as the highly baffling "Keep light on using thread". I'm guessing that's a handy example for some embedded platform or other, but the lack of code description in the repository is appalling.
posted by majick at 12:35 PM on March 22, 2006


It's dog slow, but I don't mind it having shitty html or poor documentation.

I know when I am playing around with Ruby, that there are a lot of times that I know what I want to do, but I'm not quite sure how to get there and looking at somebody else's example can be a great help.

I wouldn't cut and paste any of this code, though.
posted by empath at 12:40 PM on March 22, 2006


That seems like it would be almost entirely useless in practice.

There's a lot of REBOL code, though.

but seriously when was the last time you grabbed some random code snippet and stuck it in one of your programs?

I mean I'm sitting around writing some rebol code and I get the urge to dirize a file, but I need to use a path, so obviously I go online and find that function, rather then writing the one line of code it required.
posted by delmoi at 12:48 PM on March 22, 2006


Artw, I'm wondering the same thing myself -- is it because you haven't heard of the issues with it, or you don't know about/want to bother with alternatives, or it's a work computer locked to IE, or what?

I'm a web developer, so such things are interesting to me
posted by davejay at 1:17 PM on March 22, 2006


A lot of that PHP code is crap.
posted by 2sheets at 1:20 PM on March 22, 2006


s/PHP//;
posted by boo_radley at 1:35 PM on March 22, 2006


also, Gregg Irwin seems to be an unstoppable REBOLing machine.
posted by boo_radley at 1:38 PM on March 22, 2006


Well, it's looks like this morning's abortive project in Opera, too. I'd try IE next, because "everything works in IE", so I'd be in the same boat as Artw for a while.
posted by NinjaPirate at 1:45 PM on March 22, 2006


majick: the tags show that the snippet you mentioned is for "series 60", a kind of handheld. The purpose of the snippet seems to be to keep the (back)light on by resetting a timeout every 5 seconds.

So, yeah, a little more descriptive text would be great.

Like others have said, I don't often incorporate snippets into my program. However, the Python Cookbook has often given me a function I needed without making me take the time to research, write, and debug it. For instance, while it was just for some wankery, I was able to steal this neat prime number generator which was important in the solution to several of the problems.
posted by jepler at 3:10 PM on March 22, 2006


davejay: Asking why one would use IE is a bit like asking "Why use a PC? Don't you know Mac's exist?" Both are good products, each with their share of benefits and problems. Something like 80% of users use IE, and not all out of ignorance. The benefits of Firefox don't always justify converting or even mean anything to most users. That being said, I use both. If adblock didn't exist for Firefox or if it did for IE, IE would be my browser of choice, simply because it's already there and it already works. I could care less about religious wars, I only care about specific functions, and they both do it for me, except for that one thing.
posted by blue_beetle at 3:40 PM on March 22, 2006


What a bunch of haters. It's only got 1600+ entries so far. Given time I think this could be hella useful.
posted by butterstick at 7:19 PM on March 22, 2006


« Older Slashdot interview with Isam Bayazidi   |   Bridge to the past Newer »


This thread has been archived and is closed to new comments