specializing in digital media technologies

Digital Media and Communications Insights, Inc.


Larry Ullman's Blog

Understanding MVC: Coding

This entry is part 3 of 3 in the series Understanding MVC

In the first part on this series about the MVC (Model-View-Controller) design pattern, I discuss the individual parts and what they represent. In the second part, I layout some common conventions of MVC frameworks. Both of those posts lead up to this one, in which I want to talk about actual code. In my opinion, it’s not too hard to understand what MVC means, in theory, or to follow a framework’s naming rules, but then you start developing a project and can quickly become confused as to where you actually put your code.

(continue reading…)

Filed under: PHP, Ruby, Web Development — Tags: , ,

JetBrains’s RubyMine IDE

JetBrains just released version 1 of a new Ruby and Ruby on Rails IDE called RubyMine. It features everything you’d expect in an IDE, like code completion, project navigation, HTML/CSS/JS editing, version control software (VCS) support, plus lots of Ruby and Rails-specific features. Version 1.1 of RubyMine is expected in May, with support for version 2.3 of Rails (a significant upgrade). The software is available under two licenses, one (free) for open-source projects and another commercial license ($99 US at the time of this writing).

Filed under: Ruby — Tags: , ,

Benchmarking Web Sites using Siege

Benchmarking a Web site is the simple act of measuring its performance. Measurements may look at how long it takes a page to load in the client (see my post on the YSlow Firefox plug-in). This can be a reflection of the page itself—the amount of images, HTML, JavaScript, CSS, and other media—and a reflection of the client: their download speed, their computer speed, the browser they’re using, etc. Because of the client-side factors, this kind of benchmarking is best, I feel, to just analyze the amount of information being downloaded and how efficiently that’s taking place (again, see YSlow for more on this).

On the other side of the equation, you can perform benchmarks on the server. Finding, and later improving upon, these measurements will improve the experience for all clients, regardless of download speed, computer, or browser type. This is particular important when using server-side technologies like PHP.

Among the many utilities available to benchmark a Web site is Siege, from Joe Dog Software. One of the nice things about Siege, besides it being free, is that it tests a Web server under duress, something that’s impossible for a single individual to replicate. So you can tell Siege to access your site using X number of simulataneous connections and then see the result. On the downside, you have to compile it on Unix-like systems, including Mac OS X, in order to use it. For more, see the Siege Web site and it’s simple-to-follow manual.

Filed under: PHP, Ruby, Web Development — Tags:


Page 1 of 212

If you have a question, are seeking information, want to download files, or generally have any need related to a specific book, please make sure you are using the correct link. Check both the title and the edition.