Announcing Nuki 0.1 (VoodooPad, watch out!)
January 6, 2008
Dear interwebs,
Today I finished the first release of a simple, database-backed and web-accessible Wiki software written entirely in Nu and making use of the NuHTTP and NuMarkdown libraries. I call it Nuki (pronounced ‘nookie’), and I wrote it to teach myself how to integrate Core Data and NuHTTP in a simple application.You can check it out from Subversion here. Read on to see what I learned whilst writing this application.
At first I encountered some difficulty getting the Core Data store and NuHTTP server up and running - but then I had a brainwave: why not copy Tim’s application skeleton from Nudge? I did so, and all was good.
My Core Data model is very simple - no relationships at all, just a single model class - so there was very little interesting to talk about there. By placing the (attr-accessors) macro inside the NSManagedObject subclass, though, I got all the Core Data accessor methods for free - delicious! And to those who say I’m tainting the MVC paradigm by including code inside the model on how to render HTML links for a given page, I say that you’re probably right.
Having a proper macro system is a breath of fresh air. I realized just now that the degree to which I like a language is a function of its extensibility, its standard library and its power for syntactic abstraction - Nu, as far as I know, is the only one that satisfies all three of those criteria.
Entry Filed under: code. .
2 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1.
Brandon Werner | January 6, 2008 at 9:25 pm
Awesome work! I can’t wait to dive in to your code!
2.
Colin Wheeler | March 9, 2008 at 4:16 am
I wanted to try it out and see what it was like because I use VooDooPad everyday for notes @ school, but unfortunately it crashes for me every time
http://img240.imageshack.us/img240/687/picture2rh8.png
do you know what would be causing this?