Server-Side Magazine

Category: Ruby

Sproutcore MVC VS Rails MVC

Sproutcore and Rails both use the MVC pattern to organize their code bases, so their architecture must be the same right? Well, not quite. There are actually several differences between the Sproutcore MVC pattern and the Rails MVC pattern that trip people up when they’re first starting to work in Sproutcore. This post is my attempt to lay out the two patterns so that their differences can be seen and appreciated. [...]

Ruby for Newbies: Working with Directories and Files

Ruby is a one of the most popular languages used on the web. We’ve recently started a new Session here on Nettuts+ that will introduce you to Ruby, as well as the great frameworks and tools that go along with Ruby development. Today, we’ll look at the Dir and File classes, and how we can use them to work with directories and files. [...]

An Introduction to MVC

MVC, or Model-View-Controller, is an architectural pattern used in software development. Although it’s been around for several decades, it has gained popularity recently as the crux of rapid development frameworks such as Ruby on Rails, CakePHP, Monorail, and JavaScriptMVC.

The aim of MVC is to promote good programming practices and code reuse by separating a web application into three layers: data, presentation, and the interaction between the two. By separating these elements from each other, one can be easily updated without affecting the others.

Continue Reading →

Page 3 of 3123