find a location for property in a new city

Thursday 23 December 2010

3 things that changed ASP.NET development in 2010

As 2010 draws to a close I thought about how I was writing code last year. I realised how much development has changed in just one year. I want to look at how my work has evolved during 2010.

Entity Framework 4

I really like using Entity Framework. I wasn't quite sure about it in its first version, however, since the release of Entity Framework 4 in April I fully adopted it. It solves so many problems that I feel exist in modern web development.

I like stored procedures, I know a lot about using and optimising them but there is something seriously wrong with their concept - you have business logic in your database! When you think open mindedly about what a logical architecture should be you realise just how ridiculous that is. Entity Framework takes the last remaining strand of business logic back to the web developer.

Aside from the improvement in architecture, the other benefits I love about it is that speed you can develop with, deferred querying that improves reuse of queries, strong typing of Linq to Entities, Intellisense when writing queries, no more mapping, no more writing tedious POCOs, lack of tedious code in general.

Its hard to believe only a year ago I was writing stored procedures.

ASP.NET MVC 2

Again, I had a look into this when it was in its first version but was carried by the hype around v2. I fully adopted the use of MVC in April too and what a joy it has been to use.
A lot has changed over the last 10 years of web development such as increasing expectations of performance and web standards, popularity of unit tests and agile development, ubiquity of AJAX.

Now, I wouldn't go so far as to say there is anything wrong with ASP.NET Webforms I just feel that ASP.NET MVC has been a superb reaction to these changing trends in what web developers want to produce.

Whilst all of the above concerns can be answered by Webforms, like turning off view state to remove bloat, moving logic out of code behind to unit test, improved web standards in ASP.NET 4 etc you still feel as though you are swimming up stream some what.

I much prefer to get down and dirty with ASP.NET MVC. It's refreshing to get involved in HTML and HTTP again in a way that was abstracted out of your hands with web forms. It makes you feel like a real developer again, omnipotent! Of course the framework and templates do a lot of the tedious work for you but let's keep that quiet ay... Omnipotent! Remember that, yeah.

It's hard to think only a year ago I was using web forms.

Contribution

This has obviously been around for some time but I think only during 2010 has Microsoft's commitment to open source and code contribution has really shone through. It had been displayed, proven and truly adopted by the community. Look at how much there is to gain from MVC contrib.

I would like to think this is why frameworks such as Entity Framework and ASP.NET MVC are evolving so quickly and more importantly in the right direction. Microsoft is really listening to the community now. Forums and polls about what you would like to see in the next version of Entity Framework for example.

It is not just direct listening either, I'd be extremely surprised if Microsoft weren't reading blogs, browsing stackoverflow and stalking twitter to gain insight into what the community love and what they are crying out for.

It's hard to think last year I didn't have a blog or a twitter account or contribute on stackoverflow or publish any code.

Follow britishdev on Twitter

