Java tip:
Enums aren’t just constants.
They’re actually classes → you can add fields, methods, even constructors.
Way more powerful than most people think
Java Tip
Group items in one line using Collectors.groupingBy:
Map<Integer, List<String>> byLength =
List.of("java", "code", "stream", "tip")
.stream()
.collect(Collectors.groupingBy(String::length));
Groups words by their length.
Writing clean code is less about making it easy for the computer and more about making it easy for the next human (which might be future-you).
Anyone else found old code of theirs that felt like reading a foreign language?
In Java applications, one simple tweak can improve performance by 50x.
@transactional
public List<Order> getRecentOrders() {
return orderRepository.findRecent();
}
Do you find anything unusual here? Applying @transactional in a read/GET call. Worst part is by default,…
In Java, when you do
Person p = new Person(); → the object (new Person()) is created on the heap.
The reference variable p usually lives on the stack.
It is like, the stack holds the address, the heap holds the house.
That’s why multiple variables can point to the same object
In Java, if you don’t write a constructor, the compiler automatically provides a default no-arg constructor.
But the moment you define any constructor yourself, Java won’t generate that default one for you.
5 Followers 89 Following📚✨ Discover a world of free, AI-generated books across all genres.
Your next great read is just a click away.
👉 https://t.co/7SA8ri1M42
24K Followers 23K FollowingManaging Partner @emerging_v_c
#Emerging #Tech "Super Angel" #investor.
Invested in over 500 #startups.
Follow me for insights on the tech startup ecosystem.
2K Followers 1K FollowingML Intern at SF Company | Motivation edits | I post random tech/non tech stuff too |
Connect : X | Insta : 9.7M+ views🩷 | Pinterest : 57k+
3K Followers 322 FollowingJava Backend Engineer @Sharkdom | Dev Advocate @Master_backend | Contributer on @9tigerio | Scaling efficient backend systems | Building AI Agents
2K Followers 1K FollowingML Intern at SF Company | Motivation edits | I post random tech/non tech stuff too |
Connect : X | Insta : 9.7M+ views🩷 | Pinterest : 57k+
184K Followers 118 FollowingJava developers resource center. JCGs is one of the fastest growing Java developers community on the net. Created by Java developers for Java developers
154K Followers 23 FollowingThe Leading IDE for Pro Java and Kotlin Development, by @JetBrains
Tips: #IntelliJIDEATips
New Features: #NewInIntelliJIDEA
Our YT channel https://t.co/GuAlWUIi7Q
39K Followers 93 FollowingI help ambitious professionals develop high paying data skills | Ex-Data @ Revolut | Building https://t.co/ZvNDp3EPIl to help data pros land jobs
277K Followers 453 FollowingCo-Founder of ByteByteGo | Author of the bestselling book series: ‘System Design Interview’ | YouTube: https://t.co/9gPSJSrtPU
25K Followers 322 Following📢 Sharing AI Tools, Web Devs & Tech Tips · 🚀 100K @LinkedIn · 💻 MERN Stack Dev · 🤖 AI Enthusiast · 💼 Open to Freelance & Collabs · 🛠 Building AI Agents
No recent Favorites. New Favorites will appear here.