Posts

Showing posts from February, 2023

AngularCLI

  Angular CLI A command-line interface for Angular The Angular CLI helps to quickly create an Angular application with all the configuration files and packages in one single command.  The Angular CLI creates the Angular Application and uses Typescript, Webpack ( for Module bundling), Karma ( for unit testing), Protractor ( for an end to end testing). Installing Angular CLI: npm install -g @angular/cli@latest Angular CLI Version Check: ng --version Creating a new Angular Application: ng new MyApp The Angular CLI does the following 1. Creates a new directory MyAppis created 2. Sets up the folder structure for the application 3. Downloads and installs Angular libraries and any other dependencies 4. Installs and configures TypeScript. 5. Installs and configures Karma & Protractor for testing 6. Initializes the Git. Running new Angular Project ng serve  npm start The command compiles the Angular application and invokes the Webpack development server.  The server keeps...

SCALA

Scala short for Scalable Language Created by Martin Odersky  First version released in 2003 Scala is a hybrid functional programming language. Scala is a modern multi-paradigm programming language. Designed to express common programming patterns in a concise, elegant, and type-safe way. Integrates the features of object-oriented and functional languages Based on Java, Java Syntax. Compiled to run on the Java Virtual Machine. Statically typed Can do Concurrent & Synchronize processing Scala Web Frameworks The Lift Framework The Play framework The Bowler framework

JavaScript String Array Object

1995 - invented by Brendan Eich 2015 - ES6 - From March 2017 all browsers fully complaint String let text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; let length = text.length; let char = text[0]; let char1 = text.charAt(0); let char2 = text.charCodeAt(0)[ text.split(" "); text.padStart(); text.padEnd(); text.trimStart() text.trimEnd() text.concat() text.toUpperCase() text.toLowerCase() text.replace() text.replaceAll() text.substring() text.slice() Search Methods String indexOf() String lastIndexOf() String search() String match() String matchAll() String includes() String startsWith() String endsWith() Array var myArray = []; myArray.from('abc') myArray.push('abc'); myArray.pop(); myArray.length myArray.sort() myArray.reverse() myArray.forEach(a=>{a*a}) myArray.map(a=>{a+"space"}) myArray.keys() myArray.entries() myArray.filter(condition) myArray.reduce()  myArray.includes('abc')   myArray.find(condition) myArray.indexOf('abc') my...

K8s services

K8s was originally developed at Google  K8s is used to create applications that are easy to manage and deploy anywhere. K8s source code is in the Go language K8s as a PaaS K8s provides you with a framework to run distributed systems resiliently.  K8s takes care of scaling and failover for application, provides deployment patterns, and more. K8s is an open-source container orchestration system for managing, scaling, and automating software deployment. K8s provides the potential to orchestrate and manage all container resources from a single control plane. It helps with networking, load-balancing, security and scaling across all K8s nodes which runs your containers. K8s is an open-source system for automating the deployment, scaling, and management of containerized applications. kubectl .  The Kubernetes command-line tool Allows to run commands against Kubernetes clusters.  Use kubectl to deploy applications, inspect and manage cluster resources, and view logs kubectl ...