SlideShare a Scribd company logo
1 of 9
WebForms vs
MVC
Stupid Web Technology Moves Too
Damn Fast
*** Web 3.0
• I was brought on board 8/2011
• Discussion/architecture continued until 10/2011
• Our platform consists of
• Web Forms with Custom Web Parts
• Open Source Grid/Layout/Window plugins
• Challenges we faced
• Localization of client side script
• How to take advantage of ***’s awesome biz architecture
• How to support licensing/authentication through a state-full architecture
• How to organize client side code in a meaningful efficient manner
• How to create rich UI widgets in HTML 5 that have “near native” performance
Our Choices
• Localization:
• Uses AJAX ScriptManager and embedded JavaScript files in web part assemblies
• Biz Architecture
• Created a Service Oriented Architecture on top of the *** biz layer using Windows Communication
Foundation. All client side interactions are handled through AJAX calls to these services.
• Authentication/Licensing
• Handled by shuffling a cookie containing “auth” object from web application to client side JavaScript
and back to web service. User is authenticated via cookie through two separate app domains.
• Client Side Code Organization
• Each main UI element is encapsulated in it’s own “web part project” in the UI layer under ***.UI.Web.*.
Each web part is embedded with it’s own HTML/JavaScript/CSS resources, and injected into the site via
the web forms script manager. During injection ScriptManager can handle things like localization.
• UI Widget
• Used the open source plugins DataTables, AeroWindow, and jQueryLayout
Our UI Framework Alternatives Were Not
Ready…
• KendoUI/IgniteUI were both in infancy
• IgniteUI was previously called
NetVantage for jQuery
• Neither had a stable grid component that
supported the advanced functionality we
required.
• These features did not yet exist per the
Netvantage jQuery 2011.2 document:
• Column resizing/reordering
• Item previewing
• NetVantage’s grid had a list of 27 known
bugs, 7 of which had no workaround and
were never fixed.
KendoUI
Microsoft Also changed the Web Service
game…
• At the time, WCF or traditional ASPX web services were
the only way to create RESTful web services
• WCF is a pain in the ass.
• WCF REST is an extra hard pain in the ass.
• WCF REST with both windows authentication and
anonymous authentication is the most unbelievably
largest pain in the ass imaginable.
• Plus it ruined my Disneyworld trip.
• Help was around the corner – Two project promised to
simplify RESTful services:
• WCF Web API:
• http://wcf.codeplex.com/wikipage?title=WCF%20Web
%20API%20is%20now%20ASP.NET%20Web%20API
• WCF REST Starter Kit:
• http://aspnet.codeplex.com/releases/view/24644
Microsoft Also changed the Web Service
game…
• Microsoft was very awesome. :-/
• They decided to replace WCF REST API
with MVC Web API
• As always – the story is that WCF REST
has very viable use cases blah blah
blah… *cough* Silverlight *cough*
• Web API was released Aug 2012 –
about halfway through our
development cycle.
• MVC itself was in Version 3 when we
started – Version 4 was released Aug
2012, and Version 5 is currently in
preview.
WEB
API
WCF
Other technology that has popped up over
the last two years
• SignalR/WebSockets
• TypeScript
• SASS/LeSS
• NodeJS
• NuGET
• GitHub
• 5 gazillion JavaScript frameworks
• Native JS Development (Windows
8, Google Apps)
• ShadowDOM
• Web Components/Polymer
• HTTP 2.0
• SPDY (IE11 supports!)
In Use Today Around the Corner
Web Forms vs. MVC
Web Forms
• Great UI encapsulation
• Localization through
RESX/ScriptManager
• Poor web development practices
• ViewState
• Single Form per Page
• Slows development – very difficult
to order JavaScript/CSS/HTML in
the most efficient manner.
MVC
• Ex Ruby staff
• UI encapsulated only through JS files –
not separate projects
• Localization through JSON
• Thin HTML – no extra hidden
elements/ViewState/random Microsoft
garbage
• All of the new Visual Studio tooling is
being developed with WinForms in mind
– i.e. web essentials doesn’t have a way
to preview/reference files from an
embedded assembly.
In Summation
• I’ve developed a healthy hatred for the Microsoft platform
• I also like some really cool things about the new Microsoft
platforms.
• But those really cool things will probably be replaced in a year or
two.
• MVC is a very cool way to develop
• Except for it abandons the way Microsoft has built web software for over 10 years.
• And it also does not integrated with Microsoft Web products like SharePoint, which
will remain web forms based for years to come.
• It is more closely related to every other web platform out there, like PHP, Ruby, Java
Server Pages (JSP), etc.
• MVC is a faster, more web oriented, and a less bug prone method
of developing.
• I don’t have to spend time digging around in viewstate
• JavaScript isn’t parsed through web handlers
• Web toolsets like Google Chrome are easier to use.
• We are prepared for the transition – MVC was on the radar, and all
of our web parts will built with the concept of one day transitions to
MVC in mind.
• No server side DOM
• No ViewState
I ran out of time building this
PowerPoint – here’s a picture
of a kitten petting a duck

