Oracle Certified Java Developer. Tweets: Java, Linux, K8s, Cloud development and deployment, random topics. Stop global warming - write efficient code!

Munich, Bavaria
Joined November 2011
Viktar Patotski retweeted
Memory is getting more expensive, but Java applications don't need a large runtime footprint. In this Spring Boot benchmark, @GraalVM Native Image used ~2.5-4x less memory than the JVM, along with much faster startup.
6
9
32
2,754
Viktar Patotski retweeted
Ideal CI should run/check: 📍Code formatting 📍Static code analysis 📍Licenses 📍Vulnerabilities 📍Compilation 📍Tests run 📍Test coverage degradation 📍Mutational tests 📍Performance degradation What have I missed? 🤔
4
11
67
7,985
Viktar Patotski retweeted
How do you organize code into packages in your Java applications? ♻️ for reach.
54%Package per layer
43%Package per feature
2%Other(I'll comment)
444 votes • Final results
7
3
17
5,347
Viktar Patotski retweeted
Yesterday, thanks to @lofidewanto, I learned about @OpenRewrite - a transformation ecosystem for Java and other source code. It consists of a platform of prepackaged refactoring recipes for common framework migration and stylistic consistency tasks.👇
2
5
1
21
4,734
Viktar Patotski retweeted
⚠️#Spring Performance Tip If your #Spring application runs in an environment where there is a read-only DB replica, then you can benefit by routing read-only transactions to this replica. This will remove load from your main DB and most likely improve performance. 👇
4
13
1
109
11,810
Viktar Patotski retweeted
#SQL is an essential part of software development. You need to know it, practice it and improve your language constantly. These 5 sites can help you improve your SQL skill 🧵👇
5
22
1
94
11,562
Viktar Patotski retweeted
⚠️Learning #Java Thread Alert⚠️ I found the notes I made while preparing for the OCJP exam. Today I decided to share all not obvious compilation errors you may face while working with #Java primitives. 🧵👇
7
59
2
237
23,045
Viktar Patotski retweeted
Back to #Java primitives. Easy to overlook these basics. Yet, they turn out to be the cause of pesky bugs when used incorrectly.
⚠️Learning #Java Thread Alert⚠️ I found the notes I made while preparing for the OCJP exam. Today I decided to share all not obvious compilation errors you may face while working with #Java primitives. 🧵👇
1
3
1,055
Viktar Patotski retweeted
❗3000❗ Thanks for following me in my software development journey! Follow me if you want to learn more about: 👩‍💻Software Development ☕ Java ☁️Cloud/DevOps ♻️CI/CD 🐧Linux ☸️K8s 🚄 Software performance ✅ Tech certificates And let's just celebrate 🎆🎆🎆🎆🎆
2
54
4,340
Viktar Patotski retweeted
⚠️#Java performance comparison⚠️ I decided to compare the performance of different collection iteration options. In particular: 📍 for loop 📍enhanced for loop 📍for loop with an Iterator 📍stream Details🧵👇
14
55
1
301
33,730
Viktar Patotski retweeted
Reminder for Project managers: Software projects are usually not diamonds, and applying more pressure usually doesn't produce better results. 🤓
2
8
39
2,983
Viktar Patotski retweeted
⚠️Top 5 Trending Java GitHub repositories February 2023⚠️ (Android excluded) 🧵👇
5
33
1
125
15,544
Viktar Patotski retweeted
Working without distractions keeps you focused and improves productivity by 100x. To be more effective every day I create/review a list of my todos and then use Pomodoro 🍅 technique to work on individual items. If you don't know about Pomodoro then read 👇
3
2
2
29
4,316
Viktar Patotski retweeted
#Java facts: Do you know that calling the constructor with the `new` keyword is not the only way to create an object instance in Java? In this 🧵I decided to list all ways to do it. I found 5 ways 👇
11
39
3
213
27,533
Viktar Patotski retweeted
Sip of #Java: "StringBuilder" and "StringBuffer" should not be instantiated with a character. You expect to have object containing char, but what actually happens is that the int representation of the character is used to determine the initial size of the StringBuffer. 😱👇
5
9
1
116
8,873
Viktar Patotski retweeted
⚠️#Java performance tip⚠️ Use primitive types instead of wrappers. Java primitive types: 📍byte 📍short 📍int 📍long 📍float 📍double 📍char 📍boolean More details and explanation in 🧵👇
13
39
4
256
25,948
Viktar Patotski retweeted
The Law of Triviality This law suggests that groups will give far more time and attention to trivial or cosmetic issues rather than serious and substantial ones.
1
2
1
8
2,742
Viktar Patotski retweeted
Tip: At the beginning of my career, I thought that software developers are solving problems by writing code. Later, I realized that solutions should be already found when you start writing the code. 🤓 First, solve the problem. Then write code. (c)John Johnson
4
5
59
2,649
Viktar Patotski retweeted
☕ Sip of #Java: When you need to generate multiple random values, do not create multiple Random objects, but reuse a single Random object. Create new will lead to: 📍performance degradation ‼️📍may produce numbers which are not random depending on the JDK ‼️ Details 🧵👇
4
10
2
81
9,915
Viktar Patotski retweeted
In all the job descriptions I've ever seen, it's stated that I'm supposed to write code, but what I do a lot is DELETE code. Is it normal? Do I violate the rule? :🤔
3
1
1
21
2,661