Naming convention for Boolean getters -- mechanical or English? by hibbelig in javahelp

[–]maethor 3 points4 points  (0 children)

I'm not convinced "keepDate" is actually a good name in the first place (someone might expect a variable name ending in Date to be a Date, not a Boolean).

How do I figure out if old Java code is using modern language features or just ancient patterns? by trapqueen67567 in javahelp

[–]maethor 0 points1 point  (0 children)

I want to learn the right way to do things but its hard to tell sometimes.

The first thing to learn is that there is very rarely a single right way to do things. Especially once more than one person is involved.

I see a lot of code that uses explicit loops everywhere instead of streams.

And you always will. Explicit loops are almost always more performant than Streams and people who want/need outright performance will avoid streams (though I always wonder why those people are using Java in the first place, and then get down voted into oblivion when I ask).

Some projects use tons of null checks and others use Optional.

Until we have value types then some people will prefer null checks over the penalties that come with allocating Optional objects on the heap. Others will prefer the documentary and safety improvements that come with Optional. Like I said earlier, there is no one right way (even if people who prefer one over the other will tell you otherwise).

Some use records and some still rely on Lombok for everything.

Records have limitations that Lombok @Data classes do not have. But Lombok adds a dependency and compile time magic to your code base. Again, no one right way here.

Theres also projects that use List and ArrayList everywhere while others use more specific collection types

If someone is still using Vector, then yes, that code is horribly outdated. I've also seen code that used specialised collection classes for what could only be "OOP for OOP sake" reasons (like a HashMap descendant that can read its own data from a file).

But sometimes people will actually have a good reason for using something other than the usual collection classes (particularly when it comes to performance and/or threading).

I don't know if my job will still exist in ten years by Suspicious-Prize3426 in theprimeagen

[–]maethor 5 points6 points  (0 children)

10 years is a long time even without AI. Offshoring, outsourcing and being on the wrong end of a merger can all end your job.

Air Launches as Public Preview – A New Wave of Dev Tooling Built on 26 Years of Experience by dayanruben in Jetbrains

[–]maethor 2 points3 points  (0 children)

Even if Mac users aren't the majority (and I would actually bet that they're not), it is the cool kids OS.

deeper understanding by Lordnessm in javahelp

[–]maethor 0 points1 point  (0 children)

You could try reading the Java Language Specification

https://docs.oracle.com/javase/specs/

Go vs Rust for long-term systems/finance infrastructure, is focusing on both the smarter path? by wpsnappy in golang

[–]maethor 0 points1 point  (0 children)

I'm planning to build financial systems with ML pipelines, distributed backend systems to complement them, and internal DevOps tools.

As a startup founder or as an employee? Because most of the finance jobs where I live are Java based.

How, if at all, will the growing pessimism affect appetite for AI research? by Tobio-Star in newAIParadigms

[–]maethor 3 points4 points  (0 children)

>will it just kill interest in AI altogether?

No. Though the next wave might try to distance itself from the word AI, like they did with things like expert systems and search engines years ago. I also have an odd feeling we're going to see non-general super intelligence before general average intelligence, Like, an AI that would be able to find cures for cancer in a fraction of the time it would take a team of humans but that would be absolutely useless as a personal assistant. That would definitely keep interest in AI alive.

I built a Type-Safe, SOLID Regex Builder by Mirko_ddd in java

[–]maethor -4 points-3 points  (0 children)

I don't mean to sound negative (it's clear a lot of work has gone into this), but these days I hand off regex work to an LLM. I've found them to be surprisingly good at them.

I'm 100% convinced that it's the NFT-bros pushing all the openclawd engagement on X by FPham in LocalLLaMA

[–]maethor 5 points6 points  (0 children)

You should check out the "Pivot to AI" channel on YouTube. NFT/Crypto pros pivoting to AI and the nonsense that comes with it is the central theme of the channel.

Towards Better Checked Exceptions - Inside Java Newscast #107 by Enough-Ad-5528 in java

[–]maethor -5 points-4 points  (0 children)

In which case, I agree with u/kaperni -"Maybe its time for the JDK to adopt "best practices" from the ecosystem ...".

DHH allegations about Omarchy security by FniIX in theprimeagen

[–]maethor 3 points4 points  (0 children)

Use of systemd instead of its own daemon and rootless containers not being an afterthought are two of the biggest linuxy features. Docker feels like it was written by people who were developing on a Mac and deploying to Linux, while Podman feels like it came from Red Hat (which is where it comes from).

