Apache Struts 2 frameworks is classical but the most popular

Apache Struts 2 frameworks is classical but the most popular

About Apache Struts In the last 20 years on the market, the Apache Struts frameworks is still widely used by enterprises globally. Apache Struts is robust open-source framework for web applications. It follows the MVC (Model-View-Controller) model and extends the JSP API. Struts are easy to set up and provides much more flexibility and extensibility over the traditional MVC approach using servlets and JSP alone. It can be a good starting point for your career as a web developer. What is…

Lire la suite Lire la suite

Java Polymorphism

Java Polymorphism

Polymorphism means « many forms », and it occurs when we have many classes that are related to each other by inheritance. Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks. This allows us to perform a single action in different ways. For example, think of a superclass called Animal that has a method called animalSound(). Subclasses of Animals could be Pigs, Cats, Dogs, Birds –…

Lire la suite Lire la suite

Spring

Spring

1. Introduction to Spring Framework Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Spring handles the infrastructure so you can focus on your application. Spring enables you to build applications from “plain old Java objects” (POJOs) and to apply enterprise services non-invasively to POJOs. This capability applies to the Java SE programming model and to full and partial Java EE. Examples of how you, as an application developer, can use the Spring platform advantage:…

Lire la suite Lire la suite

Encapsulation in Java

Encapsulation in Java

One of the most important features of object-oriented programming is encapsulation. This feature allows us to isolate the data of our objects from the access of other external objects, and thus restrict direct access to the attributes or methods that we do not want to allow, since the state of an object is generally hidden. To define visibility in Java, reserved words are available : Public Allows access from any class to any method or attribute defined with this modifier….

Lire la suite Lire la suite

ECMAScript, focus on 2021’s features

ECMAScript, focus on 2021’s features

ECMA, What is it ? European Computer Manufacturers Association is the historic name given to the industry association dedicated to the standardization of information and communication systems. Currently this company is called Ecma International. And ECMAScript ? It’s a group of norms dedicated to type Script’s programming language and standardizing by Ecma International for ECMA-262 specification. This norms permits to manage different scripts like JavaScript or ActionScript.   What’s up in the web sphere? This company has approved the last version of ECMAScript…

Lire la suite Lire la suite

Learn how to debug JavaScript using the DevTools browser debugger

Learn how to debug JavaScript using the DevTools browser debugger

Debugging is one of those skills at the heart of a programmer’s business. Sometimes we try our best, but the program does not work properly, for example it crashes, it is just slow, or it prints out wrong information. What do you do when a program you’ve written doesn’t behave as expected ? You start to debug it. Determine where the error might be The first step is always to look at what is going on and try to determine…

Lire la suite Lire la suite

Pace.js, automatic page load progress bars

Pace.js, automatic page load progress bars

Pace.js is a lightweight (~4kb minified and gzipped) and standalone JavaScript library to create beautiful progress indicators for your page load and ajax request. It automatically monitors AJAX requests, event loop lag, document ready state, and elements on your page to decide the progress. On ajax navigation it will begin again. Pace.js currently comes with 15 themes and 10 color variables, you can customize all these themes. Minimal Flash Barber Shop Mac OSX Fill Left Flat Top Big Counter Corner…

Lire la suite Lire la suite

AddEventListener – Javascript

AddEventListener – Javascript

An event listener is a procedure in JavaScript that waits for an event to occur. The simple example of an event is a user clicking the mouse or pressing a key on the keyboard. The addEventListener() is an inbuilt JavaScript function which takes the event to listen for, and a second argument to be called whenever the described event gets done. Any number of event handlers can be added to a single element without overwriting existing event handlers. Doing different…

Lire la suite Lire la suite

Event Delegation in JavaScript

Event Delegation in JavaScript

1.- Event The events are actions that occur when we interact with a web, for example, when we click on a button, write in an input text. They are the way html and javascript interact. When an event is triggered, the browser notifies the application that something has happened and that it needs to be handled. Events are controlled by javascript functions, so when that event occurs, the browser alerts our function that is listening that it should be executed….

Lire la suite Lire la suite

difference between : .forEach(), .map(), .filter().

difference between : .forEach(), .map(), .filter().

.forEach(), .map(), .filter() look realy similar but some point can change. forEach: is used to execute the same code on every element in an array but does not change the array and it returns undefined. .map(): executes the same code on every element in an array and returns a new array with the updated elements. .filter(): checks every element in an array to see if it meets a certain criteria and returns a new array with the elements that return…

Lire la suite Lire la suite