Archive for the ‘Prototyping’ Category

Regular expressions: part 2

By farcaller July 2nd, 2008

“ObjPCRE is a well documented PCRE wrapper written in 100% Objective-C/C. It can be easily implemented into any Cocoa application. (MIT License)” (from cocoadev).
The code is just two files: objpcre.h and objpcre.m. They are easily compiled “in-tree”, and don’t look like some big ugly crap that I have to carry around. “-lpcre” is ok for [...]

fcgiapp: is it enough?

By farcaller June 15th, 2008

I’m now thinking about making a test code capable of FastCGI (currently only CGI support is provided). fastcgi.com mentions some C library that is capable of emulating FastCGI environment for CGI applications. There’s also extended version based on fcgiapp. The only problem is very little documentation. I’m not sure if all that would scale well.
I’m [...]

Sample OCFW application

By farcaller June 6th, 2008

I’ve decided to code a small OCFW application to make it more clear to me how it would look from user point of view. Some parts of the code below are already in working state, others are nothing more than just a prototypes. You are warned!

Think first, code last

By farcaller June 2nd, 2008

I’ve got to code some of the basic stuff for FOW (simple CGI client) and figured several bad things. I didn’t make enough research for RequestHandler so now I’m somewhat collapsing due to the fact I have parts of code that couldn’t be joined together. So, I’m back to pen, paper and UML.
Now, how is [...]

Request object

By farcaller May 27th, 2008

Here’s how request object looks like at the moment. You can query the current request by a static current() method. You can resolve GET or POST entries or query request header value directly. There’s no way to process requests with several values with single key (is it really useful?) and no file uploads handling.
I’m still [...]

Common Gateway Interface

By farcaller May 27th, 2008

Yesterday I’ve been reading through CGI specs to figure how it works. CGI is the most simple way to test FOW core parts - you just make a standalone binary and feed it with “webserver-like” data. With some luck you can even make unit testing work.

Tags:

Prototyping and other stuff

By farcaller May 27th, 2008

How serious could I be in writing web application in Objective-C? Ok, seems to be that this idea has really caught me. Previously (something like December ‘07) I have got an idea of writing web application framework in Qt (yeah, Qt for everything). Later on I’ve found C++ too inflexible for my needs and switched [...]

Tags: , ,