Home > Store

Modern Web Development: Understanding domains, technologies, and user experience

Register your product to gain access to bonus material or receive a coupon.

Modern Web Development: Understanding domains, technologies, and user experience

eBook (Watermarked)

  • Your Price: $24.47
  • List Price: $30.59
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Acrobat® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.


  • Copyright 2016
  • Dimensions: 7-3/8" x 9"
  • Pages: 448
  • Edition: 1st
  • eBook (Watermarked)
  • ISBN-10: 1-5093-0060-0
  • ISBN-13: 978-1-5093-0060-0

Master powerful new approaches to web architecture, design, and user experience
This book presents a pragmatic, problem-driven, user-focused approach to planning, designing, and building dynamic web solutions. You’ll learn how to gain maximum value from Domain-Driven Design (DDD), define optimal supporting architecture, and succeed with modern UX-first design approaches. The author guides you through choosing and implementing specific technologies and addresses key user-experience topics, including mobile-friendly and responsive design. You’ll learn how to gain more value from existing Microsoft technologies such as ASP.NET MVC and SignalR by using them alongside other technologies such as Bootstrap, AJAX, JSON, and JQuery. By using these techniques and understanding the new ASP.NET Core 1.0, you can quickly build advanced web solutions that solve today’s problems and deliver an outstanding user experience.

Microsoft MVP Dino Esposito shows you how to:

  • Plan websites and web apps to mirror real-world social and business processes
  • Use DDD to dissect and master the complexity of business domains
  • Use UX-Driven Design to reduce costs and give customers what they want
  • Realistically compare server-side and client-side web paradigms
  • Get started with the new ASP.NET Core 1.0
  • Simplify modern visual webpage construction with Bootstrap
  • Master practical, efficient techniques for running ASP.NET MVC projects
  • Consider new options for implementing persistence and working with data models
  • Understand Responsive Web Design’s pros, cons, and tradeoffs
  • Build truly mobile-friendly, mobile-optimized websites

About This Book
  • For experienced developers and solution architects who want to plan and develop web solutions more effectively
  • Assumes basic familiarity with the Microsoft web development stack

Sample Content

Table of Contents

Introduction     xvii
Chapter 1: Conducting a thorough domain analysis     3

Domain-driven design to the rescue     4
Introducing design driven by the domain     4
Clearing up common misconceptions about DDD     4
Introducing the ubiquitous language     6
Creating a vocabulary of domain-specific terms     6
Keeping business and code in sync      8
Introducing the bounded context     10
Discovering bounded contexts     10
Implementing bounded contexts     12
Introducing context mapping     15
Examining relationships between bounded contexts     15
Introducing event storming     17
Having unlimited modeling space     17
Finding events in the domain      17
Leading the discussion     18
Summary     18
Chapter 2: Selecting the supporting architecture      19
It’s all about business logic     19
Examining the application logic     20
Examining the domain logic     21
Exploring patterns for the business logic     22
Using a single model     24
Exploring the elements of an object-oriented domain model     24
Putting business rules inside     26
Discovering aggregates     28
Exploring the role of domain services     30
Implementing command and query separation     32
Working with the Command and Query Separation principle     33
Implementing CQRS      36
Introducing message-based formulation     39
Ad-hoc infrastructure     39
Introducing event sourcing     43
Summary     46
Chapter 3: UX-driven design     47
Why a top-down approach is better than a bottom-up one     48
Foundation of the bottom-up approach      48
Planning with a top-down approach     50
Looking at user experience from an architectural perspective      52
UX is not UI     52
Explaining UXDD in three steps     55
Why UXDD is beneficial to nearly everybody     59
Summary     62
Chapter 4: Architectural options for a web solution      63
Assessing the available web solutions     64
Deciding on the best framework     64
Laying out a solution     65
Examining the role of ASP.NET Core 1.0     66
Considering ASP.NET as the starting point     66
Examining the architectural dependencies in ASP.NET Core 1.0     68
Exploring the reasons to choose ASP.NET Core 1.0     69
Determining if you should use ASP.NET Web Forms     72
Examining a common scenario     72
ASP.NET Web Forms at a glance     73
What’s still good with Web Forms     73
Why you should move away from Web Forms     74
Determining if you should use ASP.NET MVC      76
ASP.NET MVC at a glance     76
What’s good with ASP.NET MVC     77
Weak points of ASP.NET MVC     78
Examining the role of ASP.NET Web API      79
Moving from WCF to Web API     79
Comparing ASP.NET Web API and ASP.NET MVC     80
Talking about REST     82
Using Web API in ASP.NET Core 1.0     82
Single-page applications      83
Setting up a SPA     84
Hybrid SPA     84
Weak points of a SPA     85
Summary     85
Chapter 5: The layered architecture      87
Beyond classic three-tier systems     87
Working with a three-tier architecture today     88
Fifty shades of gray areas     89
The presentation layer     90
The user experience     90
The input model     91
The view model     92
The application layer     92
Entry point in the system’s back end     93
Orchestration of business processes     94
The domain layer     95
The mythical domain model      95
The equally mythical concept of domain services     96
A more pragmatic view of domain modeling     96
The infrastructure layer     97
Current state storage     97
Event stores     98
Caching layers     99
External services     99
Summary     100
Chapter 6: ASP.NET state of the art     103

