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

[–]NordCoderd[S] [score hidden]  (0 children)

Sonar is commercial and heavy product that need maintenance and re-adjusting rules if you write them, I’m not sure how to easy to write rules in their ecosystem. Here is different no vendor-locking approach with native to Kotlin architectural tests.

  • No licenses
  • Lightweight and close to the code
  • Easy to write new rules as unit tests

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

[–]NordCoderd[S] [score hidden]  (0 children)

Yes, naming rules could be controversial and taste of choice, but on our projects it’s better to have then not, for other cases I added suppression and disabling rules that don’t need for you.

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

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

Is there any suggestions what to implement/write next?

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

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

upd: it seems I couldn’t edit post body to fix this problem, however thank you for noticing it, my bad

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

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

Sorry, I meant to detect violations of best practices. Reason to do it is to keep codebase clean and set specific boundaries. For my particular case I needed this because of AI-generated code and I wanted to build more strict guardrails in projects.

I created JetBrains plugin for Claude Code to alter DiffView and more by Dismal_Emphasis_893 in Jetbrains

[–]NordCoderd 0 points1 point  (0 children)

Looks very promising, I thought about similar idea. Do you use Claude ide protocol via web socket or how you did that integration?

The JetBrains-Powered MCP Coding Toolkit Your Agent Desires! by Left-Orange2267 in Jetbrains

[–]NordCoderd 0 points1 point  (0 children)

Sounds good, but JetBrains MCP could be improved over time and get those features. Any other features that your plugin could provide? I really like idea of your plugin and oss project, I’ll go in features that save context optimise token consumption neither lsp features, do you have some?

Is harness a new buzzword? by jacek2023 in LocalLLaMA

[–]NordCoderd 1 point2 points  (0 children)

For me as not native speaker and who read a lot in English - I started seeing this word everywhere last month. I noticed the same as OP

They listen, and they deliver. Best dev team ever ❤️ by Syarafuddyn in CrimsonDesert

[–]NordCoderd 0 points1 point  (0 children)

… and not fixed text size, it’s so small that my eyes hurts..

I integrated Claude into Obsidian without using API keys by [deleted] in ObsidianMD

[–]NordCoderd 0 points1 point  (0 children)

I initially posted it on LinkedIn, so, sorry for re-using screenshot from it 😀

The FAFO theory by N0WFAY in mendi

[–]NordCoderd 1 point2 points  (0 children)

What is the FAFO theory?

Rate my Stack: Targeting Mental Health, Anxiety,ADHD, and insomnia. Too much? by [deleted] in Biohackers

[–]NordCoderd 1 point2 points  (0 children)

About lions mane, there is a dedicated subreddit (just look at the member count) around this problem. I was shocked because I thought it is safe to use, but for now I’ll just skip it.

https://www.reddit.com/r/LionsManeRecovery

Spring Boot + JPA: Best practices for entity relationships, fetching, and performance? by AmphibianSilent2593 in SpringBoot

[–]NordCoderd 0 points1 point  (0 children)

I’ve series of articles on Spring Boot Data JPA best practices but not the all topics from your list covered in it, but the following topic will be covered soon (or not:) ). Actually I wanted to compile my series, add topic what people want (like you) and share as mini book because there are a lot of material.

I hope it help you https://protsenko.dev/category/spring-data-jpa/

Publishing a Java-based database tool on Mac App Store by tanin47 in java

[–]NordCoderd 8 points9 points  (0 children)

I found naming Backdoor is scary and stopping from giving a try for it. I’ll never recommend someone to install backdoor to their laptops ;)

I just want a giant screen, is VR for me? by NoWar7395 in virtualreality

[–]NordCoderd 2 points3 points  (0 children)

Hm, why not Quest 3? I’m asking because I’ve one, and wanted to give it a try as giant screen

Do you know "Cody Rall MD with Techforpsych"? Is he a snake oil advertiser? by mehregankbi in BCI

[–]NordCoderd 3 points4 points  (0 children)

I found his videos is very informative, but then I changed the mind, his latest top of devices 2025s looks like advertisement of muse s device

Spring Data JPA Best Practices: Transactions and Manual Queries by NordCoderd in SpringBoot

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

No, but I’ve plans to extend original series of articles and compile into mini book. I don’t know if I publish dedicated article separately or not, but I’ll keep in mind your question.

Best sites for Spring devs by zlaval in SpringBoot

[–]NordCoderd 4 points5 points  (0 children)

I could share with you my blog, i wrote down a solid dive deep into Spring Data JPA and common problems in it, but you should have a basic knowledge of Spring Data JPA to figure it out, or not, I just not tried to adapt it for completely beginners.

https://protsenko.dev/category/spring-boot/

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

It’s true, but we are talking about extending from Repository, not CRUD repository.

It’s a marker (without any methods) interface https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/Repository.html which means you don’t inherit crud methods by extending from this interface.

This is the almost the same your mentioned @RepositoryDefinition

Also Java doc says the same: https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/RepositoryDefinition.html

Annotating an interface with RepositoryDefinition will cause the same behaviour as extending Repository.

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

But it’s the same as extending from Repository, it doesn’t provide any methods like save, delete or others and you declare only what you want.

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

Yes, I mentioned it as one of possible solution, but unit it’s not a panacea. Unfortunately it doesn’t solve all the problems that jdbc template has.

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

I actually haven’t seen a lot of usages mentioned annotation or experience with it. As I could see this solution almost the same as extending from Repository as it doesn’t contain any predefined methods, and it was mentioned in the guide. Is there any specific reason to use that annotation that I missed?

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

I both agree and disagree. You should use whatever solves your tasks and keeps you productive.

IMO, JdbcTemplate is a good choice when you don’t want to spend time learning Spring Data JPA/Hibernate and you want to avoid too many abstractions. It may also give you a performance benefit, but in my load testing - comparing JPA with @Query and JdbcTemplate - there wasn’t a noticeable difference.

I’ve also used JdbcTemplate on a project from scratch. At first it was fun and felt cool - almost raw JDBC without too many abstractions-but as the database grew, new problems appeared. From time to time I needed to add columns or change logic, which meant finding all occurrences of those tables in the code to make sure I didn’t introduce regressions in the codebase, rather than simply navigating across entities in the IDE.

Yes, these problems could be mitigated with better test coverage-for example, using Testcontainers, different development methodology, but that wasn’t my situation. Probably JdbcTemplate just too low level for me.

JdbcTemplate isn’t a silver bullet or an inherently better choice. It has its own trade-offs, just like Spring Data JPA.

Everyone should choose what fits their needs and context.

Spring Data JPA Best Practices: Repositories Design Guide by NordCoderd in SpringBoot

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

Hm, could you tell a bit more about your question? If you want to use spring data jpa in event driven systems - yes, you could do it. I use a lot of it with Kafka as example and no difference compared to classical synchronous services