ASP.Net Model View Presenter (MVP) Pattern Update

by mark 11. September 2010 08:50

I have the need to pick up the MVP pattern for my job, so that means a lot of the new HardwawreArmory features are going to be designed using that pattern.

I can only think of one task, currently, that will be "Hello World" easy and that will be the creation of new computers (and accessories) since it is mostly data->form->data and doesn't require too much fanciness.

The only challenge I see is that the IHardware interface that all of the Hardware components use as a contract are going not going to be easy to integrate as they don't really work as a View the way they are designed.

There are a few benefits to this pattern:

  1. Test Driven Development makes more sense. No code is written until I have created my tests. I could do this now, but it doesn't fit my current development flow.
  2. Seriously separated concerns. UI is nothing but UI (Model). View is nothing but functionality (View). And the Presenter is the object handed between the two (Presenter).
  3. I will learn this pattern which should be a good feeder into MCV (or just upgrading to a framework designed to assist MVP like Castle).

I think that I am going to start to put code snippets in here.

Tags:

code | General

Comments

10/19/2010 5:02:44 PM #

Cat clips 42 girl talk

Great site design!!!! Whattheme did you use?

Cat clips 42 girl talk United States

10/20/2010 2:18:45 AM #

Lavinia Haering

I love love love these article !!!! I can’t wait for the nest ones!

Lavinia Haering United States

10/20/2010 2:42:20 AM #

Mahjong online

I mean, very good site. I will visit again soon!

Mahjong online Malta

10/20/2010 3:05:04 AM #

CHI Hair Dryers

Very nice and informative article. Thanks for the quality content and I hope you update your blog frequently as I`m interested in this topic. I`ve already bookmarked this article. Thanx!

CHI Hair Dryers United States

10/20/2010 3:16:33 AM #

Facebook Statuses

Thanks for posting this. i really enjoyed reading this.

Facebook Statuses United States

10/20/2010 7:33:35 AM #

Travel Universe HD Wallpaper

Thanks for posting this. i really enjoyed reading this.

Travel Universe HD Wallpaper United States

10/20/2010 8:33:49 AM #

electronic cigarette

Im not sure the democrats are going to be able to hang onto the house and senate this year. Looks like they will lose the house but hold the senate.

electronic cigarette United States

10/20/2010 3:02:07 PM #

Lynda Paoletta

Great post This saved me a lot of time. Great site I will come back for more info. Helpful blog by the way.

Lynda Paoletta United States

10/20/2010 4:00:53 PM #

Mike Davis

If only I discovered this site years ago. Really enjoyed my time here!

Mike Davis United States

10/20/2010 4:39:36 PM #

Mahjong

This was a really nice portal. Thanks for sharing it with me!

Mahjong Mexico

10/20/2010 7:54:44 PM #

Eugenio Okuna

Someone I work with visits your blog regularly and recommended it to me to read too.  The writing style is superior and the content is top-notch.  Thanks for the insight you provide the readers!

Eugenio Okuna United States

10/20/2010 9:28:16 PM #

Eileen Cucufate

Because of reading your blog, I decided to create my own.  I had never been interested in keeping a blog until I saw how helpful yours was, then I was inspired!

Eileen Cucufate United States

10/20/2010 10:33:57 PM #

Hunter Trautz

FANTASTIC! This is such a superpost and very well thought out. This is information I have been searching for. This will really help us to better manage our business. I also read many of your other articles and found many that were full of info. I will recommend to my employees to read your blog. Thanks VERY MUCH for your efforts. Our industry is very dangerous these days and any help we can get is greatly appreciated. If there is anything I can share with you, please feel free to email us.

Hunter Trautz United States

10/20/2010 10:37:06 PM #

Babara Sterkenburg

Hey.  Is there a reason why this page looks screwed up in Chrome?  Anyway a bit of advice, do a second writeup soon!

Babara Sterkenburg United States

10/21/2010 1:18:16 AM #

Rashad Cushing

I believe most people would agree with your post. I am going to bookmark this web site so I can come back and read more posts. Keep up the great work!

Rashad Cushing United States

10/21/2010 1:54:52 AM #

movers in Ontario

Nice blog. I've been wanting to start my own sometime but never got around to it.

movers in Ontario United States

10/21/2010 2:41:18 AM #

Ward Decosta

Hey can I reference some of the material from this blog if I link back to you?

Ward Decosta United States

10/21/2010 3:27:49 AM #

Cross cutting shredder

I liked this article

Cross cutting shredder United States

10/21/2010 5:35:15 AM #

Margert Policare

Excellent website. Nice piece of info, you describe the topic very well

Margert Policare United States

10/21/2010 6:40:31 AM #

black hat seo forum

Where did you guys get this classified info? Please write me back

black hat seo forum United States

10/21/2010 7:16:35 AM #

2010 Audi TT RS Roadster 8 HD Wallpaper

Great site design!!!! Whattemplate did you use?

2010 Audi TT RS Roadster 8 HD Wallpaper United States

10/21/2010 7:32:57 AM #

adventure game downloads

Can you please deliver further points on this matter??? By the way your webpage is extremely good. Cheers!!

