Petre Popescu

@ppopescu

545 Points

5 Followers

14 Posts

Joined February 15th, 2021

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

Petre Popescu

10 hours ago

View Post

Building a REST API in Play Framework

Article originally posted on my personal website under Building a REST API in Play Framework. Sample requests can also be found there When building web applications, REST has become the most widely used approach because it is easy to use and easy to implement. In this tutorial I will be showing how to build a simple REST API in...
Building a REST API in Play Framework
3
Select One:

Petre Popescu

6 days ago

View Post

Using โ€œpepperโ€ to increase password storing security

Article originally posted o my personal website under How to securely store the password using a salt and pepper In a previous article I wrote how to securely store a password in the database. The article got the attention of many fellow developers and so I decided to improve it even more by writing this article. You see, even t...
Using โ€œpepperโ€ to increase password storing security
5
Select One:

Petre Popescu

2 weeks ago

View Post

Using JSON Web Tokens for Authorization

Article originally posted on my personal website under Using JWT in Java A useful feature of a web application is the possibility to authorize a client to access certain features of the app. Once authentication happens, it is important to also check that a client has access to the requested feature. An easy to use method is prov...
Using JSON Web Tokens for Authorization
7
Select One:

Petre Popescu

3 weeks ago

View Post

The Story about 3 Interviews: Good, Bad and Ugly

I haven't changed jobs for about 4 years and I decided that it was time for either a change, or a substantial increase in my pay at the current company. I wasn't set on leaving my current job, but it is almost impossible to get more than 7% increase in salary without an offer from another company. I've been completely ignoring L...
The Story about 3 Interviews: Good, Bad and Ugly
1
Select One:

Petre Popescu

4 weeks ago

View Post

Optimizing jQuery DOM manipulation

Article originally posted on my personal website at How to optimize jQuery DOM manipulation If you are working with JavaScript then most probably jQuery is a library you are using quite frequently. jQuery is useful and provides many features that are harder to achieve with basic JavaScript. Due to the fact that it usually runs o...
Optimizing jQuery DOM manipulation
3
Select One:

Petre Popescu

1 month ago

View Post

Keep your code well organized. How I structure my web project

Article originally posted on my personal website at How to organize your web project It is easy to get carried away and just write code. The code may even work as intended but trust me that, in 6 months time, you wonโ€™t know anymore what it does and where to find a specific functionality. Unless you have a clean and clear structu...
Keep your code well organized. How I structure my web project
2
Select One:

Petre Popescu

1 month 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.
2
Select One:

Petre Popescu

1 month 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
5
Select One:

Petre Popescu

1 month 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
6
Select One:

Petre Popescu

2 months 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

2 months 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 months 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 months 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 months 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