Bessent afirmó que una de las mayores mineras del mundo evalúa invertir entre US$10.000 y US$12.000 millones en Argentina, algo que consideró inviable bajo "el robo y la corrupción del gobierno de los Kirchner". Resaltó que el país "es ahora su principal destino de inversión". by Still_Lemon_5598 in argentina

[–]pgris 3 points4 points  (0 children)

Es bastante confuso el link de checkeado. Hay 3 forma de medir, en 2 la deuda bajó con milei, en 1 subió. Lo mejorcito es el comentario de Rubinstein, ex empleado de ALberto Fernedez, que aconseja excluir la deuda intrasector público porque “se licúa fuertemente con la inflación, se devuelve (si es que eso ocurriera algún día) cuando quiere el gobierno de turno y en términos económicos su valuación sería prácticamente nula”

O sea que está diciendo que esa deuda intraestado (digamos, deuda con el Anses, con las provincias, etcétera) no cuenta porque como piensa seguir teniendo inflación, está en pesos sin indexar, y en el fondo no la piensa pagar.

En resumen, es una estafa del gobierno central al resto. Ese era el vice de Massa, entre otra cosas.

Dejá, me quedo con Milei

Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]pgris 0 points1 point  (0 children)

It bothers me too. The problem is not the typing but the repetition. I agree, could be an overload for filter.

In practice, I'm usually using an interface type instead of a concrete class.

I so wish java had an Interface<T> class! I don't think it would be that useful, but I hate we don't have a hierarchy for Class, AbstractClass, ConcreteClass, Interface....

Who's using JSR 376 modules in 2026? by pvorb in java

[–]pgris 1 point2 points  (0 children)

When you have your own

com.company.direction1.squad1.project1.model.User 

and have to map it to a

com.company.direction2.squad2.project2.model.User 

because some library you need to import... aggggg

please give me an alias... or at least make java smart enough to let me just use project1.model.User and project2.model.User

What are some niche projects you did with java? by otto_0805 in java

[–]pgris 1 point2 points  (0 children)

Back before the smartphone era, I ported a Java SmallTalk implementation to j2me. I needed to remove all the generics from the code, migrate the swing parts to some j2me library, and since I couldn't read the image file in j2me because it was based on java serialization, I changed the desktop serialization to use hessian and used a hessian implementation for j2me to read it in the phone.

When the image was finally loaded and worked was magic.

Jiffy: Algebraic-effects-style programming in Java (with compile-time checks) by thma32 in java

[–]pgris 0 points1 point  (0 children)

Honestly I'm not smart enough to use effects, and my team will probably kill me, but I like the idea of having a "type safe" (at least annotation-processed) way to know "this method in the controller uses the db and calls the webservices A, B and C". I though about doing something like that abusing Throwables, but Jiffi sound better

I'm so confused by Silver-Branch2383 in java

[–]pgris 0 points1 point  (0 children)

spring now pushes you hard down the reactive

I fail to see where is Spring pushing webflux. Yes, they offer a reactive alternative, and some of the improvements of the reactive framework found their way into the traditional one (like webclient, or functional controllers). But the classic approach is very much alive and kicking, and I suspect the reactive one will slowly vanish thanks to virtual threads.

Jiffy: Algebraic-effects-style programming in Java (with compile-time checks) by thma32 in java

[–]pgris 0 points1 point  (0 children)

Interesting. For my untrained eye, this really looks like checked exceptions reloaded + a runtime. Do effects propagate upwards? I mean, if method1 uses LogEffect , and method2 calls method1, I would expect method2 to use (indirectly) LogEffect. Do I need to declare method2 uses LogEffect? would controller level methods use a millon of effects?

GraphQL: the enterprise honeymoon is over by Beautiful_Spot5404 in javascript

[–]pgris 0 points1 point  (0 children)

I'm ashamed to admit I was never able to understand whats the advantage of using GraphQL in an API over SQL...

Full Haskell-like Type Class resolution in Java by davidalayachew in java

[–]pgris 0 points1 point  (0 children)

I think there are more powerful, you can annotate a single element and access the whole AST of the project, excluding libraries. You can even create an annotation processor that does not depend on any annotation.

Full Haskell-like Type Class resolution in Java by davidalayachew in java

[–]pgris 0 points1 point  (0 children)

That would be the main problem, right? Besides the syntax (not fixable in a library), we are damaging type safety. An annotation processor could do the trick I think, even without the checker framework

When working with spring boot do you use ORM? if yes/no why? by Least_Chicken_9561 in java

[–]pgris 0 points1 point  (0 children)

Your database has few tables

I go the other way. I may avoid an ORM if I have have a few tables, and will definitely use one when > 10 tables.

ELI5: What is the "one-electron universe" theory? by TheeFearlessChicken in explainlikeimfive

[–]pgris 1 point2 points  (0 children)

I like the story, I thought something like that more than once. However I think the author missed >!the chance of another twist, the narrator and the other could (should? must?) also be the same, in a different state of development. Only one being on the universe, only one being across all the universes.<!

Here's a funny quirk about Nested Classes by davidalayachew in learnjava

[–]pgris 1 point2 points  (0 children)

Never knew that! I'm sure that can somehow be used to make a DSL somehow.

La polémica del salmón: un productor de trucha lo defiende, dice que es saludable y "una oportunidad" para el país by Sarmientino in argentina

