Currently Browsing: mvc
Posted by Eric Polerecky in ASP.NET MVC, Open Source, Spark, mvcJan 11th, 2010 | 2 Comments
ASP.NET MVC has one small hook into Visual Studio, the ability to right click and add views and controllers.
This feature is small, hell since I’ve been using spark I almost forgot about it, that is until I started working on a simple administration section. The application has enough entities that “Right Click –> Crud” would make just the right tool.
Idea
ASP.NET MVC provides customizable code templates for the view/controller content. There are a few really good articles on how to get started.
Plan
Include the CodeTemplates in my project
Change the output extention to .spark...
Posted by Eric Polerecky in ASP.NET MVC, mvcNov 23rd, 2009 | No Comments
Need:
To pass information to every view based on an environmental variable. The specific case I ran across this need is when you want to use the minified version of your JavaScript libraries in production and the human readable in dev/QA.
Solution:
Create your own base controller class.
Override either onactionexecuting or onactionexecuted.
Populate TempData with the environment specific information.
Change your controllers to inherit from your custom base controller
Use that information in the view.
using System.Configuration;using System.Web.Mvc;
namespace BaseController.Controllers{...
Posted by Eric Polerecky in ASP.NET, WebForms, mvcMay 20th, 2009 | 5 Comments
What is it called?
First off; what are we calling “Classic ASP.NET Development using Webforms and the MVP Pattern” today? I’d like to suggest we stick with a discussion of the patterns and the surrounding technology.
Component based development using the MVP pattern…or MVP for short
and
Non-Component based development using the MVC pattern…or MVC for short
And I am aware that there are companies working on MVC components/html helpers…so what else are we going to call it? Then again you might be write…what % of “Webforms” developers are using the MVP pattern? 5%?…hmmm…anyway...
Posted by Eric Polerecky in DDD, mvcMay 17th, 2009 | 4 Comments
I find myself adding child objects within their parents control. For example; if I was going to add a child. I would call the parents controllers addChild action.
/parent/addChild/2
In this case 2 would be the id of the parent that I wanted to add a child to.
Doing it this way I don’t have to keep an internal track of which parent the user wants to add a child to.
For example /child/create does not tell me what parent I am going to associate the child with. In this scenario I would have to put the parent ID in session or something first.
Not sure if what I am doing is “right”….I...
Posted by Eric Polerecky in ASP.NET, ASP.NET MVC, Microsoft, jQuery, mvcMay 15th, 2009 | 2 Comments
I have to admit I am total bias towards MVC but hear me out. I have yet to work in an organization that implements an OOP or even MVP when using WebForms. It’s all been directly bound controls to data readers/sets/tables. No object model, no business object layer, page_load is used and abused, etc. It can’t be stated enough that MVC will not save a project from the bullshit code that is forms over data crap but at least there is hope in the form of a tiny amount of guidance from Microsoft. </rant>
Introduction
In the .NET world the MVC pattern is relatively new but it has been the staple...
Posted by Eric Polerecky in Kobe, Microsoft, development, mvcApr 16th, 2009 | No Comments
Let me start off by saying I am so happy with the “New” Microsoft. An engaged Microsoft, an open Microsoft. So to the Kobe team I say “Welcome to the real world”.
There are enough people writing about the amazingly horrible code. I’m upset with the response from the team. The response, at first glance, seems to acknowledge there is a problem and that they will fix the Kobe code.
Then I read it again…
This post is defensive and response laden with manager speak for “fuck off”. More so, they don’t even acknowledge a problem with the Kobe code!
The sample app is not a "reference...
Posted by Eric Polerecky in ArcGIS, JavaScript, mvcMar 13th, 2009 | No Comments
Today Oakland County launched Golf and Trails, or GAT, their first ArcGIS Server Web Application based on the JavaScript API.
Over the past 2 years I, as a consultant via Technology Aces, have been part of a team of developers working on a very large GIS web application. So large and so complex that its first public appearance is as the underlying framework that powers GAT.
I am happy to say that one of my projects with Oakland County finally released to the public, even if it is a “light” version.
Posted by Eric Polerecky in PHP, career, facebook, mvc, pinggr, twitterJan 7th, 2009 | No Comments
I wanted to learn how to use facebook connect and ended up using FBC, Twitter, OpenID, some complex htaccess, got sick enough by the process (not having a PHP MVC framework to call my own) that I started on php.technologyaces.com
I have code that won’t write itself…
Also, I decided to dump the simple framework…I think Code Igniter is simple enough. I don’t have time to play developer…I am in need of cracking stuff out quick!
Posted by Eric Polerecky in PHP, ProjectV, mvcJan 7th, 2009 | No Comments
Or at least I think so…
I started using the PHP MVC thingy today – after spending a relatively short amount of time coding the core. I found there where a few missing items…who needs to support HTTP POST anyway?…and I needed just the little bit of sugar in the form of some db helper methods and FirePHP for debugging.
I spent about 3 hours coding the new MVC’afied http://dev.vinspection.com and I am really happy with the new framework thing.
Posted by Eric Polerecky in PHP, Project Templates, development, mvcJan 6th, 2009 | No Comments
I wrapped up the alpha version of the new Technology Aces PHP MVC Framework. Which by the way I really need a name for. TAPMF? um….no.
I don’t have any code for the model yet…hence model-less MVC..I’ll have it done soon.
Features
PHP MVC…what more do you need?
Templeting/Caching via Dwoo
A slight bit of routing and error handeling
Features…soon
Base Model class for simple methods
CSS Reset
Features…Never?
Much more then is listed here…
Unless.