Łukasz Monkiewicz (@lmonkiewiczdev) header
Łukasz Monkiewicz (@lmonkiewiczdev) profile picture

🎓 Uczę budować nowoczesne systemy. 💡 Prosto tłumaczę trudne tematy. 💾 17+ lat w IT. 📚 Java - Spring - Kafka - Architektura

Prosto o trudnych rzeczach 👉
Joined March 2012
Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)Photo by Łukasz Monkiewicz (@lmonkiewiczdev)
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
12
8
2
126
14,091
This is so true. So many developers blindly go into all the magic patterns, adding layers and layers of complexity. Month later... no one knows what happens where in the code.
2
3
295
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
What's your default YouTube playback speed? 👀
60%1.0
17%1.25
13%1.5
9%1.75+
342 votes • Final results
8
1
7
3,866
1.25x is my default for most media. Books, podcasts, conference recordings. 1x takes ages. Higher than 1.25x depends on the content.
1
87
When obsolete functionality gets in the way:
1
1
1
8
1,149
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?
12
31
206
72,301
Utile and Common names are banned in my projects, at least if I have any say in that matter. Names like that are indicators of a lazy developer ;)
1
2
1,271
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)
15
33
2
200
37,337
Going with YAGNI and KISS first will save you from a lot of problems, that you would create for yourself. First make it work, as simple as possible. Then analyze how it behaves. And then, if it's not optimal, start thinking about adding complexity to improve it.
1
2
135
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
Even withers, that create immutable copy with changed values?
1
36
#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.
6
25
201
17,119
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.
16
38
5
304
28,943
I learned the hard way about that... Now I'm all for the simplest possible solution. There is no way to make a good upfront design of an extensible solution without at least minimal knowledge of future requirements - they are never like you would imagine them anyway.
1
65
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
6
1
10
3,344
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.
16
38
1
322
27,313
If I don't abuse it, I won't learn where's the tipping point to the world of painful development :D
69
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
Well, life is full of async processes that work only because at the end, there is always someone, who manually pushes the process to a consistent outcome. But then, others expect that "the new IT system" will do this automatically, without problems.
14
I 🩷 Java. Battle-tested, ever-evolving, living, and thriving despite some saying it was dead for years. 🦾
14
20
214
13,553
I remember when I was working on projects with Java 6/7, it felt stagnant then. Java 8 gave a ray of hope, but still there were many other exciting languages on the horizon. But now, with 17/21 is just great and I have no need to look for something "better".
2
119
In software development, complexity might be admired, but simplicity is always rewarding.
8
32
1
218
13,344
@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