Model -View-Controller(MVC) is interestingly simple, but hard in other ways to understand. I've been going through tutorials on MVC.
MVC is so intertwined with one another almost like distant realitives, you don't really know them but at Thanksgiving then you need to know every one's names and how they are related to each other, kind of like MVC. So I thought maybe if I gave MVC some personality that might help.
First off it shouldn't be MVC, it should be: C
M V
because it's all about the controller first, not the other way around. I got stuck for a while thinking I should be working on the model first then the controller.
PERSONALITIES:
Controller: Think of that really grouchy old guy Mr. Potter in "It's a Wonderful Life" and his favourite quote is: " It's my way or the highway!"
View: The person who gets all the credit for everyone else's work...kind of like how CSS robs HTML of all it's glory.
Model: The model is like a pair of underwear, we need it, but we are more than likely going to be changing it everyday(in this case every project).
Controller and View you should try to reuse as much as possible for other things, Model is basically not reused. Each projects model is it's own.
I apologize for mutilating MVC like that, but that's how my mind works, if I can make it more human I can relate :) - Josh
Wednesday, February 6, 2013
MVC - Do they have personalities?
Follow Me
POPULAR POSTS
-
UPDATE September 2016: We are now inundated with bootcamps and it's getting harder to land a junior developer position. I created a co...
-
Yes, obviously Free Code Camp is popular. It's supposed to make things easier for you to learn how to code. My problem is the length of...
-
I have always promised honesty and transparency with this blog. Last time I gave a review about Free Code Camp, I wasn't super supporti...
-
You need a Regular Expression to validate a phone number or a user's email address, so what do you do? Go onto StackOverflow and copy so...
-
What up peeps ! I feel like every day gets better and better, I just gotta' say life is good, No brag, just fact :-) I thought I woul...
BLOG ARCHIVES
-
▼
2013
(115)
-
▼
February
(10)
- End of Week 18 = Total hours 359!!!
- Rails getting Sassy!
- 340 hours of total study time in 17 weeks!
- Finishing the last week of Berkeley 169.1x SaaS Co...
- Cucumber & TDD
- The Turning Point = 314 hours of RoR studying
- MVC - Do they have personalities?
- Berkeley SaaS Week 4 lectures done :)
- Go Ravens!...and I love Cucumber!
- Life as a noob coder is great!
-
▼
February
(10)