Showing posts with the label Programming
How to start a web server using Java

How to start a web server using Java

Do you want to start a basic HTTP server to serve the files in a directory on your machine using Java? If so, here's how. Available sinc...
What is JPA?

What is JPA?

JPA stands for Jakarta Persistence API (previously, Java Persistence API). It's an API specification for database connectivity in Java a...
What is a database connection pool?

What is a database connection pool?

A database connection pool stores ready-to-use database connections that threads can borrow when they need them, and return when they fin...
How to execute SQL queries from Java (and prevent SQL injections)

How to execute SQL queries from Java (and prevent SQL injections)

You need a Connection object. See the previous post to learn how to get one. With this object, simply build a new PreparedStatement , set ...
How to open and close JDBC connections

How to open and close JDBC connections

Get a JDBC driver for your database. For example, in the case of MariaDB databases, you can add the following to the pom.xml file (or down...
Using Vaadin web components in HTML documents without frameworks

Using Vaadin web components in HTML documents without frameworks

Vaadin is a development platform for building web applications in Java. Although it includes a Java API ( Vaadin Flow ) that you can use to ...
How to start a career in coding

How to start a career in coding

A couple of days ago, a good friend of mine asked me how to make her kid more interested in programming. I think that parents should focus o...
Learning Microservices with a Practical Example

Learning Microservices with a Practical Example

Although this example application is simplistic and no one should ever use microservices to implement an application like this one, it shows...
How to call a Java method from a JavaScript function in the browser

How to call a Java method from a JavaScript function in the browser

In this video I demonstrate how to call a Java method that runs in the server from a JavaScript function running in the web browser: In sho...
Copy & Paste Based Development´╗┐

Copy & Paste Based Development

This is about Mr., W. J. a nice and friendly developer working for an IT company in a cosmopolitan city. He was in charge of five other de...
Semantic coupling

Semantic coupling

Code Complete is one of those books every developer should read. There is a section in chapter 5 of this book which talks about coupling . ...
Comments: A deodorant to mask code smells

Comments: A deodorant to mask code smells

Don't get me wrong. Comments are useful and not all of them have the olfactory purpose of the famous analogy I'm using in this art...
 Lightning fast commenting (in and out)

Lightning fast commenting (in and out)

I have used this two or three times in my life but it's one of those simple (and useful?) hard to forget tricks. It could be useful ...

Empty lines and semantics in source code

I remember a couple of years ago, while working with some developers, one of them seemed to be irritated by seeing empty lines in source cod...

Search

Popular Posts

Testing MariaDB ColumnStore performance

MariaDB 's ColumnStore is an engine that stores data in a columnar fashion…

How to call a Java method from a JavaScript function in the browser

In this video I demonstrate how to call a Java method that runs in the server f…

Using Vaadin web components in HTML documents without frameworks

Vaadin is a development platform for building web applications in Java. Althoug…

Recent Comments

Contact Me