Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SignalR: Real-time Application Development - Second Edition

You're reading from   SignalR: Real-time Application Development - Second Edition A fast-paced guide to develop, test, and deliver real-time communication in your .NET applications using SignalR

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781785285455
Length 222 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Einar Ingerbrigsten Einar Ingerbrigsten
Author Profile Icon Einar Ingerbrigsten
Einar Ingerbrigsten
Arrow right icon
View More author details
Toc

Separation

One of the benefits we can already see with decoupling is that I changed the controller without it affecting the view in any way, nor did I have to do anything special, other than what was already going on. It's also easier to change it as the code is more focused on its part of the system, logic for the frontend, rather than focusing on other concerns. Typically, with a more classic jQuery approach to the problem, you would be querying the DOM for objects to get the data back and forth between view and logic. The queries are in the format of CSS selectors, and you would typically either query the elements by their name or by a CSS construct, leading to the entire system being coupled together with changes done in CSS or the DOM to change the JavaScript code. This is in the long run, and surprisingly maybe not even that long, hard to maintain, and leads to stale solutions that are so hard to change that you simply don't do it because it's too expensive.

Next, we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image