Mario Casari
mcasari.bsky.social
Mario Casari
@mcasari.bsky.social
22 followers 20 following 17 posts
Software developer and blogger. Loves Science, Art, Literature, Cinema. https://linktr.ee/mcasari Web site: https://codingstrain.com
Posts Media Videos Starter Packs
Using AI in your work highlights its ability to assist with many tasks, but it remains far from replacing your role as a programmer. I enjoy using it because, honestly, at least 80% of a developer's job involves repetitive, alienating tasks suited for machines. #AI #Programming
Reposted by Mario Casari
Discover how the decentralized internet puts power back in users' hands—boosting privacy, cutting out middlemen, and redefining the digital future. #decentralizedinternet
The Future of the Internet is Community Driven
hackernoon.com
If AI is intelligence, then intelligence must be highly overrated. #AI #Intelligence
Reposted by Mario Casari
Now I have to have one of these decanters.
🟩Example:

public class MainClass {
private HeavyClass heavyObj;

//instead of creating it in the constructor
public HeavyClass getHeavyObj() {
if (heavyObj == null) {
heavyObj = new HeavyClass();
}
return heavyObj;
}
}
#Java #Performance
Java Tip 💡: To improve your application's responsiveness, avoid initializing heavy objects that may never be used.

Consider Lazy-loading them at the appropriate time to rationalize memory usage and improve response time.

#Java #Performance
Reposted by Mario Casari
Collaborative code cities in VS Code boost comprehension and usability, with user feedback guiding next steps in software visualization research. #softwarevisualization
Why the Future of Coding Might Look Like a Virtual City Tour
hackernoon.com
Reposted by Mario Casari
Reposted by Mario Casari
Claude Code just launched on the $20 Pro plan—finally accessible AI that refactors legacy code, writes tests, and beats Cursor in real-world dev tasks. #ai
Claude Code Makes Every Other AI Coding Tool Look Amateur
hackernoon.com
For example:

public class Config {
...
public static String getConfigPath() {
return configPath;
}
}

The configuration path is shared globally, and changing it in one place could affect others.

#Java
Java Tip 💡: Try to avoid static variables unless they store truly global values.

• They hinder testing by making it harder to isolate classes due to shared state.
• They reduce code reusability.

#Java
Reposted by Mario Casari
A singular act of defiance that will never go out of style.
Reposted by Mario Casari
These ultra-translucent interfaces rarely work well as a system, because the transparency introduces way more problems than it solves. It’s form over function.

I’d bet that a lot of this liquid glass stuff will end up more like semi-opaque-frosted-glass in the end. But it looks cool as a demo!
Reposted by Mario Casari
Most of the world still runs on legacy code. Here’s how smart teams safely refactor, test, and modernize without breaking what already works. #softwaremodernization
Why Legacy Code Still Runs the World
hackernoon.com
Reposted by Mario Casari
The Pillars of Creation, seen here in mid-infrared by #NASAWebb, adds to decades of research about star formation by helping astronomers analyze the densest dusts and gases of the region, and improving the precision of their star-formation models: bit.ly/45ayCYi 🔭 🧪
Reposted by Mario Casari
Learn how Modulith architecture offers a balanced approach to building scalable apps—between the simplicity of monoliths and the flexibility of microservices. #microservices
Monolith vs Microservices vs Modulith: The Evolution of Software Architecture
hackernoon.com
Reposted by Mario Casari
Sen Bernie Sanders (I-VA) just now on CNN:

"We have a President moving this country rapidly into authoritarianism. He's suing media who criticize him. He's going after law firms that have clients who were against him. He's suing universities who teach courses he doesn't like"
🧵2/2 If, for instance, we define a static list somewhere:

private static final List byteList = new ArrayList<>();

Some parts of the code may keep adding elements without removing them, eventually leading to memory exhaustion.

#Java #MemoryManagement
Java tip💡: Don’t rely on Garbage Collection blindly, memory leaks are still possible.

#Java #MemoryManagement

🧵1/2
Reposted by Mario Casari
✨ New blog post: "STF Milestone 4: Parameterized test classes"

JUnit 5.13 introduced parameterized test classes (in addition to methods). They are a powerful testing tool that has long been missing from JUnit Jupiter...

👉 marcphilipp.de/blog/2025/06...
It looks like a painting
Reposted by Mario Casari
🧵
Here is a cosmic delight: LBN 867, dubbed the Raspberry Nebula although its overall structure is more like an onion!

In fact, this fascinating H II region, located in the constellation Orion, contains three different objects within its structure!

➡️ noirlab.edu/public/image...

🔭 🧪 #science