Hacker Newsnew | past | comments | ask | show | jobs | submit | Lewton's commentslogin

Lombok fucking sucks

@requiredargs sucks, if you rearrange the order of two fields with the same type on a class you invisibly break the code. If you have multiple constructors (requiredargs, allargs) it makes tracing how they’re used using the built in tools of your IDE impossible

@builder fucking sucks, if there’s non-nullable fields and you don’t set them, at best you get a runtime exception. Builder pattern should take non-null args explicitly in the builder() method so when you add a new required field it doesn’t invisibly break code 8 modules away

Only good thing is indeed the log annotation, and to some degree @getter @setter, big whoop


> tracing how they’re used using the built in tools of your IDE impossible

It is possible but requires more key strokes. It is annoying, but possible.


Can you elaborate?

To be clear, I know how to look up where the class is used, and i know how to look up where constructors (note, plural) for the class is being used, but I have not found a reliable way to find where a specific constructor is being used if the class has multiple


I use Idea with eclipse shortcuts. I have lombok plugin.

Ctrl-O for a popup window of all methods. The lombok generated constructor is there. Highlight it and then shortcut for call hierarchy. Ctrl-h or ctrl-alt-h I am not sure now.


If you don't like it then don't use it and carry on. No need to litter the world with such negativity.


There is a litany of expensive consultants coming in and shitting up code bases worldwide with cargo-culty supposed 'best practices' like Lombok. It is good to call it out.


> If models had persistent memory or an evolving set of weights, you could easily construct an argument that they can experience "suffering" or other emotions which resultingly adjusts their personality.

They do, during training


The argument that models are conscious only during training, and not conscious during inference feels like a painful one to make. Are we killing models when they reach the training objective?


Technically we are killing models when they don't reach the training objective by throwing those weights away via survival of the fittest (fit meaning what we humans think we want).

Kinda like creating quantum copies of your child and keeping the ones that answer correctly and shooting the other ones in the face.


If it was me, being forced to read all of Reddit is something I'd consider "suffering."


“With minimal cost”

Are you trolling


From a military standpoint, no.


Yes, but the military exists for the nation, not the other way around, so a military success that turns into a national disaster is not a military success at all.

That's why even in the nuclear Navy, as crazy as they are about reactor safety, they would train and preach continuously that "safety of ship" is more important than reactor safety, because the reactor is not safe if the ship is not safe.


https://defencesecurityasia.com/en/iran-strikes-us-bases-mid...

From a military standpoint, yes. You have to have your head buried in the sand to think we didn’t have significant loss of military assets in the region.


Thank you!

It really irked me when I read it the first time and it drives me nuts that no one else seems to catch this, you’re the first one in some 100 HN threads to point it out


Some of the cpi data is synthetic, based on best guess, the ratio of synthetic data has gone up sharply https://www.apolloacademy.com/the-quality-of-the-cpi-data-co...


> That all of earth is round, comes not from direct observation (except for the very few people who have been in space).

or anyone who's been in a plane?



Wow, that is a weird and interesting plot, thanks for that, I take it as a recommendation.


What kind of planes are you flying?

I mean, I just checked, it seems under ideal conditions one could see the curvature of earth at 10.5 km height, but to me it was not really a convincing curvature last time I did a long flight. Your experience was different?


10.5km (34.4kft) is an ordinary cruising altitude for an ordinary commercial airliner.

The curvature of the earth can be quite apparent on a clear day at that altitude when flying over water. Or the midwestern US.


Well thanks, then this is what I will recommend the next time I engage with flat earthers.


I'm hard stuck on fish probability 59% fml


> I heard majority of the users are techies asking coding questions.

Citation needed? I can't sit on a bus without spotting some young person using ChatGPT


I’m not arguing against your basic point as I completely agree arriving on time is my own responsibility, but when I do what you suggest, i forget my house keys lol


If you can you might want to install a door lock that uses a code number instead of a key.


> since 100% of people already agree that you should never be afraid to ask basic but obviously important questions.

You don’t have a great mental model of how most people think


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: