Viewing profile — javanonymous
javanonymous
HN member- Joined
- Sat, May 06, 2023, 7:35 AM UTC
- HN karma
- 46
- Public activity
- 25 items
- HN profile
- View on Hacker News ↗
About javanonymous
No profile information was provided.
Recent public activity
-
comment
Comment #45152727
There are several open source tools for Java (Eclipse, Visual Studio plugins, Netbeans and others). The reason I don't use them is not because they are bad, but because IntelliJ is…
-
comment
Comment #45152469
> why would we ever want in Java to hold a variable that you can't read immediately what is the type I can use my IDE to see the type if necessary. > Everything that came after isn…
-
comment
Comment #45152328
I think it has a lot to do with work culture. Many tend to mimic what others are doing in order to not stick out. At my previous job some were able to change that by consistently u…
- comment
-
comment
Comment #44817599
You can use version range with a maven plugin https://maven.apache.org/enforcer/enforcer-rules/versionRang...
- comment
-
comment
Comment #44593438
I haven't used it myself, but I know there is a plugin for a Maven build cache. It seems like it should improve incremental builds https://maven.apache.org/extensions/maven-build-c…
-
comment
Comment #44174745
The JVM tends to use as much memory as it can for performance reasons. It is not a reliable indicator of how much memory it actually needs. Why spend resources on clearing memory i…
- comment
-
comment
Comment #43109133
> It sounds good but in reality people end up spending time messing around with config files and annotations. I use Spring Boot at my day job and write mostly web services. I don't…
-
comment
Comment #43109035
> which is something that I would have said would never happen if you had asked me five years ago. I think a lot of people are noticing the changes Java has had in the previous yea…
-
comment
Comment #41635269
I think named parameters would be a great addition For now, I use Lombok's @Builder annotation. It makes it much easier to create and copy a record, where non-assigned attributes a…
- comment
-
comment
Comment #40029570
That's why moduliths are becoming more popular. These are basically monoliths that enforce structure. The other advantage is that each "module" can be extracted as a micro-service …
-
comment
Comment #39560781
The Java library actually supports this case. It may not have the convenient "years" method directly, but you can add an arbitrary unit of time quite easily Example with duration: …
-
comment
Comment #38139277
I'm not sure if I understand your point, but I haven't seen any NIH at the places where I have worked. We have been encouraged to use popular stable libraries when possible. Java h…
-
comment
Comment #37789189
If I understand your use case, most loggers (like Logback) have the possiblity to automatically include the name of the method that called the log-statement. Logback even supports …
-
comment
Comment #37663885
Lombok can be used for more than just getters/setters. I personally use the @Builder annotation on records with more than 3-4 fields. I find it much more readable than a long list …
-
comment
Comment #37308307
I've gotten 100x improvement with no code change by just adding an index in the database table. An inexperienced developer might have blamed the database and insisted on moving to …
-
comment
Comment #37307524
They wrote it from scratch with the benefit of all the knowledge they had gathered after running the old system for years. A 2X improvement would not be surprising to me, even if t…
-
comment
Comment #36571161
I'm curious about how you plan to work on checked exceptions. If it's just about ignoring forced exception management, Lombok provides the @SneakyThrows annotation. I would need so…
-
comment
Comment #36565560
It was included as an incubator feature in Java 19, and will be available as a preview feature in Java 21 later this year
-
comment
Comment #36401000
Spring Modulith is trying to enforce strict module boundaries. I haven't yet tried it myself, but it looks promising: https://spring.io/blog/2022/10/21/introducing-spring-modulit..…
-
comment
Comment #36400931
At one of my previous jobs, they had a "BOM" that each service inherited from. This contained most of the core dependencies (Spring, database drivers, logging, monitoring, auth, se…
-
comment
Comment #35839131
There are tools for enforcing boundaries. One name for this is "Modulith" where you use modules that have a clear enforced boundary. You get the same composability as micro-service…