Petre Popescu

@ppopescu

1603 Points 10 Followers

24 Posts

4 Answers

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

Petre Popescu · 11 months ago

Phoenix - a modern template engine for Spring

After several months of work, it's time for me to present my most ambitious open-source project. It's not finalized yet; there are still bugs and features that need to be added, but it's sta...

Petre Popescu · 2 years ago

An argument for using Optional as input parameters

This article may be the hardest I wrote so far here. Not because it is really technical nor because it required a lot of research prior, but because it is controversial and I had to be sure...
1

Petre Popescu · 2 years ago

LogMasker - OpenSource masking library for Java

I am happy to share with you my first open-source project: LogMasker LogMasker is a log masking library that makes it easy to mask confidential information directly in the logs. This is done...
1

Petre Popescu · 3 years ago

Crawling and Parsing a Website in Java using JSoup

There are many scenarios where you would need to parse the contents of a website to extract data. Search engines do this, certain applications require this functionality in order to extract...

Petre Popescu · 3 years ago

5 simple coding tricks to make your application more stable

Article originally posted on my personal website under 5 coding tricks to make your application more stable The stability of your application or web service is important for both you and the...
7

Petre Popescu · 3 years ago

Writing unit tests in Java using jUnit and Mockito

Article originally posted on my personal website under Using jUnit and Mockito for unit testing in Java Testing is important for all software systems and applications. It will help you easil...

Petre Popescu · 3 years ago

Cleaner Data classes with Project Lombok

Article originally posted on my personal website under How to use Lombok in your Java projects One thing that I like about Java is the vast amount of libraries that are freely available. The...
6

Petre Popescu · 3 years ago

How to invalidate a compromised JWT

In a past article, I wrote about JWTs, how to generate one and how to use them for authorization. JSON Web Tokens, however, have one major drawback. Once it is generated and submitted to the...
6

Petre Popescu · 3 years ago

Handling Exceptions and Errors in Play Framework

Article originally posted on my personal blog under How to handle Exception in Play Framework When programming, it is important to always take into consideration exceptions. No matter how we...
4

Petre Popescu · 3 years ago

How to make a custom message converter for Log4J2

Article originally posted on my personal website under Building a custom converter in Log4j2 I’ve been using Log4J for many years. It is a powerful logging library that is efficient and high...
2

Petre Popescu · 3 years ago

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...
7

Petre Popescu · 3 years ago

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 databas...
8

Petre Popescu · 3 years ago

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....
8

Petre Popescu · 3 years ago

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 jo...
1

Petre Popescu · 3 years ago

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 freq...
3

Petre Popescu · 3 years ago

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,...
2

Petre Popescu · 3 years ago

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 tw...
2

Petre Popescu · 3 years ago

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...
6

Petre Popescu · 3 years ago

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 princi...
7

Petre Popescu · 3 years ago

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 stat...

Petre Popescu · 3 years ago

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 man...
4

Petre Popescu · 3 years ago

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

Petre Popescu · 3 years ago

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...

Petre Popescu · 3 years ago

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...

Loading More Content