A Simple Core Data Introduction

This guide assumes you are using Xcode 4 Core data is the feature of Cocoa that makes it the best tool for developing applications for the macintosh. It’s what makes Cocoa a better choice for developing full, feature rich applications than Java or Ruby (not that they’re bad languages) for the mac. The simple reason for this is it allows you to develop amazingly complicated applications in precisely 0lines of code. Even then, you can…






"A Simple Core Data Introduction"

Intro to Bindings in Cocoa (As well as Key Value Coding)

Bindings are an incredibly useful feature of Cocoa. Introduced in Mac OS 10.3 bindings allow developers to create incredibly complex applications in very few lines of code and, as a result, eliminate many bugs from their software that would normally arise from the sheer mass of code a developer would normally have to write. Whilst learning Cocoa, bindings aren’t a necessary thing to learn about and many budding developers will skip over bindings due to…






"Intro to Bindings in Cocoa (As well as Key Value Coding)"

Passing Arguments By Address In C++

For reference, I shall now refer to pass by address as PSA Let’s just get something out-of-the-way. Passing a parameter by address involves using pointers. Yes, those horrible little things that you hated/hate whilst you learnt/are learning C, C++. The idea of pointers is hard to understand and the most common thing novices will say is “Why learn pointers?” Well, this is one of those reasons to learn them. PBA relies completely on pointers and…






"Passing Arguments By Address In C++"

PostgreSQL ORM

PostgreSQL-ORM is an Object Relational Mapper (ORM) that complements Simple. It knows how to map high-level operations to PostgreSQL flavored SQL for Haskell types that are instances of the Model type-class, as well as perform join operations on associations between Model instances. Declaration Creating a Model in Haskell is easy. We simply declare a datatype using record syntax, include a field of type DBKey to hold the primary key and let Haskell Generics do the rest:…






"PostgreSQL ORM"

Getting Started Tutorial: Simple Basic Web Application

This getting started tutorial will get you up and running with a basic web application. At the end you will know how install Simple how to create a Simple application from scratch the structure of a Simple application how to add persistence with PostgreSQL. Guide Assumptions This guide assumes you have a working version of the GHC Haskell compiler, the cabal package manager and an up-to-date version of the PostgreSQL database. The best way to…






"Getting Started Tutorial: Simple Basic Web Application"

Simple Templates

Simple comes with support for the embedded templating language defined in the package simple-templates. Templates let you embed dynamic content in HTML, JSON or any other text format you return in your responses. Using with a Simple app Adding template support in your app is as easy as declaring an instance ofHasTemplates for your app settings:

HasTemplates has default definitions for all of its methods. However, in most cases you’ll probably want to override…






"Simple Templates"

The smpl Command-line Utility

Simple ships with a command-line utility, smpl, that helps bootstrap applications as well as run then in development mode. Synopsis

Global Options

Creating an application

Creates a new Simple application in the directory app_name. The Haskell module for the new application is the CamelCase derivation of app_name. For example, an app with the name test_app would be created with the module nameTestApp. By default, only minimal functionality is included in generated apps.…






"The smpl Command-line Utility"