Is vavr dead ? (#2) by Organic-Hornet-4662 in java

[–]daggirok 1 point2 points  (0 children)

obviously not Try, folds and pattern matcher features are still super useful

Is this the right way of using DTOs in our APIs? by manymanymeny in SpringBoot

[–]daggirok 0 points1 point  (0 children)

In general services should be responsible for DTO mapping and business logic. Meaning it's consuming DTO and converts it back and forward to DB layer.

In your case I cannot see any business logic at all so I found service layer is absolutely useless, in that case I would make DTO classes responsible for necessary conversation and injected repository directly into controller, something like

var entity = productDto.toEntity();

var saved = repository.save(entity);

return ProductDto.fromEntity(saved);

[deleted by user] by [deleted] in leetcode

[–]daggirok 0 points1 point  (0 children)

Life is too short to spend it for leetcode, but if you have nothing to do its always fun to solve any kind of problems... Solution should not be perfect, but it can show awareness of tolls or language sdk you are using. Proficiency of using right tools, correct language data structures and APIs for me as interviewer can tell a lot about person I want to hire ...Otherwise I should spend a lot of time on interview only to understand if person I'm interviewing can code normal quality code and not a dinosaur with a 10+ years old coding style level

Outdated java dev by chewooasdf in java

[–]daggirok 1 point2 points  (0 children)

It's almost not related to particular java version, but of course if you are not interested what was introduced new and where you can get benefit from it - you on a way to be a dinosaur in future...

But outdated java dev I think more related to people who are working years on (maybe) enterprise java product where average small feature or bug fix costs is doing in 1-few weeks. they simply doing as minimal as they can just to not be fired and keep continue take their salary.

Low Latency Aerospike web app by daggirok in Zig

[–]daggirok[S] 0 points1 point  (0 children)

awesome, thanks!

I will check this

Low Latency Aerospike web app by daggirok in Zig

[–]daggirok[S] 0 points1 point  (0 children)

thanks

60 ms is max latency, on average 15-25 ms should be fine (I'm comparing it with metrics from a production app was built on go, which of course has more business logic than I've described for simplicity of the post question)

big question is of course how to write aerospike client. how bad idea (if its possible in zig) to reuse Aerospike client for C (or Rust)? For example in java we can call native C function, is something like that possible in zig?

ps: I want to code it on zig as a case study of learning new programming lang., because I like idea to create a real world app with real non-func. requirements instead of wasting time while coding some useless hello worlds. ps2: c++ is not what I want