Posts

Rest Services

REST Services Introduction REpresentational State Transfer protocol. Built around things or resources - Resource based. Nouns vs actions. REST services are not action based though HTTP verbs being used to perform different operations on the same resource. Resource are identified by a URI. Multiple URIs may refer the same resource. Client and server communication. JSON or XML is used to pass data. Lightweight, scalable and maintainable. &#9679 HTTP Verbs &#9679 Constraints Uniform interface Based on the HTTP specification. URIs refers to resources and HTTP verbs are actions performed on resources. HTTP verbs (GET, PUT, POST, DELETE). URIs (resource). HTTP request (header, body, query parameters and URI) and response (header/status and body). Use hypermedia to better navigation through resources (HATEOAS - Hypermedia As The Engine Of Application State). Use links for retrieval of related resources. Stateless No client state on the server. Self cont...

React JS

React JS Introduction Developed and maintained by Facebook and Instagram. A JavaScript library for creating user interfaces. Serves as the view of MVC architecture. Suitable for large web application which use data and change over the time without reloading the entire page. React Native caters developing mobile application for various platforms and React VR caters developing VR applications. Aims at Speed, Simplicity and Scalability. &#9679 Notable features One-Way data flow. Single source of truth - Data is originated and kept in one place, data is immutable. Data flow from the parent component to the child component. Action flow from child component to parent component. Virtual DOM DOM manipulation is cost instead react create a virtual DOM tree and compare it with the rendered tree and update only what is changed. JSX React JS language for defining user interfaces. HTML like syntax. Prevents cross-site scripting attacks by converting expressions to ...
NodeJS Introduction Developed by Ryan Dahl. Created with the aim of creating real-time websites with push capabilities (websockets). NodeJS is an open source, cross platform runtime environment for server-side and networking applications. Build on V8 engine, Chrome’s JavaScript engine. Uses event-driven, non-blocking I/O model which makes NodeJS lightweight and efficient. Ideal for data-intensive real-time applications that run across distributed devices. NodeJS comes with several JavaScript libraries that help basic programming. NodeJS eco-system ‘npm’ is the largest in the world for open source libraries. &#9679 Advantages Ability to use single programming language from one end of the application to the other end. NodeJS applications are easy to scale both horizontally and vertically. Delivers improved performance since V8 engine compile the JS code into machine code directly. Performance increased via caching modules into memory after the first use. Easily ...

GIT

GIT &#9679 GIT Configurations System Configurations are apply for all the users who use the machine. Global Configurations are apply only for a user who already login to the machine. Local Configurations are apply only for the project. List the Global configurations git config --global list Add user email, name and editing tool git config --global --add user.email "Type Your Email" git config --global --add user.name "Type Your preferred user name" git config --global --add core.editor "Type Your preferred software tool to edit your code" git config --global --add color.UI "Type true if you want to see the difference between two commitments by color it." &#9679 Three Tree Architecture in GIT Initialize a git repository git init Show current status of the repository(show edited files) git status Add all the files into staging index from working directory(working copy) git add . OR Add specified file into ...
Image
Sprig Maven Maven is a project management tool ANT is also a build tool which is similar to Maven and it is a default build tool in Intellij IDEA,Netbeans,Eclips Replace the build tool to maven. Maven has a common folder structure.Hence any developer can easily identify the project. Maven can create documentation by checking the source code of the project.Hence source code should be correctly formatted. Source code read by doc comments Maven is a collection of dependency management tool and document development tool All the dependencies are download into the home directory as common repository not for each project. Plugins are created by set of goals. Maven is created by set of pulgins. Create a Project : mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.mycompany.app -DartifactId=my-app Execute a goal : mvn : EX : mvn compiler : compile Maven life Cycle Clean(clear all created artifacts and rebuild the project...
Image
Advanced Java Script (Ecma Script) Java Script is all about objects objects are all about properties Properties are all about attributes Primitive Wrappers number ex: new number(125.25) boolean string(wrapper as a object and give methods and properties) Objects Literal Form : var obj = {} Constructor Form : var obj = new Object() Regex Literal Form : / / Constructor Form : new regExp() Array Literal Form : [10,20] Constructor Form : new Array[10,20] Iterate Object Properties Ex : for(var property in object) Private Variables Ex : var _name Variables with use by java script engine Ex : var _ _name_ _ Change Invoker by using call , apply and bind methods. Object Properties On Properties (Created Properties) Enumerable (can Iterate) Data Properties Accessor Properties Non Enumerable (can't Iterate) Data Properties Accessor Properties Prototype Properties (Primitive values and references of objects) Enumerable (can...
                                                                                       Java Script Language Java Script is a Interpreted Language.                  Source code will convert to the machine code through engine interpreter in Interpreted language .          Java Script is a Dynamically type language. Meaning of Dynamically type : Show errors in run-time. Java Script is a case sensitive language. Data Types :   Boolean                                  Number (Integer,Float)                         ...