> See if you can find some bottleneck in one of your Python/Ruby/Perl apps that's chewing a lot of CPU time.
I found that hard to do as a starting developer who didn't know what was actually a bottleneck in my code, but I did have a particular library/gem that I wrote myself that did a few things I constantly needed (think of authentication in a web app, it's almost always included). So I rewrite it in C. It didn't really make it faster, or better, but I learned a bunch of C.
Re:Joel Spolsky is doing an IAmA on reddit
by haberman on Thursday April 21, 2011 @02:16AM
(#2469639)
> I found that hard to do as a starting developer who didn't know what was actually a bottleneck in my code
That's what a profiler is for! Even experienced developers use them, it's the only reasonable way to find bottlenecks.
> It didn't really make it faster, or better, but I learned a bunch of C.
That works too! :)
It might not be a good idea to actually use your fast C function in production (if you're new at C you might have a security vulnerability in there, and there could be maintenance headaches). But you'll have learned a lot.