Web flavors     103
The web could have been different     104
Classic web is the winner      104
ASP.NET is feature-complete     105
No more to add is no more to add     105
Is it full potential or software obsolescence?     106
ASP.NET Core 1.0 has no new functions     106
It’s about the new runtime     106
It’s about the business model      107
It’s about the development model     107
What is the state of ASP.NET?     108
Chapter 7: Whys, wherefores, and technical aspects of ASP.NET Core 1.0      109
The background of ASP.NET Core     110
The cost of a large memory footprint     110
Reconsidering the cloud as the silver bullet     111
Making the case for the necessity of a different programming model     111
The impact on everyday work     112
The ASP.NET Core runtime at a glance     113
The DNX host      113
Hosting web applications in DNX     115
ASP.NET Core HTTP pipeline     116
ASP.NET Core for ASP.NET developers     118
Creating a new project     118
Application startup     122
Application settings     126
Authentication     128
Other aspects of web programming     129
Summary     132
Chapter 8: Core of ASP.NET MVC     133
Routing incoming requests     134
Simulating the ASP.NET MVC runtime      134
Exploring the URL routing HTTP module     137
Using application routes      138
Exploring the controller class     145
Looking at aspects of a controller     145
Writing controller classes     147
Processing input data     152
Manual parameter binding      152
Model binding     153
Producing action results      158
Wrapping results     158
Returning HTML markup     160
Returning JSON content     167
Summary     169
Chapter 9: Core of Bootstrap     171
Bootstrap at a glance     171
LESS and the foundation of Bootstrap     172
Setting up Bootstrap     174
Putting Bootstrap into perspective     175
Responsive layouts      176
The grid system      176
Screen-based rendering     178
Taxonomy of today’s web elements     183
Restyling basic HTML elements      183
Restyling list HTML elements     193
A look at more advanced components     196
Bootstrap extensions     202
Autocompletion     202
Date picking      209
Custom components     211
Summary     215
Chapter 10: Organizing the ASP.NET MVC project     217
Planning the project solution     217
Mapping projects to the Layered Architecture pattern     218
Application startup     220
Examining application services     225
Adding in other assets     227
Creating presentation layouts      228
Serving resources more effectively     231
Working with Bundling     231
Using minification     236
Examining other aspects     238
Exploring error handling     238
Configuring user authentication     241
Summary     246
Chapter 11: Presenting data      247
Structuring an HTML view     247
Exploring the view model     247
Examining the page layout     250
Presenting the elements of a view       254
Displaying a list of data items     258
Creating a grid view     258
Adding paging capabilities     263
Adding scrolling capabilities to page elements     268
Adding a detail view     271
Popover views     271
Drill-down views     274
Summary     277
Chapter 12: Editing data      279
A common form for the login page     279
Presenting the form     279
Processing posted data     281
Input forms     284
The Post-Redirect-Get pattern     284
Form validation     286
Modal input forms     296
Quick tips for improving the user experience      304
Using date pickers is great, but...     305
Using autocompletion instead of long drop-down lists     307
Miscellaneous tips for large input forms     310
Summary     311
Chapter 13: Persistence and modeling      313
Examining the different flavors of a model     313
The persistence model     314
The domain model     315
The input model     317
The view model     318
Designing a persistence layer     319
Using an implicit and legacy data model     320
Using Entity Framework     322
The Repository pattern     326
Polyglot persistence     328
Polyglot persistence by example     329
Costs of polyglot persistence     330
Summary     332
Chapter 14: Creating more interactive views      335

Exposing JSON content     336
Creating JSON endpoints     336
Negotiating content     339
Solving the cross-origin puzzle     340
Designing a Web API      344
Purpose of the ASP.NET Web API     344
Web API in the context of ASP.NET MVC     345
Securing a standalone Web API     346
Pulling content      349
The Ajax core     349
The jQuery tools     351
Binding data to the current DOM     354
Pushing content to the client     357
ASP.NET SignalR at a glance     358
Monitoring remote tasks     359
Other scenarios for ASP.NET SignalR     362
Summary     363
Chapter 15: Pros and cons of responsive design      365
Foundation of Responsive Web Design     365
A brief history of RWD     366
CSS media queries     366
RWD and device independence     371
Adapting RWD to non-desktop devices     373
Dealing with images     374
Dealing with fonts     376
Dealing with orientation     378
Summary     379
Chapter 16: Making websites mobile-friendly      381
Adapting views to the actual device     381
The best of HTML5 for mobile scenarios     382
Feature detection     384
Client-side device detection     386
A look into the future     389
Device-friendly images      390
The ImageEngine platform     390
Resizing images automatically     391
Serving device-friendly views      392
What’s the best way to offer mobile content?     392
Server-side detection      394
Summary     399
Index     401


Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020