-
Website
http://blog.rubybestpractices.com/ -
Original page
http://blog.rubybestpractices.com/posts/jamesbritt/2009-04-13-solving-the-problem.rc.html -
Subscribe
All Comments -
Community
-
Top Commenters
-
jfcouture
4 comments · 4 points
-
sandal
106 comments · 2 points
-
amoeba
2 comments · 1 points
-
adkron
4 comments · 3 points
-
jollyjerry
7 comments · 3 points
-
-
Popular Threads
-
Ruby Best Practices - Learning From Bad Ideas
3 days ago · 4 comments
-
Ruby Best Practices - The Complete Class
1 week ago · 3 comments
-
Ruby Best Practices - Learning From Bad Ideas
http://github.com/decklin/git-wiki
So a key part of solving the problem here was looking at how someone else solved a tangentially related problem. If you're wondering about where the name came from, I was very sick from the previous night's Indian food when I made the first commit on this project. Romantic, huh?
Thanks James for a great writeup. It'll be interesting to see if others end up using Korma and hacking it for their own needs.
A valuable lesson - something I really should keep in mind more often.
Korma focuses on a specific set of requirements, making it easier for someone to jump in and get started with it for particular tasks.
I like Webby, use it for several sites, and after seeing Korma thought about wiring git into Webby to possibly automate certain tasks, but Webby has it's own quirks and requirements.
An interesting aspect of Ruby (and similar languages) is that there is less need to contrive a one-size-fits all app because many things are getting easier and easier to hand roll.
EDIT: regarding Gregory's subsequent comment, I did not write Korma, so I'm suggesting why one might start form scratch on something rather than adapt existing code. I was already experience with Webby when I saw Korma, and it seemed such a simple, direct, fit for the needs that the idea of using Webby never crossed my mind.
Later, when digging into the code and writing my post I thought about Webby + git, but it would serve different needs than Korma.
Considering that Korma was put together in a night in a half from soup to nuts, I definitely trust < 250 lines of my own code to be easier to hack on than a couple thousand lines of someone elses code (for me, at least :).
As a developer, I totally understand why you'd want to roll your own solution! :)
I'm in the process of updating my blog so I'm looking at different solutions. I was wondering if there was something about Webby that made it seem like a bad choice for this site.
But probably the thing that confuses me the most is why you're using grit. I mean it's natural to use git to version the text files of the posts, but when generating the site, why do you need to access the git objects, instead of working directly with the files?
Grit isn't super necessary here, and may reflect a bit of Korma's git-wiki ancestry. I used it to grab post creation times from the changelogs, but it could be factored out and an alternative approach could be used for retrieving post timestamps.
Another good feature is that because the content is generated only from what's in the git repository, we lower the risk of local file modifications or cruft. But that's admittedly, a small beneficial side effect.
Anyway. Feel free to fork and drop that dependency if you want. Not sure if we'll pull it back upstream or not, but it seems like a reasonable suggestion to me.