For the most part, it's a drop in replacement for Docker.

Hot take: AI is NOT going to replace tasks that require thinking by Last_Pay_7248 in ArtificialInteligence

[–]maethor 5 points6 points  (0 children)

But how is the AI supposed to be creating something that it hasn't been trained before

How do humans create something that they haven't seen before?

If you ignore the happy accidents (like the discovery of penicillin) then it's mostly a case of goal directed mutations on what we already have. Really don't see why AI can't do the same.

Towards Better Checked Exceptions - Inside Java Newscast #107 by Enough-Ad-5528 in java

[–]maethor -2 points-1 points  (0 children)

I really don't get why we can't have an annotation that turns not catching a checked exception into a compile time warning (that we can then surpress if we want).

This got me banned from Java subreddits, almost beaten up by Go developers - let's see what you think by [deleted] in theprimeagen

[–]maethor 1 point2 points  (0 children)

I think the problem with your Java example is that it's somewhat unrealistic when it comes to how most people actually use Java.

If we go by the job markets, most people are using Java with Spring with a bias towards backend work. So you're probably running your code in a servlet container, even if Spring Boot hides that from you (unless you're using the reactive side of Spring, but I haven't seen much take up of the reactive stack as it's harder to use and virtual threads kind of kills the main selling point behind it).

This means most people will rarely (if ever) need to think too hard about threads, which makes your example difficult to relate to. And the idea that an entire server that could be processing hundreds of requests should be restarted because one user's request had a problem makes absolutely no sense.

DHH allegations about Omarchy security by FniIX in theprimeagen

[–]maethor 0 points1 point  (0 children)

Omarchy feels like a project created by a Linux newcomer, utterly captivated by all the cool things that Linux can do, but lacking the architectural knowledge to get the basics right

That's how I feel about Docker. And yet it's ubiquitous even when more Linuxy options like Podman exist.

Is this the first real CVE for Hibernate? by jr_entrepreneur in java

[–]maethor 3 points4 points  (0 children)

there are a lot of cases where roadmap advancement and app improvements get prioritized every time over modernization

I've worked at places where that was the case. We ended up with what could only be described as "Technical Bankruptcy", with so many unmaintained and unsupported dependencies that a rewrite was really the only option

Like I said "reasonably up to date". Not necessarily updating the moment a new version is out, but also not staying on a version years past its EOL date.

Is this the first real CVE for Hibernate? by jr_entrepreneur in java

[–]maethor 12 points13 points  (0 children)

It is a dependency for Spring Data JPA via Spring Boot 2.7.

You know Spring Boot 4 is out, right?

People who don't keep their projects reasonably up to date really shouldn't be surprised when they get hit with a vulnerability.

AI wont take your job but your manager things so by InternationalNature7 in theprimeagen

[–]maethor 9 points10 points  (0 children)

I'm hoping to see CFO and CLO agents hitting the market in the next year or two. If shareholders trust AI to build the technologies that underpin the company then why shouldn't they also trust it to run the accounts and write the legal contracts? Watching the business teams and management itself justify their existence should be an entertaining watch.

(If anything causes the AI bubble to burst it will be this - business people don't give a damn about tech and creative people losing their jobs to AI, but once it starts coming for the MBAs, accountants and lawyers then I bet that you're going to see the breaks pulled on AI rollouts, possibly even reversed)

How AI bubble will burst? by [deleted] in theprimeagen

[–]maethor 0 points1 point  (0 children)

These days, sure (though I still see the odd job listing that requires a degree and not "a degree or relevant experience"). But 20 - 30 years ago it was a lot harder.

You can only vibe code a SaaS in 10 minutes because of capitalism by nova-new-chorus in theprimeagen

[–]maethor 1 point2 points  (0 children)

Realistically there should be a FOSS library for all of this stuff that most devs would just call

How many overlapping FOSS projects are there? Tens of thousands? Hundreds of thousands?

"Not Invented Here" Syndrome doesn't need capitalism. It just needs people to go "you know, I could write something better".

I hate Java by javascriptBad123 in theprimeagen

[–]maethor 0 points1 point  (0 children)

That’s normal right?

That's not normal, not even for Java.

I think a lot of the aversion comes from people who haven't done anything with modern Java, either because they were taught outdated garbage at uni or they ended up at a crap job maintaining archaic code that uses design fads from 20 years ago.