MVC for the Rest of Us

Comments

Good slide show but it's a little boring. Try to add more bright pictures.

Posted By: Louis Vuitton Handbags On: 03/10/11 10:44 PM

Keske seni qormeseydim gonul verip seveseydim

Posted By: Mynet Sohbet On: 03/14/11 8:44 AM

mind blowing . . .thanks slidesix

Posted By: custom thesis writing On: 04/06/11 8:05 AM

Thanks for sharing, your article made me learn and improve thanks


Posted By: mbt shoes on sale On: 04/12/11 9:28 PM

Obama boasted that his government has increased patrols on the border law enforcement officers; more law enforcement authorities have been screening the entry of goods and so on. <a href="http://www.proutdoor.com/">Timberalnd Classic Boat</a>,Timberalnd Classic Boat
<a href="http://www.takesneaker.com/">nike dunk high shoes</a>,nike dunk high shoes
<a href="http://www.packersjerseysale.com/">Clay Matthews Jersey</a>,Clay Matthews Jersey
<a href="http://www.steelersjerseysale.com/">Ben Roethlisberger Jerseys</a>,Ben Roethlisberger Jerseys
<a href="http://www.dunknot.com/">nike sb dunks</a>,nike sb dunks
<a href="http://www.shoebars.net/">vibrams five fingers</a>,vibrams five fingers
TL006.1106

Posted By: nike dunk low pro On: 06/07/11 9:12 PM

Thank you for your share, this is a good article!

Posted By: St. Louis Cardinals Hats On: 06/14/11 5:25 AM

thank you for enjoy1

Posted By: kate middleton engagement ring On: 07/24/11 4:54 AM

Informative post !
I reading your blog today it's very interesting and informative for everyone.

Posted By: Dissertation methodology On: 09/16/11 5:39 AM

Very good.

Posted By: ugg boots sale On: 09/19/11 9:36 PM

asdfag

Posted By: Nike Shoes Online On: 09/20/11 3:43 AM

patent leather boots. Buy a new leather boots due to the factory, the sales process is relatively long

Posted By: cheap jordan heels for women On: 10/16/11 9:34 PM

in addition to annual autumn fashion fashion show, the major fashion brands are more willing to launch in early spring series.Was considered to be the transition series of spring fashion

Posted By: gucci hats for men On: 10/18/11 9:39 PM




So try it, and suddenly realized that the beautiful sound of the shock,

Posted By: beats studio headphones on sale On: 10/18/11 10:17 PM

Snow boots need to be placed to dry naturally, remember not to use the dryer or let the boots exposure to the sun. Please shoes to dry up

Posted By: cheap ugg boots for sale On: 10/22/11 5:49 AM


Just after the beginning of winter, thick warm fur began selling in the upper body warm attention of colleagues, a pair of fur boots make you even more stylish and warm, and often wears a winter coat, jeans, legging so ingenious, it is enjoy the pretty shape and winter warmth. Lamb wool leather boots, suede material and nude sexy height, dress or pants amplified with charm. To see the shoe at first glance, think of a word is: luxury, large rabbit tightly wrapped boots upper part, it is the upper of the boots in for!

Posted By: cheap ugg boots for womens On: 10/26/11 10:10 PM

get rid of dull black color it. Gray is the most easy to match colors, gray print gown with Slim jeans design, to the gentle image of women increased by a little gentle,

Posted By: ugg Classic Cardy outlet On: 10/27/11 8:33 PM

"In 1995, Deckers paid $ 17 million acquisition of Australia brand UGG, UGG boots have been producing and selling. In 1978, UGG boots sold in the United States. In the past 15 years, UGG production and wholesale prices by a big margin, new product lines, footwear, clothing, handbags and accessories. Currently, UGG opened 25 stores in the world, Deckers expects UGG2010 total annual income of $ 800 million.

Posted By: cheap ugg On: 11/02/11 3:36 AM


