Archive for the ‘Coding Tutorials’ Category

 

Nested Records in Sproutcore

January 24th, 2010

On the project that I am working on, we created this construct called Nested Records. I have just ported it over to the Sproutcore framework. It is extremely useful for data models that use a nested structure. These include most document based database systems like CouchDB and Persevere. These databases and subsequent APIs sometimes need [...]

Read full article   »   4 Comments »

Basic View API (part 2)

August 23rd, 2009

In part 2, we will discuss some more advanced concepts in the View API like composite views. We will talk a little bit about the mechanics of how to create childViews as a part of the View API. Creating child views is a very important aspect of creating Sproutcore applications. You will probably do this [...]

Read full article   »   2 Comments »

Basic View API (part 1)

August 17th, 2009

We will talk about some of the fundamental elements of the View API and use this knowledge to build an advanced composite view. The Sproutcore View API in 1.0 is very impressive and has a lot of power behind it, but with all that power it can sometime be very intimidating to understand where to [...]

Read full article   »   3 Comments »

Root Controller Paradigm

July 30th, 2009

In this blog post, I will spend some time talking about using the power of bindings in the controller layer with the Root Controller Paradigm. This is a really powerful paradigm where you do most of your work in one controller and then let the bindings cascade all the data through a controller chain. This [...]

Read full article   »   3 Comments »

Composite Views

July 29th, 2009

In my last post on bindings, I talked about Rule #2 (The ‘-Path’ Convention) which started a bit of buzz on when and why it is used. First off, it is a naming convention that my team and I have come up with to deal with passing binding paths around in a composite view. A [...]

Read full article   »   5 Comments »

Bindings Unleashed

June 20th, 2009

Bindings are one of the most important aspects of Sproutcore. Bindings give us the ability to do complex UI interactions with very little code. They have turned tedious and error-prone code to update the interface a thing of the past. It now becomes a simple setup and configuration task to wire up things to be [...]

Read full article   »   1 Comment »

Monkeypatching Sproutcore with Mixins

January 9th, 2009

Have you ever needed a function specific to your application, but you want it to work like the rest of Sproutcore? You can use the power of mixins to monkey patch Sproutcore in your application. I needed a call on SC.Record like resourceUrl() but I needed something like pluralResourceUrl() because the RESTful API on the [...]

Read full article   »   No Comments

Sproutcore in TextMate

December 6th, 2008

I love developing with TextMate. I discovered it my Sr. year of college when I saw it in a now infamous video. Since then I’ve used it for all my coding projects and frankly other ide’s give me the jibblies. So today I’ll be showing how I’ve set up my environment with the Sproutcore TextMate [...]

Read full article   »   No Comments

Sproutcore Delegates

November 24th, 2008

Recently I needed to trigger an action when a selection was made on a list view.  Writing my own list view would have been to much work so I figured I’d look for a delegate. I started by looking at SC.ListView and found that it extended SC.CollectionView which has SC.CollectionViewDelegate as a mixin. CollectionViewDelegate has [...]

Read full article   »   1 Comment »