Posts

Showing posts with the label Client Side

Why Angular? Why Not React?

Image
A very common question. Let's search its answer. Instead of following market trends, always choose the best technology stack based on your project requirements and business needs. Lets discuss, why Angular and why not react. Why Angular? If you are already familiar with OOPs or you have C# / Java background and know dependency injection then the learning curve is comparatively low. If your application has not a dynamic UI i.e. forms are predefined and could not change at runtime. Angular is a full-fledge framework to create enterprise business applications. 70% same code for Mobile App i.e. Only Html & CSS files would be separated for Web and Mobile apps and some specific modules (Using NativeScript) Good separation between logic, markup, styles. NgModule, Modularize approach which organize the architecture of app in a better way. HttpClient Angular Module. Supports custom headers, request type, automatically parses JSON, can be streamed, piped, debounc...

ASP.NET and HTML5 Local Storage

Image
With HTML 5, web pages can store data locally within the user's browser. Earlier, this was done with cookies. However, Web Storage is more secure and faster. The data is not included with every server request, but used only when asked for. It is also possible to store large amounts of data, with affecting the website's performance. The data is stored in Key/Value pairs, and a web page can only access data stored by itself. HTML5 storage support is designed for two key scenarios. First, it enables a site to work offline.  A second feature of HTML5 storage is the ability to provide a local cache for data generally on the server but not subject to frequent change. There are two new objects for storing data on the client: localStorage - stores data with no expiration date sessionStorage - stores data for one session LocalStorage   is designed as a long-term storage mechanism for data that spans sessions and time, and provides a mechanism for longer-term storage o...