36 comments:

  1. Any idea about ASP.NET MVC3 >

    ReplyDelete
  2. Completely agree about ASP.NET MVC 2.

    Not so sure about your comments on stored procedures though. "Business logic in the database" is a bit of a misnomer; it's actually provided by the database management system (DBMS).

    This may seem like splitting hairs, but consider this: What is the purpose of any DBMS other than to ensure the integrity of data within the database?

    Now consider one of the ways SQL DBMSs do this: Referential integrity within tables. A customer has a one-to-many relationship to Orders. What is this if not business logic? Should one not create foreign key references between tables then? After all, that is business logic outside the data layer. By your argument, FK relationships are bad, mmmkay?

    Such an assertion almost invalidates the whole purpose of using a DBMS!

    Regards, Matt

    PS. Great blog!

    ReplyDelete
  3. Thanks so much for your comment Matt. I see your argument that database architecture is of course aligned with business requirements.

    I was, however, thinking of a time I wrote a mortgage eligibility (and comparison) engine where a users' financial details are gathered and sent to a stored procedure that used a huge amount of logic to decide which of the mortgages, stored in the database, the user was eligible for.

    This was blatant business logic in the database. The only alternative was to return all mortgages and decide which they are eligible for using Linq-to-Objects (massive network transfer) or create a SQL command dynamically in code (messy).

    Cheers for you thoughts Matt. It's great to get such a well thought comments like yours and I'm glad you're enjoying the blog!

    ReplyDelete
  4. I don't agree with superdev. Foreign key constraints define real-world relationships that are independent of the business. Regardless of whether you work for stripeysocks.com or HSBC, the relationship between customers and orders is one-to-many. But each business will have its own business rules which belong in a layer separate from the database. That's my two cents.

    Colin, what's your view on other ORM solutions? I'm a big user of NHibernate, have you considered using this?

    David

    ReplyDelete
  5. Hey, thanks for this great and awesome guide, its helpful for a newbie in Programming field, I am planning to convert my Wordpress site on ASP.NET the best dissertation writing company in UK.

    ReplyDelete
  6. Hey, thanks for this great and awesome guide Here is my site
    TopAppAndroid

    ReplyDelete
  7. Visit for more Nice blog. Found this while searching through

    ReplyDelete
  8. Playing Android games on PC isn’t much of a fun, once you get used to playing it all on a Touch Screen,
    Smash Hit For PC

    ReplyDelete
  9. Ordinarily when your PC is ensured by the avast, they may encounter a square of the program from Avast. It can either be a program or site or perhaps some equipment associated with your pc. As indicated by your Avast Antivirus, your connection is perilous and presents risk, while as per you it's simply the purpose of small misjudging. These are called bogus Positive outcomes. You can dispose of such issue basically by making an Avast exceptions whitelist

    ReplyDelete
  10. The light works in a very decent manner. You should simply both you and the individual you need to keep in contact need to have these lights. In addition, you should set a one of a kind shading. So at whatever point the other individual contacts their light. You will find a good pace is her. Source - The Daily Buzz

    ReplyDelete
  11. Hi people, Z3x Samsung tool pro is a brilliant contraption made and passed on by the Z3x gathering. This item will help you with opening codes on all the Samsung devices, and you can get it from the Z3x official site. Regardless, Not each individual needs to pay for it, that is the explanation we've made this page for you.

    ReplyDelete
  12. Best Pizza Epping - Menu, Photos, Ratings and Reviews of Restaurants serving Best Pizza in Epping. Best Epping Pizza.

    ReplyDelete
  13. Gonorrhoea Causes for the most part happen inside two to 14 days after introduction. Be that as it may, a few people contaminated with gonorrhea never create recognizable side effects.

    ReplyDelete
  14. govalert.in is a Website which give most recent employment warnings, result notices, concede card cautions, answer key alarms, and so forth.

    This excursion began on 15 Nov. 2019 and after that it never halted. Our group keep it's earnest attempts to make this occur and keep everybody refreshed pretty much all most recent activity warning as quickly as time permits.

    ReplyDelete
  15. Most Indian cuisine is related by the similar usage of spices and the use of a greater variety of vegetables than many other cuisines. Religious and caste restrictions, weather, geography and the impact of foreigners have affected the eating habits of Indians.

    - Maharajaonline

    ReplyDelete
  16. Buy Facebook Likes cheap with refund guarantee. Get Facebook photo likes. Buy real Facebook post likes. Buy Facebook Photo likes from India, UK, USA.

    ReplyDelete


  17. الرائد افضل شركة عزل خزانات بالرياض شركة عزل خزانات بالرياض اتصل بنا الان


    ReplyDelete
  18. The number 1 online football betting website UFABET is the most popular service in Thailand. Official, online sports betting and all types of casinos. The entrance to UFABET can be played through the website or on the mobile phone. Iphone (iPhone) or Android (Android), which has a safe and professional, reliable and With standards to support Online football betting Through the internet and online casinos that have a variety of games to choose from to play.

    ReplyDelete
  19. Lee, zihinsel sorunlardan kurtulan bir hasta ve hatta kendine zarar veriyor. Bir sekreterin işini saygın bir avukata aldığında, profesyonel ilişkiyi, her ikisini de akıl sağlığı için asılı bırakan sadomazoşist bir ilişkiye Web siteleri dönüştürür.

    ReplyDelete
  20. buy fake drivers license online
    So we offer our clients to use the Real documents if they want to use the document legally. If you need to buy fake drivers license online
    urgently we advise our clients to go with fake driving license online because we take less than a week for your fake driving license online.

    For more details you can visit our website: https://buyalldocument.com/ OR WhatsApp: +1(443) 351-8162 OR Email us at buyrealfake.documents@yandex.com


    ReplyDelete
  21. Looking for the Best TV Under 30000?
    .
    We at NiamIndia covers best Smart TV under 30000 including the Buying Guide of the product.

    ReplyDelete
  22. I am professional Gamer working for Foriza Horizon as a Senior Consultant. i love to use Smartwatch. Here is the Best Smartwatch Battery Life.

    Best Smartwatch Battery Life

    ReplyDelete

  23. Are you looking for the Best Planar Magnetic Headphones? . Well, Planar magnetic headphones have become popular recently for their exceptional sound quality. Here are the unbiased reviews and buying guide for the Best Planar Magnetic Headphones.

    https://techno-stuff.com/best-planar-magnetic-headphones/

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. I am an Interior Designer by Profession. I love to listen to music. Here is my Blog about

    Best Open Back Headphones Under $200.

    ReplyDelete
  26. If you wanna buy Best Gloves and trending outfits. https://10bestgloves.com/

    ReplyDelete
  27. Thanks for this post, Really good post
    It is a website which offers 8 ball pool coins, https://poolcoinshop.com/

    ReplyDelete
  28. Are you looking for Best Sewing Machine in India under 10000 in India?
    .
    Well, Sewing is becoming quite popular as you can wear your own customized and designed clothes. You can innovate your designs, patterns and many more uniquely.
    .
    So, here are Best Sewing Machine in India under 10000 (getmyelectronic) in 2020!

    ReplyDelete
  29. You shared a very nice piece of information
    Also check. https://indianembassyrome.in/

    ReplyDelete
  30. Buy Best Quality blood pressure device price in pakistan at medisense with affordable prices. Shop Now.

    ReplyDelete
  31. buy electronics online in Pakistan at best prices delivered at your doorstep. Get free shipping.

    ReplyDelete
  32. Woori Casino Login - Play on Mobile or Desktop
    The Woori Casino App 토토 사이트 모음 will be available at Woori Casino on a mobile or desktop kadangpintar basis. To play septcasino on our mobile or desktop, you can also poormansguidetocasinogambling play https://octcasino.com/ with your desktop browser,

    ReplyDelete
  33. United Customer Support Number . Updated on anytime. Company Logo. Organization: United Airways. Common problems addressed by the customer care unit that answers calls include Make a booking, Change flight, Cancel flight, Flight delayed

    ReplyDelete
  34. Coinbase Sign In

    parkerolivia513@gmail.com

    ReplyDelete