---
title: "Andres Pastorini (@apastorini) | Hashnode"
description: "Dear Student. Read the latest articles by Andres Pastorini on Hashnode."
url: "https://hashnode.com/@apastorini"
---

@apastorini

# Andres Pastorini

@apastorini · Montevideo · Joined November 2021

Dear Student

### [Dear student, Solid in Java real life... the S](https://andresdavidpastorini.hashnode.dev/dear-student-solid-in-java-real-life-the-s?utm_source=hashnode&utm_medium=feed)

Dear student, in many Java Interviews your ll be ask talk for SOLID Principles, today we ll talk about S. S represents the Single Responsibility principle O represents the Open Closed principle L represents the Liskov Substitution principle I represe...

1 min read · [andresdavidpastorini.hashnode.dev](https://andresdavidpastorini.hashnode.dev/dear-student-solid-in-java-real-life-the-s?utm_source=hashnode&utm_medium=feed)

[Nov 27, 2021](https://hashnode.com/posts/dear-student-solid-in-java-real-life-the-s/61a207f7f0cb2e37690c61bc)

### [Dear student, dont forget independency injection](https://andresdavidpastorini.hashnode.dev/dear-student-dont-forget-independency-injection?utm_source=hashnode&utm_medium=feed)

When we design using spring or springboot we use annotations like @service @component @repository, etc. to notice spring that these are component we ll want handled by spring. Is possible that other classes, that shows not so importants in one "first...

1 min read · [andresdavidpastorini.hashnode.dev](https://andresdavidpastorini.hashnode.dev/dear-student-dont-forget-independency-injection?utm_source=hashnode&utm_medium=feed)

[Nov 27, 2021](https://hashnode.com/posts/dear-student-dont-forget-independency-injection/61a20301a707ae38156d5c5f)

### [Dear Student, how to avoid null verifications in Java](https://andresdavidpastorini.hashnode.dev/dear-student-how-to-avoid-null-verifications-in-java?utm_source=hashnode&utm_medium=feed)

It is good programming practice, avoid null checking of a value, instead of using if (someObject! = Null), you can use Optional, it can be used as follows: Optional oR = Optional.of (Optional.ofNullable (yourOriginalInstanceToUse) .orElse (YourInsta...

1 min read · [andresdavidpastorini.hashnode.dev](https://andresdavidpastorini.hashnode.dev/dear-student-how-to-avoid-null-verifications-in-java?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/dear-student-how-to-avoid-null-verifications-in-java/618a69e5468c06249afc4ad2) [Nov 9, 2021](https://hashnode.com/posts/dear-student-how-to-avoid-null-verifications-in-java/618a69e5468c06249afc4ad2)
