As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am considering using ASP.MVC 3 in my project. I would like to ask experienced architects to share their opinion about it.
Is it good and relabiale already? What are biggest problems with it? Why would you not use it?
Thank you in advance for help
These questions have been asked a few times before so rather than regurgitating what has already been said here are some links that should give you all the information that you are after:
Biggest advantage to using ASP.Net MVC vs web forms
Comparing Web Forms And ASP.NET MVC - MSDN Magazine
http://blog.mikecouturier.com/2011/03/aspnet-web-forms-versus-net-mvc.html
But my thoughts very briefly are:
The MVC framework (asp.net) has been out since 13 March 2009 when the first stable release was.. well released.
Between then and now the team at microsoft have made a huge number of improvments and I'm sure into the future they will make even more.
They key point for me is testability of applications built in MVC. They are just easier to Unit test, this might not be important to you.. although it should be.
Dependency injection is another thing that is "baked in" with MVC 3, if you like the SOLID principles then DI will be something you are interested in.
Then there is the flexibility of it, This article talks about the 13 points of extension, It is a little out of date now, but still worth a read.
For me it's all about the benefits of MVC over webforms.
With all that said I have to ask you
Why would you not use it?
And I am aware that you might have a good reason not to, one example might be if you have a team of developers who are all control gymnasts with a love for viewstate and things webforms then a move to MVC might not be a good idea for you.
MVC pattern is very comfortable in big applications. It allows you to separate your application in parts: Models, Views and Controllers. So code is much more clear and understandable. I recommend to read this: http://weblogs.asp.net/shijuvarghese/archive/2008/07/09/asp-net-mvc-vs-asp-net-web-form.aspx
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i am trying to learn ASP.Net MVC2/3 and trying to work on a web project that will actually be a blogging project. So i would have the similar structure as a normal blog looks like. I would have title, blog entry, some tags and other stuff. Now i want suggestion on using database. Since the blog entry i.e. an article would be a text with multiple paragraphs and might also contain some images. So i was wondering what kind of database should be good to store these texts. I can use SQL for storing text but not sure if it would be fast enough. Any suggestions on where can i get or i should say learn about good database design for such application.
Also it would be helpful if anyone can suggest a good source for ASP.net MVC3 learning. I can look online for tutorials, but some good books for beginners would be helpful.
Any suggestion would be great.
Thanks. :)
download sqlExpress from Microsoft, it will be plenty fast enough to store/retrieve text, it's free and it works well with .net
I think the easiest way to store the posts would be to store the text as HTML, with tags that point to somewhere in your file structure. When you add an image, you upload it to that directory, and generate a link for it.
Take a look at how wordpress works, that should give you plenty of ideas for writing your own code.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I was wondering if anyone knows a good book or series of articles I can read to get familiar with UI framework internals and how they are created?
Something around MVVM would be nice. To be precise, I want to know exactly how UI framework is being made from scratch.
It includes layouts, controls, rendering (drawing pixels or rendering into other language like HTML), interactions among all these elements, etc.
Any information regarding this is helpful!
Thanks!
Have a look at Prism 4. It's an MVVM UI framework. Also, the Prism 4 developers guide is the best reference on MVVM that I have found yet.
It is an excellent guide, even if you do not use prism, as it covers MVVM concepts such as using commands, handling dialog requests (interactions), and inter-viewmodel communication in depth.
You could take a look at this MIX presentation Build Your Own MVVM Framework. It's from the author of the Caliburn MVVM framework.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We recently built a large ASP.NET web forms application for a client and the main point of contact has told me he wants to learn more about the technical side of web applications. He has no programming experience and has a primarily business background.
I have provided him with many online resources, however he would like to get some book recommendations. After searching myself, I can't seem to find any that fit the bill.
I am looking for a book that will:
Provide a high-level introduction to internet tecnologies (HTTP, TCP/IP, servers, web farms, hosting, scripting languages etc).
Cover issues that commonly affect the success/failure of web applications (performance & scalability, security, data integrity, server maintainence).
Give a very basic introduction to web development (ideally in the ASP.NET world, but not important).
Introduce typical web application architectures (for example describing N-Tier systems, SOA)
I can obviously find tons of books on each of the topics mentioned above, however I can't seem to find any that would be targeted at people that are not (would-be) web developers.
Anyone have any recommendations?
How about this one? Learning Web Design: A Beginner's Guide to (X)HTML, StyleSheets, and Web Graphics by O'Reilly?
It covers most of your topics, but unfortunately doesn't really cover the programming aspect - just the scripting. A good start nonetheless.
Then, if he's still up for it, you can hit him with Beginning Web Development, Silverlight, and ASP.NET AJAX: From Novice to Professional by Apress, which would finish the job and introduce them to MS technologies. "It adopts a “zero to hero” approach..." which is what you are looking for.
You might get better responses on ServerFault since you're asking about a book that mainly centers on server administration rather than the programming aspect.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am at the point in my design where I am contemplating dropping the MVC design for performance reasons, not sure if straight out PHP pages with header/footer includes would out perform my MVC setup (using PHP/Zend). I have a feeling it would.
Comments?
What's the value of your time? Of your productivity? Of your code's maintainability?
vs.
What's the cost of an additional server?
It depends on what you're building. MVC can certainly be overkill for some things, and not even applicable to others. Weigh that against future maintenance, working with other developers, how much of the MVC design pattern are you going to be rewriting on your own, etc.
This article discusses MVC, and its inventor's new paradigm DCI that is possible going to be a challenger for traditional OO.
I'm familiar with MVC from its original Smalltalk-80 context. The decision on whether to use MVC or something else is about clarity of the code, not performance. If there are particular problems with the performance of MVC in PHP, I don't know about them.
But again, the primary reason to move toward MVC is that separation of concerns is an important value in ensuring that software is supportable and maintainable over time.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm interested in the Presentation-Abstraction-Control? (aka Hierarchical-Model-View-Controller (HMVC)) Architectural Pattern for constructing complex user interfaces (GUI or web) and was wondering if anyone was aware of any examples in the wild where I could read the code?
I'm aware of the JavaWorld article and associated letters cited in the Presentation-Abstraction-Control wikipedia article.
In the php world, I'm aware of a few methods that might qualify as HMVC. They all allow calling a controller and displaying the results from within a view. The calls can be nested infinitly creating widgets within widgets.
Zend Framework: Action View Helper
CodeIgniter: 3rd party Modular Extensions - HMVC
Kohana: 3rd party Component Edit: Kohana 3 now natively supports HMVC
I wrote an HMVC framework a while back for J2EE and FreeMarker:
http://www.neocoders.com/portal/projects/jandal
and recently another one for Javascript:
http://www.neocoders.com/portal/projects/subo
These are fairly 'experimental', but might be of some academic use.
cheers,
Lindsay
It's my understanding that the Cairngorm framework for Adobe Flex is just one example of an HMVC implementation. It's open source, so you can find out more information and download the code at Adobe's website.
The APF-Webframework - http://adventure-php-framework.org/Page/001-Home - uses HMVC since many years, and has a very experienced and engaged developer. Only the small community discourages a little bit.
I wrote an HMVC framework in PHP called Alloy:
http://alloyframework.org/
It's pretty lightweight and has a modular structure.