Posts

Micro-front end, future of frontend architecture.

Before moving into Micro frontend lets understand the evolution of software architecture. Software usually contains 3 layers. frontend, backend and storage (DB). Front end will be in the form of a user interface, And the backend will normally have your main business logic. Storage is where the data is stored.   Earlier we used to have a monolithic application where your front and backend used to be bundled in one application. They used to reside in a single code repository. This entire application used to be maintained by 1 large team. For changing anything in the application you need to test the entire application because even a small change can break any part of the application that is unrelated to the change. Industry soon realized the need to split the front end and back-end part of the code. This enabled a specialized team for frontend and backend.  Later backend services started using Microservices to decouple the code and improve scaling. Microservices architect...

AngularJS $watch() , $digest() and $apply()

AngularJS $watch() , $digest() and $apply() When you create a data binding in your view to a variable on the $scope object, AngularJS creates a "watch" internally. A watch means that AngularJS watches changes in the variable on the $scope object. These watches are created using the $scope.$watch() function. When you register a watch you pass two functions as parameters to the $watch() function: * A value function * A listener function Example : $scope.$watch(function() {}, function() {} ); The value function should return the value which is being watched. AngularJS can then check the value returned(current value) against the last calculated value. That way AngularJS can determine if the value has changed. If yes, then the corresponding listener function executes. Example 1: $scope.$watch(function(scope) { return scope.data.myVar }, function() {} ); Example 2: $scope.$watch(function(scope) { return scope.da...

Trip to Dandeli

Image
       

Crocodile

My Home town Photos, Belekeri

Image

Dhandeli

Image

Belekeri

Image