Archives de
Auteur/autrice : Patrick Arnaud

Access to databases with Java.

Access to databases with Java.

We will talk about how to connect to a database with Java, To do this we will use the JDBC (Java DataBase Connectivity) which is nothing else than java database connection. 1 : Establish the connection. We have to start at the beginning and so we will have to use a database, here I will use the Dragon database. then place in the library of your java project a : « mysql-connector-java-version.jar ». And then we can begin our Java project ! Once we…

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

Ten tips for organizing your css code

Ten tips for organizing your css code

1. Insert the CSS reset One of the biggest challenges when developing a website is cross-browser compatibility. The CSS reset is a style sheet that greatly reduces these incompatibility errors by providing a general style that is defined but easily customisable. Normalize.css is a modern and quite precise reset based on HTML 5. https://necolas.github.io/normalize.css/ You should insert the style sheet for this CSS reset in the <head> section, before your style definitions. 2. Organise the elements To be able to…

Lire la suite Lire la suite