Interesting post. Thanks.

Posted By: thesis paper On: 11/03/11 9:40 AM

I thuohgt I'd have to read a book for a discovery like this!

Posted By: Katty On: 11/24/11 10:16 PM

it is a love of the unique charm! Sweet at first glance like a big bow like to have. Side of the three-dimensional Pengpeng bow shape, is very sweet,

Posted By: cheap uggs On: 11/24/11 10:22 PM

<a href="http://www.uggbaileyforsale.com/ugg-classic-short-paisley-5831/ugg-

classic-short-paisley5831chocolate-p-102.html"></a>You should go to the <a

href="http://www.uggbaileyforsale.com/">ugg outlet</a>, if you can get many types of

copy. My little son of a cousin living in Australia, recently received a pair of <a

href="http://www.uggbaileyforsale.com/">Ugg bailey for sale</a> a pair. They are light

brown in color, I was surprised how warm they feel. These <a

href="http://www.uggbaileyforsale.com/">Bailey Button ugg</a> are lightweight, easy to.

My cousin who insist, even if I try to protest because of cost. I quickly use their slippers in

the winter, even if they are <a href="http://www.uggbaileyforsale.com/">uggs classic

short</a>. <a href="http://www.uggbaileyforsale.com/">uggs classic

tall</a> have a good sole and bottom also have great <a

href="http://www.uggbaileyforsale.com/ugg-classic-cardy-boots-5819-c-8.html">Classic Cardy Boots

UGG Sale</a>. You can also purchase the same quality materials slippers, <a

href="http://www.uggbaileyforsale.com/">women ugg boots</a> if you are not keen.

Australia <a href="http://www.uggbaileyforsale.com/ugg-bailey-button-boots-5803-c-

5.html">Bailey Button Boots UGG</a>, can be purchased in Australia or Nordstrom in the

United States. You should buy at the best prices and best selection around, because prices may

vary. Remember to guard against fake floating around the market, because there are many copies.

<a href="http://www.uggbaileyforsale.com/ugg-classic-short-boots-5825-c-11.html">UGG

Classic Short Boots</a> are also available on eBay, and from one of many websites devoted

to <a href="http://www.uggbaileyforsale.com/ugg-classic-tall-boots-c-14.html">UGG Classic

Tall Boots</a>. If you are lucky, then you will find sites that offer free shipping.

Shipping price is only likely to be expensive if you buy them from Australia. You can ask your

friends or relatives in Australia, look around until they find a sale. Then, you can save a lot of

money, they are transported by the sea boots.

Posted By: ugg outlet On: 11/25/11 12:51 AM

good

Posted By: porno sex On: 11/27/11 6:52 AM

At the midnight opening of Macy’s Herald Square on Thanksgiving, about 9,000 customers were in line, up from 7,000 last year.

Posted By: Fall winter 2012 On: 11/28/11 1:55 AM

Add Comment

Comments have been closed.

Transcript

no image

Slide Text

Slide Notes


Slide 1


MVC for the Rest of Us
Dennis Clark

NCDevCon 2010
Raleigh, NC, USA

no notes exist for this slide

Slide 2


About Me
Web application engineer
12 years with Carolinas Healthcare System
ColdFusion (versions 4-9)
Internal business applications (mostly)
Enterprise integration
Open-source moonlighter
Model-Glue devteam member

no notes exist for this slide

Slide 3

no text exists for this slide

no notes exist for this slide

Slide 4


Agenda
Why use MVC?
MVC in CFML
Model-Glue Example
Developer Workflow

no notes exist for this slide

Slide 5



Why Bother with MVC?

no notes exist for this slide

Slide 6



Making Spaghetti (Code)

no notes exist for this slide

Slide 7


Starts Off Straight

no notes exist for this slide

Slide 8

no text exists for this slide

no notes exist for this slide

Slide 9



“Waiter, the meat doesn't taste right;
please have the chef replace it.

