Petre Popescu

@ppopescu

145 Points

3 Followers

8 Posts

Joined February 15th, 2021

A Java Back-end Web Developer with a passion for coding

Petre Popescu

15 hours ago

View Post

Exposing sequential IDs is bad! Here is how to avoid it.

Article originally posted on my personal blog: How not to expose your primary keys When working on LOGaritmical, I initially had my primary keys defined as UUIDs. I took this approach for two reasons: security and to avoid collisions even when there are many rows. My initial reasoning was that I will probably need to store each...
Exposing sequential IDs is bad! Here is how to avoid it.
1
Select One:

Petre Popescu

2 days ago

View Post

Designing and Coding Event Management in Java

An improved version and source code on my personal website: How to code events in Java A few years ago, back when ActionScript 3 was still used, but barely, I wanted to try game development in Java. All major game engines use other programming languages like C#, C++ or Lua, so it was a real pain to get started. That is when I di...
Designing and Coding Event Management in Java
4
Select One:

Petre Popescu

1 week ago

View Post

Building a form in Play Framework

Almost all websites require a form in one way or another. It can be as simple as a search field or a more complex form with many inputs and validation mechanisms. Either way, the main principles are the same and in this post, I will show you how to build a simple user registration form using Play Framework Java. We will cover al...
Building a form in Play Framework
5
Select One:

Petre Popescu

1 week ago

View Post

Solution: The verse with the maximum number of appearances

Problem: Given a poem, with each verse on a new line, Find the verse (or verses) that have the maximum number of appearances and how many times it appears in the text. Solution: public static List<Pair> max2(String fullText) throws Exception { // If there is no text provided, throw an exception if (fullText...
Solution: The verse with the maximum number of appearances
Select One:

Petre Popescu

1 week ago

View Post

You should always do server-side validation! Always!

Original article with another example on my personal website Web technologies have evolved a lot in the past few years, both on the server-side as well as on the client’s side. There are many web frameworks, UI kits, JavaScript libraries and everything you need to easily and rapidly develop a website or web application. JavaScri...
You should always do server-side validation! Always!
4
Select One:

Petre Popescu

2 weeks ago

View Post

How to properly store a password in the Database

Article originally posted on my website un How to securely store the password in the Database When I started LOGaritmical, one of the first functionalities that I implemented was registering a new user. This meant that I had to store the user’s password in the database in a secure way and I will need to be able to verify that th...
How to properly store a password in the Database
2
Select One:

Petre Popescu

2 weeks ago

View Post

Simple Collection Manipulation in Java Using Lambdas

One of the most powerful features introduced in Java 8 was Lambda Even though at first it may not seem much, the new functionality speeds up both coding and execution in many cases, if used correctly. Here we will be looking over the power of Streams and Lambda expressions in Java and using them to do manipulations over collecti...
Simple Collection Manipulation in Java Using Lambdas
Select One:

Petre Popescu

2 weeks ago

View Post

How to use String UUID in Hibernate with MySQL

When creating the database structure it is important to make sure that each row in a table has a unique ID so that it can be easily indexed, retrieved, and manipulated when needed. The most common methods are to use an auto-incremented column or a generated UUID. I won’t be covering the auto-incremented method since it poses no...
How to use String UUID in Hibernate with MySQL
Select One:

Loading More Content

Back to DevDojo