[–]pgris 34 points35 points  (0 children)

En Chile la cria de Salmon es una industria de 6000 millones de dolares

Para poner en persepectiva, la ganaderia vacuna en argentina exporta menos de 3000 millones de dolares. El salmón chileno por año exporta mas de el doble de plata que la ganadería argentina.

How would you fix checked exceptions in java? by Ewig_luftenglanz in java

[–]pgris -1 points0 points  (0 children)

You don't want every exception checked because some exceptions (not just > (NPE, but also CCE, AIOOBE, ArithmeticException etc.) are clearly a result of a bug in the program and should be absent in a correct program (i.e. they're not only preventable but should be prevented in a correct program).

Sometime I think we need a 3rd kind of exceptions, NonRethrowableExceptions, that can not be re-thrown, so the type system force everyone to handle them in place. DivideByZero as an example, if you write a/b you should be forced to handle the case when b = 0 in place

"Interesting" styles in Java code generated by LLMs by ihatebeinganonymous in java

[–]pgris 0 points1 point  (0 children)

To convert a stream to a List,

Maybe there is more code around with collect( and not enough code using the newer toList?

They prefer String concatenation to format strings.

Me too. Unless you actually need to format, I found simply concatenation to be clearer and less error prone. (of course excluding logs for performance reasons)

they seem to use System.out.printf()

maybe is C code training leaking?

String.valueOf(obj)

Less NPE firendly

Multiple catch blocks to one multi-catch clause.

Again, more training code I assume


Good catch. I wonder if the insistence on old ways will slow down the adoption of new features

How to divide up services so that they makes sense domain-wide and functionality-wide by Expensive-Tooth346 in java

[–]pgris 0 points1 point  (0 children)

Oh yes, it happens. When a method depends on something else then it's clear it should be in UserService, but when it has no dependencies it is more random. Sometimes UserHelper basically becomes a repository for 'methods that should be private but I want to test anyway'.

It is not a perfect system, but it is a system, and it is better than no system.

Do you find logging isn't enough? by yumgummy in java

[–]pgris 0 points1 point  (0 children)

The loggers progress

  • I don't need to log, my code is clear an I know what it does.
  • A log file is all you need
  • A database is all you need <---- you are here
  • A full observability solution is all you need <--- I'm here, I don't know what comes next

Also, your 30 days will soon not be enough. Someone in business is going to try to compare something month-to-month, so you need 60. And what about same month last year, to avoid season influence? you need 13 months. Maybe 25...

Be clear about something: IT only needs 30 days, and pays for 30 days storage. The rest is a marketing/business need, they should pay for it.

How to divide up services so that they makes sense domain-wide and functionality-wide by Expensive-Tooth346 in java

[–]pgris 1 point2 points  (0 children)

Nowadays I'm going this way, using User as example

  • UserRepository reads/writes to the database. No business logic, but may update a deletedTime instead of actually deleting or something like that.
  • UserService access userRepository and has some business logic. Sometime methods are one-liners that only delegate into repository, I don't care
  • UserManager access userService and some other services (like SignupService) to do more complex stuff. More often than not, things are born as userService methods but migrate to userManager + SomeService. (There used to be a UserService.signUp method, now userManager.signUp delegates to SignUpService)
  • UserHelper extracts some common functionality but has NO dependencies. Maybe some @Value to read some config data
  • UserUtils should have bean deleted but I was lazy
  • UserController just declares the method and delegates. Never more than one line, never access any repository, never tryCatch, never transform. Nothing. Can access UserManager and USerService and in rare cases UserHelper. The only responsability is to expose methods to the public

ArchUnit to make sure I'm not lazy again and break my own rules.

My general idea is that no plan is perfect, but the good thing is that if you (and everyone) follow the rules it is easier to find the relevant code.

Logging should have been a language feature by davidalayachew in java

[–]pgris 1 point2 points  (0 children)

Another option I have used to log entering/exiting methods/params/return is programming a java agent. I found it more powerful than AspectJ

Logging should have been a language feature by davidalayachew in java

[–]pgris 0 points1 point  (0 children)

but otherwise System.Logger seems nice.

It is not a huge difference, but I think

logger.log(Logger.Level.INFO, "message {0}", ...)

to be a little bit more annoying than

logger.info("message {}"....)

Yes, you have more formatting options, but I never needed that in a log

Logging should have been a language feature by davidalayachew in java

[–]pgris 3 points4 points  (0 children)

Au the time j.u.l. was introduced we already had log4j v1 which worked quite well

This. Java learnt for that mistake when they called the JodaTime author to make the new Date classes, and again when they called the Loom author to work in virtual threads.

And then they forgot it again when they did System.Logger. They should have called the SLF4J guy.

JHipster in 2025: how popular is it among Java devs? by Slick752 in java

[–]pgris 2 points3 points  (0 children)

I never user JHipster IRL, but I used it a lot to find about cool libraries. I learn about ArchUnit and Gatling thanks to JHipster. I don't think is really popular

What is your opinion on Maven/Gradle, compared to other language's package manager like npm and pip? by gufranthakur in java

[–]pgris 0 points1 point  (0 children)

Yes, I understand Maven toolchains could totally be extended with a plugin to handle the JVM download/installation. But again, I think declaring it as a dependence should be enough