
🎓 Uczę budować nowoczesne systemy. 💡 Prosto tłumaczę trudne tematy. 💾 17+ lat w IT. 📚 Java - Spring - Kafka - Architektura
Prosto o trudnych rzeczach 👉
Joined March 2012
- Tweets209
- Following574
- Followers81
- Likes685
Wydanie #63
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Kod przed super(...)
👉 Spring na CRaCu
👉 Optymalizacje Javy dla wydajności
👉 Przypadkowa architektura
Nadal masz czas, aby dołączyć!
effectivedev.pl
42
Wydanie #61
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Zrozum swoje dane
👉 SSL Bundles
👉 Spring Boot i czas startu
👉 Project Leyden
Nadal masz czas, aby dołączyć!
effectivedev.pl
67
While teaching programming, people often talk about SOLID principles, Clean Code, Reusability, etc.
I think we should definitely include "Cognitive Load" to this list.
A few lines of duplicate and verbose code is better than confusing smart abstractions.
#SoftwareEngineering
Wydanie #60
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Event Modeling
👉 10 Rad dla rozproszonych systemów
👉 JEP 461: Stream Gatherers
👉 Feature flagi i Unleash
👉 Architectura czy Design
Nadal masz czas, aby dołączyć!
effectivedev.pl
41
Nobody wanted to work on that project.
No one of us could predict the cascade effect of a change.
The main red flag was the project has 3 huge "Utils" classes.
I got it; when you start, you don't always have the instinct to start a new class.
Here are the 5 rules I follow to write better code:
Group Related Logic
Methods that operate on the same data should be within the same class.
Group data and behavior.
Practice Single Responsibility
Every class should have only one reason to change.
This means a class should only have one job or responsibility.
If you find a class doing too much, it's time to break it down into more focused classes.
Encapsulation Through Composition
Prefer composition over inheritance where practical.
Use objects to represent behaviors or states you can compose into your classes rather than extending them through inheritance.
Validate Input at Public Interfaces
When your methods need to accept input from other parts of your code, don't just trust that the input is correct.
Validate it to ensure it meets the method's requirements.
Cut Mutable State
Reduce the number of changeable states in your classes.
The more variables that can change, the harder it is to track their interactions and maintain the system.
Where possible, make your class instances immutable.
Not using encapsulation leads to harder-to-maintain systems.
Have you ever worked on a project like that?
5 principles I use every day:
- You Aren’t Gonna Need It — YAGNI
- Don’t Repeat Yourself — DRY
- Keep It Simple, Stupid — KISS
- SOLID
- Avoid Premature Optimization (or Complexity)
Wydanie #59
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Kafka i liczba partycji
👉 JSON jest za wolny
👉 Przede wszystkim model domenowy
👉 JUnit i DynamicTest
Nadal masz czas, aby dołączyć!
effectivedev.pl
37
"and", "or", "with" - words in method names that indicate that something is wrong in this method. #programming
1
1
591
#Java #JPA @Hibernate Tip: show-sql is the easiest (not the best!) way to see the SQL generated by Hibernate. You can config to improve it a bit by enabling formatting, showing the JPQL Query that generated the query and enable highlighting that adds some color to the output.
I didn't know about comments or highlighting... I wish that I knew about that 4 days ago, it would save me a lot of debugging time 🤯 Thanks @NiestrojRobert
3
217
Premature generalization of code, in order to make it extensible, may actually lead to complex, hard to extend code.
Wydanie #58
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Idempotencja
👉 Częste błędy z Clean Architecture
👉 Agregaty w praktyce
👉 Jak działa...?
Nadal masz czas, aby dołączyć!
effectivedev.pl
30
Hey guys, about tests and data.
Is there any framework you recommend to generate fake data for my test?
I mean, using annotations of any convention. Because with DataFaker, I need to set it up manually.
cc/ @eliasnogueira
Take a look at instancio.org, it can simplify a lot.
2
34
💡 Spring Boot Tip
Once bean is annotated with @Validated, you can use validate method parameters with bean validation annotations, like @NotNull, @NotBlank etc.
Eventual consistency in practice: receipt of information on small tax interest arrears for 2019, one month after receiving 4 certificates of complete absence of tax arrears
3
7
1,454
I 🩷 Java.
Battle-tested, ever-evolving, living, and thriving despite some saying it was dead for years. 🦾
@vlad_mihalcea oh that is so true, but still, there are many developers who push for sophisticated and overcomplicated solutions, even though a simple solution would work just fine.
117
Wydanie #57
Już jutro, o 10:00 kolejne wydanie Mailingu.
Tym razem znajdziesz tam:
👉 Testowalny kod
👉 Multitenancy i Spring Boot
👉 Wspóldzielenie danych w mikroserwisach
👉 Coupling
Nadal masz czas, aby dołączyć!
effectivedev.pl
30













