Posts

Angular : Difference in Reactive and Template-driven Forms

What is the difference between reactive forms and Template-driven forms in Angular? Both Reactive forms and Template-driven forms are used to manage and process data differently. Each form offers different advantages. Here, we have compared both forms to see the differences: Reactive Forms Template-driven forms Reactive forms are more robust, so they are best to use. Template-driven forms are best if you want to add a simple form to your application. For example email list signup form. Reactive forms are more scalable, reusable, and testable, so they are preferred to use in professional websites for the industry. Template-driven forms are easy to use in the application, but they are not as scalable as Reactive forms, so they are preferred to use in test applications for learning purposes. Reactive forms are most preferred to use if forms are a key part of your application, or your application is already built using reactive patterns. In both cases, reactive forms are best to use. Templ...

Angular : Difference in Promises v/s Observables

What are the differences between promises and observables in Angular 2x+? Following is the list of differences between promises and observables in Angular: Promises Observables Promises can deal with a single asynchronous event at a time. The observables can handle a sequence of asynchronous events over a period of time. Promises are always asynchronous. Observables are both synchronous as well as asynchronous. Promises generally provide only a single value. Observables can emit multiple values. Promises are not lazy. They can execute immediately after creation. Observables are very lazy. They can't be executed until you subscribe to them using the subscribe() method. Promises are not cancellable. Observables have subscriptions that can be canceled using the unsubscribe() method. After that, they stop the listener from receiving further values. Promises don't provide any operations. Observables provide the map for forEach, filter, reduce, retry, and retryWhen operators. Promise...

SOAP Vs. REST Webservices

What is SOAP? SOAP  is a protocol which was designed before REST and came into the picture. The main idea behind designing SOAP was to ensure that programs built on different platforms and programming languages could exchange data in an easy manner. SOAP stands for Simple Object Access Protocol. KEY DIFFERENCE SOAP stands for Simple Object Access Protocol whereas REST stands for Representational State Transfer. SOAP is a protocol whereas REST is an architectural pattern. SOAP uses service interfaces to expose its functionality to client applications while REST uses Uniform Service locators to access to the components on the hardware device. SOAP needs more bandwidth for its usage whereas REST doesn’t need much bandwidth. SOAP only works with XML formats whereas REST work with plain text, XML, HTML and JSON. SOAP cannot make use of REST whereas REST can make use of SOAP. Difference Between SOAP and REST Each technique has its own advantages and disadvantages. Hence, it's always...

Git Interview Questions

Image
Basic Questions 1. What is the difference between Git and SVN? Git SVN Git is a Decentralized Version Control tool SVN is a  Centralized Version Control tool It belongs to the 3rd generation of Version Control tools It belongs to the 2nd generation of Version Control tools Clients can clone entire repositories on their local systems Version history is stored on a server-side repository Commits are possible even if offline Only online commits are allowed Push/pull operations are faster Push/pull operations are slower Works are shared automatically by commit Nothing is shared automatically 2. What is Git? I will suggest you attempt this question by first telling about the architecture of git as shown in the below diagram just try to explain the diagram by saying: Git is a Distributed Version Control system(DVCS). It lets you track changes made to a file and allows you to revert back to any particular change that you wish. It is a distributed architecture that provides many advan...