More Related Content

Recently uploaded

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 

Recently uploaded (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Microsoft ASP.NET Webforms vs. MVC

  • 1. WebForms vs MVC Stupid Web Technology Moves Too Damn Fast
  • 2. *** Web 3.0 • I was brought on board 8/2011 • Discussion/architecture continued until 10/2011 • Our platform consists of • Web Forms with Custom Web Parts • Open Source Grid/Layout/Window plugins • Challenges we faced • Localization of client side script • How to take advantage of ***’s awesome biz architecture • How to support licensing/authentication through a state-full architecture • How to organize client side code in a meaningful efficient manner • How to create rich UI widgets in HTML 5 that have “near native” performance
  • 3. Our Choices • Localization: • Uses AJAX ScriptManager and embedded JavaScript files in web part assemblies • Biz Architecture • Created a Service Oriented Architecture on top of the *** biz layer using Windows Communication Foundation. All client side interactions are handled through AJAX calls to these services. • Authentication/Licensing • Handled by shuffling a cookie containing “auth” object from web application to client side JavaScript and back to web service. User is authenticated via cookie through two separate app domains. • Client Side Code Organization • Each main UI element is encapsulated in it’s own “web part project” in the UI layer under ***.UI.Web.*. Each web part is embedded with it’s own HTML/JavaScript/CSS resources, and injected into the site via the web forms script manager. During injection ScriptManager can handle things like localization. • UI Widget • Used the open source plugins DataTables, AeroWindow, and jQueryLayout
  • 4. Our UI Framework Alternatives Were Not Ready… • KendoUI/IgniteUI were both in infancy • IgniteUI was previously called NetVantage for jQuery • Neither had a stable grid component that supported the advanced functionality we required. • These features did not yet exist per the Netvantage jQuery 2011.2 document: • Column resizing/reordering • Item previewing • NetVantage’s grid had a list of 27 known bugs, 7 of which had no workaround and were never fixed. KendoUI
  • 5. Microsoft Also changed the Web Service game… • At the time, WCF or traditional ASPX web services were the only way to create RESTful web services • WCF is a pain in the ass. • WCF REST is an extra hard pain in the ass. • WCF REST with both windows authentication and anonymous authentication is the most unbelievably largest pain in the ass imaginable. • Plus it ruined my Disneyworld trip. • Help was around the corner – Two project promised to simplify RESTful services: • WCF Web API: • http://wcf.codeplex.com/wikipage?title=WCF%20Web %20API%20is%20now%20ASP.NET%20Web%20API • WCF REST Starter Kit: • http://aspnet.codeplex.com/releases/view/24644
  • 6. Microsoft Also changed the Web Service game… • Microsoft was very awesome. :-/ • They decided to replace WCF REST API with MVC Web API • As always – the story is that WCF REST has very viable use cases blah blah blah… *cough* Silverlight *cough* • Web API was released Aug 2012 – about halfway through our development cycle. • MVC itself was in Version 3 when we started – Version 4 was released Aug 2012, and Version 5 is currently in preview. WEB API WCF
  • 7. Other technology that has popped up over the last two years • SignalR/WebSockets • TypeScript • SASS/LeSS • NodeJS • NuGET • GitHub • 5 gazillion JavaScript frameworks • Native JS Development (Windows 8, Google Apps) • ShadowDOM • Web Components/Polymer • HTTP 2.0 • SPDY (IE11 supports!) In Use Today Around the Corner
  • 8. Web Forms vs. MVC Web Forms • Great UI encapsulation • Localization through RESX/ScriptManager • Poor web development practices • ViewState • Single Form per Page • Slows development – very difficult to order JavaScript/CSS/HTML in the most efficient manner. MVC • Ex Ruby staff • UI encapsulated only through JS files – not separate projects • Localization through JSON • Thin HTML – no extra hidden elements/ViewState/random Microsoft garbage • All of the new Visual Studio tooling is being developed with WinForms in mind – i.e. web essentials doesn’t have a way to preview/reference files from an embedded assembly.
  • 9. In Summation • I’ve developed a healthy hatred for the Microsoft platform • I also like some really cool things about the new Microsoft platforms. • But those really cool things will probably be replaced in a year or two. • MVC is a very cool way to develop • Except for it abandons the way Microsoft has built web software for over 10 years. • And it also does not integrated with Microsoft Web products like SharePoint, which will remain web forms based for years to come. • It is more closely related to every other web platform out there, like PHP, Ruby, Java Server Pages (JSP), etc. • MVC is a faster, more web oriented, and a less bug prone method of developing. • I don’t have to spend time digging around in viewstate • JavaScript isn’t parsed through web handlers • Web toolsets like Google Chrome are easier to use. • We are prepared for the transition – MVC was on the radar, and all of our web parts will built with the concept of one day transitions to MVC in mind. • No server side DOM • No ViewState I ran out of time building this PowerPoint – here’s a picture of a kitten petting a duck