Welcome to Manicprogrammer Sign in | Join | Help

NMVP Inside-Out First Chapters Revealed!

Anyone who reads my blog knows for now that I am writing a book on the MVP and Composite MVP patterns and the NMVP Framework. This book is going very well and it has been a very enjoyable experience.

The book is organized in parts, with so far the parts being:

Part 1 - Enterprise Patterns used in NMVP

Part 2 - NMVP Framework Core Concepts

Part 1 is done and that´s what I´m releasing here for evaluation by anyone who would like to know a little more about the MVP and CMVP patterns (or at least how I see them).

Just as a heads out, this is just a draft, so please help me improve it with constructive criticism. I know that there must be a lot of grammar, since English is not my mother language and I´m trying my best of writing the book in the language I believe will make it accessible to the widest audience possible.

I hope to be hearing from you readers of my blog (all you 3, lol) soon so I can keep the book more to your taste. I´ve written most of chapter 4 and going now onto chapter 5. Hope you´ll enjoy reading it as much as I´m enjoying writing it.

Please remember that I´ll be releasing the book as an online FREE PDF version, as well as a printed version on hardcover or paperback. I do prefer to read books on paper than online, and since the book will probably be less than US$10,00 I´d read in the paper version, but you have the choice of reading where it suits you best.

The book PDF and source code are attached to this post. The sample code is the same that is demonstrated throughout the book.

#95

Published Sunday, February 11, 2007 11:13 PM by heynemann
Attachment(s): BookAndSource.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: NMVP Inside-Out First Chapters Revealed!

Saturday, February 17, 2007 5:54 AM by Paulo Quicoli
Olá,
Primeiramente, parabéns. Está tudo muito bem explicado :), mas,
no pdf nao tem os fontes :( Aliás fiquei com uma dúvida....
No primeiro exemplo de MVP, vc diz que IProject é seu Model correto ?. Só que qdo vc implementa o presenter, vc diz que ele é sua View. E na view o que temos é uma implementação de IProject. Minha dúvida é...  a classe concreta que implementaria o Model que nesse caso é IProject está ligada à view por databinding ? é isso ? Porque se não for, não to vendo ligação do presenter ao model e nem ligação da view a um model.  Abraço !

# re: NMVP Inside-Out First Chapters Revealed!

Wednesday, February 21, 2007 9:27 PM by heynemann
Hi Paulo,
Even though I understand your post in portuguese I´ll answer it in english ok?
His question is:
--------------------
In the first MVP sample, you say that IProject is your Contract, right? Only when you implement the presenter you say he´s your view. And in the view what we have is an implementation of IProject. My question is... the concrete class that implements the Contract which in the case is IProject is connected to the view by databinding?
--------------------

Not really Paulo.
Let me try to explain it once and for all :)

The model you refer to is actually the Contract. The contract is an interface to which the view must conform to. Imagine a contract of a company. It outlines the details of a commercial trade for example. The same logic applies here.
So the IProject you are referring to is the contract. The contract is so important because it allows the view and the presenter to perform interrelated operations without even knowing each other. The presenter is bound to an instance of IProject, and since the view implements IProject (not databound to IProject) the view works as an instance for the presenter, got it? If you still don´t get it, get in touch with me and we´ll clarify ok?

Bernardo Heynemann

# re: NMVP Inside-Out First Chapters Revealed!

Thursday, February 22, 2007 2:04 AM by Jason Finch
Thanks very much for the work you've done with the book sofar and the NMVP framework.  I'm tinkering with igloo, Billy McCafferty's work on CodeProject and now this framework to see what fits the easiest for us.  Thats the problem with choice, deciding.

# re: NMVP Inside-Out First Chapters Revealed!

Thursday, February 22, 2007 2:11 AM by Jason Finch
The zip file contains the PDF and a zip of the PDF (I think source is missing).

# re: NMVP Inside-Out First Chapters Revealed!

Thursday, March 01, 2007 6:39 PM by heynemann

I´m very sorry.

Just updated the zip file.

Thanks for the tip Paulo and Jason.

# re: NMVP Inside-Out First Chapters Revealed!

Wednesday, March 21, 2007 9:37 AM by Vdovichenko Vasiliy

Can you give example of using NMVP whith WinForms ?

# re: NMVP Inside-Out First Chapters Revealed!

Wednesday, March 21, 2007 10:02 AM by heynemann

Hi Vdovichenko,

Thanks for your comment.

Well I didn´t post any samples for Windows Forms, because they are VERY similar to the ASP.Net one. You just build a windows form exactly like the ASP.Net one and implement the contract.

If you have any more doubts, my msn is bernardo@perlink.com

# re: NMVP Inside-Out First Chapters Revealed!

Wednesday, April 04, 2007 1:47 PM by Brad Jones

Bernardo,

Any chance you can release any more chapters, even if they aren't yet complete? Excellent work by the way!

Cheers,

Brad Jones

pjones0619<at>rogers.com

# re: NMVP Inside-Out First Chapters Revealed!

Wednesday, April 04, 2007 5:04 PM by Bernardo Heynemann

Thanks a lot Brad. I'll be releasing chapters 4-6 soon... I'll do revision on them first...

# re: NMVP Inside-Out First Chapters Revealed!

Tuesday, April 24, 2007 9:48 AM by Benedikt Eckhard

Hi Bernardo,

I just read the first two chapters of your book and really like it so far. You wanted some feedback so here it comes :-):

* I would suggest that you use some naming conventions. Eg. append "Presenter" to every presenter "View" to every view, and so on. This might not be needed in real projects, but it makes reading code in a book much easier.

* I guess your test cases are written with the Team Systems test framework. I would suggest switching (of course just for the book) to NUnit or MBUnit as users might not have Team System on their computers.

* It might be just a personal preference, but I really like follow up references that point to detailed information. Pointing to Wikipedia (which I wouldn't do anyway) is unnecessary in my opinion, as simple googling and clicking on the first five links should be in the skill set of your target group... Point to material that might be hard to find or shows exactly what you  want to show.

Thanks for sharing your drafts and keep up the very good work!!

Benedikt

# re: NMVP Inside-Out First Chapters Revealed!

Monday, June 11, 2007 2:44 PM by heynemann

Thanks a lot Benedikt. I´m working on changing unit tests to NUnit and on coding conventions for the book (Hey it´s a draft but that´s no excuse!).

Thanks again for reading my book. Hope you´re enjoying the framework as much as the book.


Enter the text you see in the image:

Leave a Comment

(required) 
required 
(required)