adventure game downloads United States

10/21/2010 8:32:00 AM #

megavideo premium account

Where did you get this theme? Ive seen it somewhere before but I can't figure out where I can download it

megavideo premium account United States

10/21/2010 10:17:00 AM #

FantaZ FantaZ.com Join Sign Up Signup ZBO Rockford, IL

He is not laughed at that laughs at himself first.

FantaZ FantaZ.com Join Sign Up Signup ZBO Rockford, IL United States

10/21/2010 10:18:30 AM #

kredyty konsolidacyjne bez bik

well I guess you learn something new everyday. Got something outta this that I realize before. Thanks…

kredyty konsolidacyjne bez bik United States

10/21/2010 11:05:17 AM #

Spiritual forum

Its a pity you dont have a donate button, i would donate some =)

Spiritual forum United States

10/21/2010 11:18:04 AM #

Alberto Laisure

Comfortabl y, the post is actually the best on this laudable topic. I harmonise with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be adequate, for the phenomenal clarity in your writing. I will at once grab your rss feed to stay abreast of any updates. Authentic work and much success in your business dealings!

Alberto Laisure United States

10/21/2010 11:38:55 AM #

progressive eyeglasses

Thanks again. I Can't wait for reading your next one. Is there any newsletter coming with your website?

progressive eyeglasses United States

10/21/2010 12:37:57 PM #

Rodger Conquest

It's really nice website you have, very clever design! I think I will do something similar for my blog as well. Thanks for the nice share.

Rodger Conquest United States

10/21/2010 12:56:08 PM #

Rigoberto Maniaci

very interesting read

Rigoberto Maniaci United States

10/21/2010 1:28:36 PM #

Ajay

very informative information you have posted, looking forward to reading more posts

Ajay United States

10/21/2010 5:19:09 PM #

Designer Clothing

How-do-you-do, just needed you to know I have added your site to my Google bookmarks because of your extraordinary blog layout. But seriously, I think your site has one of the freshest theme I've came across. It really helps make reading your blog a lot easier.

Designer Clothing United States

10/21/2010 5:53:10 PM #

Bryant Depasquale

thank you

Bryant Depasquale United States

10/21/2010 8:33:05 PM #

Linda Tacderen

Useful info. Nice piece of info, you describe the topic very well

Linda Tacderen United States

10/21/2010 9:25:01 PM #

tjoob

Hey man, was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. You, my friend, ROCK!!!

tjoob United States

10/21/2010 10:44:24 PM #

Carpet Cleaning St. Louis

I appreciate you sharing this blog post. Keep writing.

Carpet Cleaning St. Louis United States

10/22/2010 12:13:54 AM #

Carpet Cleaning Gainesville

Thank you ever so for you blog post.Really looking forward to read more. Cool.

Carpet Cleaning Gainesville United States

10/22/2010 12:30:12 AM #

cameras digital slr

Hey, I found your blog on bing.It's really well written and it helped me a lot. Continue the good work.

cameras digital slr United States

10/22/2010 12:52:30 AM #

Carpet Steam Cleaning Gainesville

I truly appreciate this blog article. Want more.

Carpet Steam Cleaning Gainesville United States

10/22/2010 3:28:10 AM #

Compact refrigerator

Where is your rss? I cant find it

Compact refrigerator United States

10/22/2010 5:36:27 AM #

Watch Harry potter and the deathly hallows online

watch harry potter 7 online free

Watch Harry potter and the deathly hallows online United States

10/22/2010 6:15:16 AM #

Augmented Reality Browser

Augmented Reality Movies

Augmented Reality Browser United States

10/22/2010 7:22:07 AM #

Vimala Raman 2010 Latest HD Wallpaper

Where is your rss? I cant find it

Vimala Raman 2010 Latest HD Wallpaper United States

10/22/2010 10:10:28 AM #

Daren Prately

I got this straight from several trainees.

Daren Prately United States

10/22/2010 2:52:26 PM #

Download free games

A good post. Well done.

Download free games Kenya

10/22/2010 3:07:21 PM #

Carpet Cleaning Jacksonville

Thank you for your blog.Really thank you! Great.

Carpet Cleaning Jacksonville United States

10/22/2010 4:32:10 PM #

Carpet Cleaning Lexington KY

Thanks for the blog article.Much thanks again.

Carpet Cleaning Lexington KY United States

10/22/2010 5:56:22 PM #

Arnette Shortey

Noel Falling

Arnette Shortey United States

10/22/2010 6:30:48 PM #

Cockatiel Care

I don't understand this post. I must not be getting something basic here.

Cockatiel Care United States

10/22/2010 9:20:17 PM #

fantasy basketball rankings

I would like to use the content here for my site.  You can be sure I'll post a link back to this post, and I won't just rip the entire article.  I just want to use what you have here to comment on.  Please notify and and tell me if I can go ahead and do it.

fantasy basketball rankings United States

10/22/2010 10:39:46 PM #

Lorraine Kaperonis

I enjoy visiting daily to see your writings.  I have your page bookmarked on my favorite read list!

Lorraine Kaperonis United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



TextBox

Tag cloud

    RecentPosts