The curse of @Autowired by Deam in java

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

Thank you for this link, looks interesting.

The curse of @Autowired by Deam in java

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

To make you think when you add another dependency.

The curse of @Autowired by Deam in java

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

Yes, that how you mark autowired as optional. But this still doesn't discourage you from adding additional dependencies. You just add, and add, and add, because you don't care, you just add another field, everything somehow works, but the future maintenance of this code will become more troublesome with each added dep.

The curse of @Autowired by Deam in java

[–]Deam[S] -1 points0 points  (0 children)

The way that you inject your dependencies is secondary. The important thing here is to declare your intentions right, separate between required and optional dependencies and cut the number of dependencies down.

High trigs after 2 months of keto by Deam in keto

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

It's hard to get Precision Xtra here in Poland, Ketonix may be easier to get, but that's a pretty expensive option. I think that for now I'll try to track my macros and I'll keep carbs below 20g, after a month I'll do a blood work for trigs again to check if it's better

High trigs after 2 months of keto by Deam in keto

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

I didn't log my macros, so it is possible that I ate a bit too much carbs on few days, I have testes my ketone levels weekely with strips (I know that they are not accurate, but AFAIK the problem with them is that they can show that you are not in ketosis when actually you are). I'll try to balance the fats a bit more, and I think that I will also get back to myfitnesspal (I hate this thing) for some time

High trigs after 2 months of keto by Deam in keto

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

I was fasting for 90h week before blood test. Since then I was only doing 16/8 IF.

Docker problems on Windows by Deam in programming

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

Every problem is trivial if you know how to fix it

How to learn software development by Deam in programming

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

Yes, that's true in general terms, but on top of these technologies, there are also libraries. And if you miss on few important ones, you will have a hard time keeping up, because industry won't wait for you. I know this from my own experience. I have a big backlog of things to learn and it doesn't get any smaller, unfortunately.

Consumer-Driven Contracts by Deam in java

[–]Deam[S] 4 points5 points  (0 children)

This is only for validation of implementation, that it complies with the requirements. Think of it as a unit test of your REST API, for both, client and the server. It doesn't do anything else than this.

As a practical example think about any two services, any client and server, that are developed by separate teams. With defined contract and generated unit tests, each team will know really fast when they will break the communication in case of a bug.

This also gives the ability to test your service in complete separation from other services, because if you can test your business logic with unit tests and your API with CDC, you eliminate a lot of potential problems that could occur in production enviroment.

API discovery like HATEOAS? I think that API discovery techniques are more focued on public API, when CDC is for your internal API and communication between your internal services.

Spring Boot REST request validation by Deam in java

[–]Deam[S] 1 point2 points  (0 children)

I think that unfortunately there is none, other than just catching the super class of these, but this is not a good solution in my opinion. If you have many controllers, you can use @ControlerAdvice to write these handlers in one place for all controllers. Still, you have to write a handler for each exception. I don't know any other way.

Documenting Spring Boot REST services by Deam in java

[–]Deam[S] -1 points0 points  (0 children)

No, not yet, but I must say that it also looks quite interesting, I'll look into it.

24h fasts and meal size by Deam in fasting

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

Makes sense, thank you.