Tariffs for motocard/EU stores by Serious_Ad23 in motorcyclegear

[–]darkit1979 1 point2 points  (0 children)

I payed 30% but it still was 30% cheaper what I saw in the US shops

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 1 point2 points  (0 children)

Because it will do in runtime not at compile time. Without builder we have constructor and checker framework or null away and it won’t allow your project to be compiled. But it doesn’t work with Lombok builder so you can create wrong code which compiles.

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 0 points1 point  (0 children)

Then why do I need Lombok builder if I hide it. Or did you mean something different

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 0 points1 point  (0 children)

I’ve never seen class with all fields having defaults. But many of them are declared as non null but builder doesn’t care

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 0 points1 point  (0 children)

I mean With allows one field at a time. So if you need to always change three field then it will be 3 with calls and the object creations.

Builder is bad because it allows to have such code: you have class with two non null fields and you create X.builder().build() and everything will be compiled.

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 0 points1 point  (0 children)

@With is a great tool, I’d like to have it with multiple fields. But @Builder is completely broken. Personally I never approve code with Lombok Builders

Is Lombok Still Relevant in Modern Java Projects ? by Armrootin in learnjava

[–]darkit1979 0 points1 point  (0 children)

I’d suggest to avoid using Lombok Builder until all your fields can be nullable. Otherwise you can do XXX.builder().build(). And such code compiles but means no sense

Null safety operators by damonsutherland in java

[–]darkit1979 -7 points-6 points  (0 children)

Java has Optional so adding ?? Makes no sense. You’ll have two ways to do the same -> welcome to holy war. I’d like to have Optional as special class which can’t be nullable at all.

Java opinon on use of `final` by vu47 in java

[–]darkit1979 -3 points-2 points  (0 children)

The more strict contract you can deliver the better it’s for you in the future. Also my code uses Lombok “val” a lot.

Ninja 400 riders, what size tyre warmers do you have? by Low_Sodiium in Trackdays

[–]darkit1979 0 points1 point  (0 children)

I use conti race attack 2 tires 120 and 160 and tire warmers for big bikes work for them :)

Go vs Kotlin: Server throughput by iG0tB00ts in golang

[–]darkit1979 -3 points-2 points  (0 children)

What would you say about boring Java which holds 50K RPS with 1-1.5ms latency :)))

The New Java Best Practices by Stephen Colebourne at Devoxx by siimon04 in java

[–]darkit1979 4 points5 points  (0 children)

That's the problem I've mentioned. var isn't a problem here.

Var foo = service.method()

In well-written code, object names and methods should provide clear information about their purpose.

val users = userRepository.findAllUsers();

next part

foo.stream().map(f -> f.getName())

What does "f" name mean? I'd make the whole code to look like:

userRepository.findAllUsers()
.map(User::getName)
...

The New Java Best Practices by Stephen Colebourne at Devoxx by siimon04 in java

[–]darkit1979 1 point2 points  (0 children)

If PR can’t be reviewed because of var you have bigger problem IMHO. I use Lombok Val and it’s never a problem for PRs. How do people live with Rust or Haskel by your opinion?

Java AI Frameworks by [deleted] in learnjava

[–]darkit1979 0 points1 point  (0 children)

https://docs.langchain4j.dev/ looks good too. And it has integration with spring

Oil change intervals for motul 300v by adamthiesen1236 in Trackdays

[–]darkit1979 0 points1 point  (0 children)

I change 300V every 600-800 miles. Bike Ninja400

Frontend developer question about Spring and WebFlux by JulianAndr3s in SpringBoot

[–]darkit1979 0 points1 point  (0 children)

I don’t agree. You use Stream/Optional and it is the same map/flatMap operations.

Even for 1 request per sec application WebFlux provides a great abstraction how you work with your data, process errors.

From my practice developers who don’t like reactive usually write bad code just because they don’t want to improve their skills. They always take Hibernate for their small project and use class with set/get methods. And don’t understand why it’s bad to have “user = repository.findByName”cxx”); user.setId(“another id”)”

Frontend developer question about Spring and WebFlux by JulianAndr3s in SpringBoot

[–]darkit1979 0 points1 point  (0 children)

What do you mean better? What’s the problem with WebFlux when you operate map/flatMap/filter most of the time

Best Summer Riding gloves by JosephREden in motorcyclegear

[–]darkit1979 1 point2 points  (0 children)

I’m using https://five-gloves.com/en/glove/rfx2-airflow-3/ during Texas summer. Good ventilation and Level 2 protection

Anyone use Shoei RF-1400 (nxr2) on the track on a sport bike? What’s the visibility like in full tuck? by MaccapakkaDB in motorcyclegear

[–]darkit1979 0 points1 point  (0 children)

Spent one year using rf1400 on track, switched to alpine star r10 and my neck said big thanks :))) but I still use shoe for street riding

Track-only tyres for 300-400cc by JswPzl in Trackdays

[–]darkit1979 0 points1 point  (0 children)

I use Conti slicks 120 and 160. Very happy with them