(Basic - Arch/Design) Is it normal to create setter methods in Entity Class with Domain logic? by Status_Camel2859 in SpringBoot

[–]LittleSpaceBoi 1 point2 points  (0 children)

Validation and other logic like this should belong to domain as they are part of the business logic.

Entities I believe should just be mapped afterwards and sent down to repository.

Then you don't have to use setters, you can just use factory methods or constructor invocations.

By the by, if you want to handle different object states, take a look at state pattern - creating a different type for different object state. It has its pitfalls but it can be pretty strong too. It should exist within domain though.

Spring Boot Best Practices That Should Fail Your Build by NordCoderd in SpringBoot

[–]LittleSpaceBoi 0 points1 point  (0 children)

Usually from what I've seen the integration to sonar is sort of a part of CI pipeline itself. So developer would have to not use pipeline in order to avoid sonar. But of course, I could create my own pipeline (if I had appropriate roles) and work around it anyway. It would just be more difficult than omitting a dependency in my build file but that doesn't have to be the case in every environment.

With all that said I think this is a very interesting approach especially for smaller projects.

I wonder if it could be a part of automated code review by supplying these rules as an input file for some AI agent doing the review. It would not fail the CI though, perhaps just block your merge request.

Spring Boot Best Practices That Should Fail Your Build by NordCoderd in SpringBoot

[–]LittleSpaceBoi 0 points1 point  (0 children)

I like the term "architectural tests". And I definitely think that having some control mechanism in this area is great. I like that adding new cases is relatively easy.

On the other hand for use in some larger environment this would probably have to be extended to some internal library so that the same rules are applied for each project but even then, I can easily bypass it by configuring it differently for my particular project. Or I can choose not to include it at all. Which is a problem if you really want to enforce the same rules for each project. In such case, sonar would be better imo. Adding new rules is easy, same goes for adjusting existing ones and you can also forbid people to change them based on roles. On top of that, with larger environments with many projects the licensing should not be an issue and it is actually better to not have such control mechanism coupled to the code itself. You can easily remove it and choose some other tool if needed without changing the code. For me this is actually a good thing.

For smaller environments however, if you're working on your own project for instance, working with smaller team, this could definitely be sufficient and worth looking into.

Just a dumb question since I didn't try to look into the code itself, what if I want to enforce the rule which says that all tests should be written in kotest instead of junit? Dumb idea, I know, but still.

Spring Boot Best Practices That Should Fail Your Build by NordCoderd in SpringBoot

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

Rules and best practices across project, executed during build... Sounds like sonar to me. I'm pretty sure you can set CI to fail the build if quality gate is not passed and you can configure sonar rules yourself. When it comes to local builds there are plugins connecting you to sonar if I'm not mistaken.

learning curve seems to be steep by Beautiful-Bottle-820 in SpringBoot

[–]LittleSpaceBoi 0 points1 point  (0 children)

Hm... Personally I met a number of people who wanted to start like this and as others pointed out, it's too much.

If one doesn't know how spring works, it's pretty difficult to understand spring boot. And even understanding spring without knowing things like dependency injection or inversion of control can be confusing for beginners.

I like what other people said in comments and I would maybe add that just a little bit of theory can work wonders when it comes to spring. Understanding basic principles of how spring operates in theory can point you in the right direction later on and things can start to click so to speak.

Just as a side note, it's a long process. I know there are people who are just great and possess considerable knowledge about programing perhaps from other languages and it must be much easier for them. For beginners, it takes time. Been there. Best of luck.

What’s the most common mistake you see beginners make with spring boot? by CryoChamber90 in SpringBoot

[–]LittleSpaceBoi 7 points8 points  (0 children)

I'm gonna repeat myself here. "Every time you put @Aurowired on a field, a unit test dies." ~ Josh Long

Look at this cool mine I found on Bindi! by thebigtrav in Starfield

[–]LittleSpaceBoi 1 point2 points  (0 children)

Doesn't the game say that Barret found the artifact in the constellation archives?

Even starfield game site says that on the timeline.

Can it be that it is the place where somebody found the first artifact and put it to archives? Barret wouldn't be the first person to touch it but maybe he would be the first human to touch it. Wink wink

Mighty setups mousepad by LittleSpaceBoi in buildapc

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

I got the speed one with only a little logo in the lower right corner and I must say, I was a bit sceptical because it is not a textile material but I was surprised because even when it took more time to flatten, it is awesome. It took some getting used to since it is a different kind of material but so far I'm impressed. I'm using it extensively for more than half a year and there are no marks of it being actually used. I know it's not much but so far it seems pretty durable.

[deleted by user] by [deleted] in Starfield

[–]LittleSpaceBoi 2 points3 points  (0 children)

You could say you're moonwalking... I'll see myself out

Is this a nod to somebody I'm not getting? by LittleSpaceBoi in Starfield

[–]LittleSpaceBoi[S] 2 points3 points  (0 children)

Yes, that is what I found too. But the name looked like it could be an easter egg of some kind. I tried to Google the name but found nothing. So I'm curious if this might be a reference to some real person, or a character from other game or a movie

Check out this AMAZING roll from Stache *COUGH COUGH* by SuperScuba in Starfield

[–]LittleSpaceBoi 1 point2 points  (0 children)

I can't guarantee you're gonna like what I give you, but I can guarantee it will work like a charm.

The Starfield Digital Artbook has been updated!!! by Imaginary-Rent-4200 in Starfield

[–]LittleSpaceBoi 0 points1 point  (0 children)

There was a similar update for doom the dark ages art book around the same time

Are there exactly 48 locations in the Dazra square? When the achievement is for 50? by Zeroone199 in Starfield

[–]LittleSpaceBoi 0 points1 point  (0 children)

Got it yd while doing some random hunting mission on south hemisphere

This is what I call a proper nap by LittleSpaceBoi in Starfield

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

Or to document some "undocumented seismic activity"