Blog

Luis Majano

November 20, 2017

Spread the word


Share your thoughts


Here are our slides from our ColdBox Hierarchical MVC presentation at this year's Adobe ColdFusion Summit. You can also find the source code for our demo here: https://github.com/lmajano/hmvc-presso-demo or you can install it via CommandBox: box install lmajano/hmvc-presso-demo.


10 years ago, MVC was all the rage in web apps. It taught us to take our mountain of spaghetti code and start to call forth layers; separating the responsibilities of our code. This was great, but the way we should build apps has evolved again and this time it's away from monolithic app design and into modularity. Instead of having one giant custom-built application, there are huge advantages to separating the functional pieces of your code as well to break large applications down into many smaller pieces.

This can make for easier maintenance on a large codebase -- even across multiple teams and repos. It can help you focus on microservices of isolated functionality. And most importantly, it really opens up the door for code reuse-- especially other people's code from the community that has drop-in value for your application.

Let's dive into what a modular MVC architecture looks like in ColdFusion (CFML) using ColdBox 5, how to break apart large applications, write reusable libraries with hassle-free installation, and track our dependencies from the CLI for easy management and automation. This is the future of modern app development. The power of modularity will keep your skills relevant and your architecture extensible. Don't get stuck back in 2005!

Add Your Comment

Recent Entries

The Hidden Costs of In-House Database Management

The Hidden Costs of In-House Database Management

The Hidden Costs of In-House Database Management


Opting for in-house database management involves more than just a salary. Here are some often-overlooked costs associated with maintaining your own DBA team.



1. High Salaries and Benefits


Hiring skilled DBAs is expensive. According to industry reports, the average salary of a DBA in the U.S. can range from $85,000 to over $130,000 per year, depending on experience and expertise. When you add ...

Cristobal Escobar
Cristobal Escobar
November 20, 2024
5 Signs It’s Time to Modernize Your ColdFusion / CFML Application

5 Signs It’s Time to Modernize Your ColdFusion / CFML Application

ColdFusion has long been a reliable platform for building web applications, but like any technology, it requires maintenance and modernization over time. Whether you're using Lucee or Adobe ColdFusion, it’s critical to recognize the signs that your application is no longer meeting today’s standards in performance, security, and scalability. Let’s explore five clear indicators that it’s time to modernize your ColdFusion application and how ColdFusion consulting can help breathe new life into y...

Cristobal Escobar
Cristobal Escobar
November 19, 2024
ColdBox Free Tip 5 - Building Named Routes with a Struct

ColdBox Free Tip 5 - Building Named Routes with a Struct

**Did you know ColdBox provides flexible ways to build routes using structs?** In this tip, we’ll cover how to use the `event.buildLink()` and `event.route()` methods for named routes, a feature that’s especially handy when working with dynamic URLs.

Maria Jose Herrera
Maria Jose Herrera
November 19, 2024