Open in app
Home
Notifications
Lists
Stories

Write
Emanuel Trandafir
Emanuel Trandafir

336 Followers

Home

Pinned

Start Here!

1. Java Misleading Usage of @Column(nullable=false) (Hibernate, validation, nullable vs @NotNull) From a Lombok Christmas Tree To True Java Encapsulation (Hibernate, Lombok, encapsulation) Replace Lombok’s @Builder with Fluent Setters (Lombok, @Bulilder, @Accessors) Pros and Cons of Java Optional (Java Optional) Records Are Here! Can We Remove Lombok Already? …

2 min read

Start Here!
Start Here!

2 min read


Published in Level Up Coding

·2 days ago

Quit Believing In Framework “Magic”!

Do you really need to use all these frameworks and libraries? Would you know to implement them? Can you remove any of them? 1. “Good Chefs Don’t Use Cake Mixes” — Christin Gorman I recently came across a funny short talk from a JavaZone conference back in 2011. In the recording, Christin Gorman is using a humorous analogy between ready-made…

Software Development

7 min read

Quit Believing In Framework “Magic”!
Quit Believing In Framework “Magic”!
Software Development

7 min read


Published in Javarevisited

·2 days ago

These 3 Lombok Annotations Might Skyrocket In Popularity After Java 17 Migration

Let’s discuss Lombok’s @With, @Builder, and @NonNull annotations and see how we can use them with Java 17 records. @With Even though records are immutable objects, sometimes we might need to change the attributes of an object. To solve this, we can create a new instance of the object and copy…

Java 8

4 min read

These 3 Lombok Annotations Might Skyrocket In Popularity After Java 17 Migration
These 3 Lombok Annotations Might Skyrocket In Popularity After Java 17 Migration
Java 8

4 min read


Published in CodeX

·Nov 20

Each of the 15 Methods of Java Optional’s API Explained in Less than 20 Seconds

Hands-on and beginner-friendly breakdown of Java 8’s Optional API. What is “Optional”? As you may already know, Java 8 introduced some functional features to the language: one of these features is the Optional type. An Optional object wraps a variable or the return of a function call and, based on this data, it…

Java

7 min read

Each of the 15 Methods of Java Optional’s API Explained in Less than 20 Seconds
Each of the 15 Methods of Java Optional’s API Explained in Less than 20 Seconds
Java

7 min read


Published in Level Up Coding

·Nov 15

The “Secret” Design That Leads To Complete Framework Independence

Let’s discuss the ideas behind the Hexagonal Architecture and see what it has to offer. 1. Overview “Hexagonal Architecture”, “Clean Architecture”, “Ports and Adapters”, “Onion Architecture ”— are all different names for the same group of concepts and ideas about the ideal design of an application. In this article, we’ll discuss these…

Software Architecture

5 min read

The “Secret” Design That Leads To Complete Framework Independence
The “Secret” Design That Leads To Complete Framework Independence
Software Architecture

5 min read


Published in CodeX

·Nov 13

Records Are Here! Can We Remove Lombok Already?

In this article, we’ll discuss Java 17’s records and see if we can leverage the new keyword to completely replace the usage of Lombok. 1. Records vs Lombok’s @Value Lombok offers the @Value annotation to help us generate immutable “value objects”. …

Java

4 min read

Records Are Here! Can We Remove Lombok Already?
Records Are Here! Can We Remove Lombok Already?
Java

4 min read


Published in Level Up Coding

·Nov 6

Is Reactive Programming Just Functional Programming on Steroids?

Hands-on refactoring of a code snippet written in an imperative style, progressively adding functional and reactive features. In this article, we’ll look over a simple piece of code written in an imperative style and do our best to refactor it in a functional manner. After that, we’ll try to refactor…

Java

3 min read

Is Reactive Programming Just Functional Programming on Steroids?
Is Reactive Programming Just Functional Programming on Steroids?
Java

3 min read


Published in Level Up Coding

·Oct 23

Why Optional<> is a Monad and Why the f() Should I Care?

Please, Use Optional<> In the Intended Way! — 1. Overview Firstly, let’s see where the need for Optional (and for monads, in general) comes from. To do this, we’ll start with an analogy and think of the process of making bread. firstly, we’ll make flour by milling the wheat; after that, we’ll make bread using the flour from the previous…

Java

5 min read

Why Optional<> is a Monad and Why the f() Should I Care?
Why Optional<> is a Monad and Why the f() Should I Care?
Java

5 min read


Published in Javarevisited

·Oct 5

Dependency Inversion, Polymorphism, and How to Handle Unexpected Changes in Requirements

In this article, we’ll see how to react to unexpected features and changes in requirements. 1. Overview In our previous article, we implemented a simple FizzBuzz application while focusing on the Open-Closed Principle and testability. …

Java

3 min read

Dependency Inversion, Polymorphism, and How to Handle Unexpected Changes in Requirements
Dependency Inversion, Polymorphism, and How to Handle Unexpected Changes in Requirements
Java

3 min read


Published in Python in Plain English

·Oct 4

How To Take an ASCII Art Selfie With Python

Take a picture using the laptop’s webcam and convert it into ASCII art in 5 simple steps. — In my previous article, we saw how to convert images to ASCII art in Python. I had some very interesting suggestions in the comments — so I decided to do a follow-up. This article will be an improvement on the code written in the previous one. So, if you haven’t…

Python

3 min read

How To Take an ASCII Art Selfie With Python
How To Take an ASCII Art Selfie With Python
Python

3 min read

Emanuel Trandafir

Emanuel Trandafir

336 Followers

Software Developer and Sportsman. Truely Agile!

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech