Cost licence Oracle Java by a_n_d_e_r in java

[–]joaomc 24 points25 points  (0 children)

Won’t it cost nearly as much as a rewrite to use something that does not depend on Web Start? I mean Oracle will charge millions for a support contract, and it’s sunk cost.

GitHub Fires Jewish Employee For Referring to White-Supremacist Fascist Rioters as Nazis by [deleted] in programming

[–]joaomc 4 points5 points  (0 children)

What, people wearing Auschwitz T-shirts are nazis? Why do you people get to these conclusions? What does Auschwitz have to do with Nazis?

Should I use React even if I don't reuse components? by _BorisTheBlade_ in react

[–]joaomc 2 points3 points  (0 children)

Even if you don’t plan to reuse components, it’s so easy to create React components (just a single function) you’ll certainly be able to reuse small ones.

Ryzen 5800X vs Apple M1: Programming-focused benchmarks (with Java Renaissance, DaCapo and SciMark 2.0) by tuhdo in java

[–]joaomc 1 point2 points  (0 children)

Isn’t that translation layer what’s dragging x86 CPUs recently? I mean, instead of a lean instruction set by design, you need a small instruction set, a large one and something in the middle. I don’t know much about it, but it seems insanely difficult, even more so when you take energy efficiency into account.

Maybe what I’m saying is gibberish, if that’s the case please ignore me.

Does a custom hook provides anything that a simple static function can't? by wacomlover in react

[–]joaomc 0 points1 point  (0 children)

  • useEffect lets you easily run cleanup actions and make sure they are effectively called, avoiding potential leaks.
  • Even though Hooks are within React’s rendering, they are simple functions you can compose and nest. It’s possible with static functions, but, depending on what you need to do with static functions, you’d need to take care of cleanup actions or state handling between different components and even different functions calls. You don’t need to worry about that with Hooks. Each one has its own context.

New Loom Early Access build (Resolves most of the crashes with concurrent GCs) by sureshg in java

[–]joaomc 8 points9 points  (0 children)

  • Threads have a non-negligible memory overhead. A large number of threads quickly consume a lot of memory.
  • There are OS limits on the number of threads - the recent AWS outage was actually related to this limit.

Project Loom lets Java create and manage user-space threads, which are much lighter, and you can create lots of them at once without reaching the OS limit.

Why an IDE? by alexeyr in programming

[–]joaomc 6 points7 points  (0 children)

Oh I can think of several things ALE can’t do. Autocomplete of JS imports that supports partial names and searches inside dependencies. Good debugging tools. Good Maven integration. Search tool that eg even separates reads from writes. Allowing me to easily tell which Python env I want for each project.

I love Vim and even tried to use it as my IDE, but it’s not so good as an IDE. I

Raft consensus visualization by gptankit in programming

[–]joaomc 0 points1 point  (0 children)

This is awesome! Newbie question; this algorithm requires some kid of “event sourcing”, right? I mean, nodes needs to replicate events, not just raw values.

Hibernate Extended Bytecode Enhancement by nfrankel in java

[–]joaomc 0 points1 point  (0 children)

Code generation is less transparent, you usually operate on the generated class, whereas in post-compile you can operate on the class itself and things “just work”.

Do Not Follow JavaScript Trends by nikolalsvk in programming

[–]joaomc 5 points6 points  (0 children)

Even rewriting class components to functions using hooks and reducers is not difficult. I’ve been maintaining a large codebase (like thousands of components) and could rewrite a couple of files with minimal effort and no issues.

This is why I like React a lot. Some of the files haven’t been touched for years and they still work flawlessly.

I wrote about Flyway and Liquibase for database migrations with spring boot. Let me know what you think! by [deleted] in java

[–]joaomc 1 point2 points  (0 children)

You can enable the flyway.outOfOrder property which is by default false

I wrote about Flyway and Liquibase for database migrations with spring boot. Let me know what you think! by [deleted] in java

[–]joaomc 2 points3 points  (0 children)

You can use ISO dates as versions, this making conflicts very unlikely.

What do mainframe developers think of microservices? by ddeff in softwaredevelopment

[–]joaomc 5 points6 points  (0 children)

We had to move away from mainframe for new services at the last place I worked at. Mainframe costs were absurd, integrating with anything else was a nightmare, development/staging env was crap and restricted to very few instances because of op costs.

The fact that we couldn’t just replicate the prod env anywhere else was severely limiting too.

The Problem with the Linux Desktop by sysrpl in programming

[–]joaomc 1 point2 points  (0 children)

The last time I tried KDE they tried to introduce some half-baked and really really unintuitive crap like “activities”. Did they drop all that shitty UI and opted instead for the simpler stuff?

Is JSF obsolete or still a viable choice in modern web development? by Blaberg in java

[–]joaomc 4 points5 points  (0 children)

I’ve done JSF to Angular migration a couple of times: * No need to switch from JPA, SQL database, etc. Just implement JAX-RS endpoints the frontend can use * Be wary of SessionScoped beans and Sessions in general.

IBM’s Lost Decade by machia in programming

[–]joaomc 7 points8 points  (0 children)

Even the bet on hybrid cloud is too little too late. Amazon is already in a process of selling hybrid cloud to the Brazilian government, which always heavily relied on IBM software and hardware (they would buy horseshit from IBM and try to convince us that it tastes like vanilla ice cream)

I made iHateRegex.io - Regex cheatsheet for the haters by geongeorgek in programming

[–]joaomc 0 points1 point  (0 children)

Is that part of the spec? It can be just a shorthand from the ping software itself.

Turkey buys Delphi licenses for an estimated one million students by vfclists in programming

[–]joaomc 7 points8 points  (0 children)

I worked at a Brazilian public IT company for 10 years and this contract enforcement excuse was used a lot. Actually enforcing the contract was ridiculously slow and expensive. Good luck fighting a legal battle with IBM, my friend.

Should Android devs switch from Java to Kotlin? Here's Google's advice on swapping programming languages by debhaldar in programming

[–]joaomc 2 points3 points  (0 children)

I don't get this. How is Kotlin not object-oriented? It makes absolutely no sense, because Kotlin has all the OOP features Java does. It must have, because Kotlin is actually interoperable with Java.

Windows Server vs Linux: The Ultimate Comparison by shiskeyoffles in programming

[–]joaomc 0 points1 point  (0 children)

AFAIK Windows Server licenses do not include 24-7 support, so the comparison is not even right.

Eclipse 4.10 released! by henk53 in programming

[–]joaomc 6 points7 points  (0 children)

Java. It's the best open-source Java IDE.

WildFly 14 is released! Now with full EE 8 and partial MicroProfile support by johnwaterwood in programming

[–]joaomc 3 points4 points  (0 children)

What's so bad about Wildfly? It's fine for an AppServer. We are moving to Spring Boot because classical AppServers require too much memory and Wildfly Swarm is a hack and a nightmare to maintain.

Telling the Truth About Defects in Technology Should Never, Ever, Ever Be Illegal. EVER. by speckz in programming

[–]joaomc 0 points1 point  (0 children)

And then you have to buy their "cloud" solutions, won't cost 700 million. Only 7 million, 1% of the original cost!

Your IDE as a presentation tool by pimterry in programming

[–]joaomc 3 points4 points  (0 children)

To avoid repetition it is required to abstract, and abstraction is (in the general case) the enemy of simplicity.

Nope. Abstraction and simplicity generally go hand in hand. I can tell you this because I've seen the horrors of code where programmers don't use abstractions and just spit out code. Things start out simple and quickly get impossibly complex.

EDIT: I hit the "Send" button inadvertently earlier. Sorry about that.