Oh, and make sure to keep all the noodles and sauce intact.”

no notes exist for this slide

Slide 10



Spaghetti code is code without
clear separation of concerns

no notes exist for this slide

Slide 11


Some Software Concerns
Domain logic
Presentation
Persistence
Performance
Security
Scalability
Compatibility

no notes exist for this slide

Slide 12



Our most volatile concern is presentation,
so let's focus on isolating that first.

no notes exist for this slide

Slide 13


Meatballs are Better

no notes exist for this slide

Slide 14


Introducing MVC
Model-View-Controller is a software pattern that isolates presentation logic from
other application logic

no notes exist for this slide

Slide 15



MVC in CFML

no notes exist for this slide

Slide 16


Model-View-Controller

no notes exist for this slide

Slide 17


Front Controller

no notes exist for this slide

Slide 18


Event Elements
Event
Type of request
Examples: loginForm, login, loginSuccess
Context
Container for request data
Initialized with URL and form scopes
Event Handler
Rules for processing event

no notes exist for this slide

Slide 19


Event Handling

no notes exist for this slide

Slide 20


View
CFML pages (*.cfm)
Uses data in context to render content
Multiple views may be combined
Including views
Stacking views

no notes exist for this slide

Slide 21


Model
CF components (*.cfc)
Implements domain logic
Not constrained by MVC framework

no notes exist for this slide

Slide 22


Controller
CF components (*.cfc)
Invokes domain logic (model)
Mediates between context and model
Controls event flow
HTTP redirects
Queuing events, controllers, views

no notes exist for this slide

Slide 23


Defining Event Handling
By Configuration
XML files
Explicit event handlers
By Convention
Directory and file naming
Implicit wiring of events

no notes exist for this slide

Slide 24


Some CFML MVC Frameworks

no notes exist for this slide

Slide 25


Model-Glue Login Example
Simple view
Layout view
Form view
Controller
Model

no notes exist for this slide

Slide 26



Development Workflow
with MVC

no notes exist for this slide

Slide 27


Parallel Development
MVC supports specialization
Designers can focus on views
Engineers can focus on model
Isolate work by using separate events

no notes exist for this slide

Slide 28

no text exists for this slide

no notes exist for this slide

Slide 29


Designer Workflow
Build views
Use stacking for layout / skinning
Use 'exit events' for later rewiring
Mock events
Mirror real events
Use mocking controllers for data
Hard to mock end-to-end event flow

no notes exist for this slide

Slide 30


Engineer Workflow
Build model
Build outside the MVC framework
Unit testing frameworks are helpful
Test-Driven Development
Test events
Can be used to build / test controllers
Simple controllers can be tested during integration instead

no notes exist for this slide

Slide 31



Wrap Up

no notes exist for this slide

Slide 32


Summary
MVC in a Nutshell
Model implements business logic
Views present the content
Controllers control event flow
MVC untangles presentation logic
Better for designers and engineers

no notes exist for this slide

Slide 33


MVC Framework Resources
ColdBox
http://www.coldboxframework.com/
ColdFusion on Wheels
http://cfwheels.org/
Framework One
http://fw1.riaforge.org/
Mach-II
http://www.mach-ii.com/
Model-Glue
http://www.model-glue.com/

no notes exist for this slide

Slide 34


Other Frameworks & Resources
MXUnit (unit testing)
http://www.mxunit.org/
ColdSpring (CFC container)
http://www.coldspringframework.org/
ColdFusion-OO Google Group
http://groups.google.com/group/coldfusionoo
CF Design Patterns
http://www.coldfusiondesignpatterns.org/

no notes exist for this slide

Slide 35



Questions?

no notes exist for this slide

Slide 36


Where to Find Me
Email: boomfish@gmail.com
Twitter: @boomerangfish
Blog: http://blog.bullamakanka.net/

no notes exist for this slide

Slide 37



Thank You!

no notes exist for this slide