Skillsjava, spring, docker
Joined devRant on 9/27/2021
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
I have a question I'm struggling with for some time.
In spring boot application should service method accept DTO or entity?
I see benefits of using entity for basic CRUD operations, but how about business logic methods? I'd like to hide details behind abstraction and also block any incorrect usage of this method, like:
I have a method "restrictOrder" which alters an order and saves it. But someone can modify order object before passing it. Should I only pass id and new value to be set or am I paranoid?
And how do you do it in your project? I'd like to point that right now we are not using DDD or some other fancy architecture, just the Spring defaults7
I have most of my experience in Java and OOP. Right now I'm writing small program in C.
What are some good practices for procedural programming, something like SOLID for OOP?
And what rules to follow that will help me write and maintain clean code?2
I hate CRUD operations so much.
I'm so tired of programming CRUD demo applications and then filling it with some logic only in services. It's so ugly. No domain model. Just entity, repository, service, controller.
I hope I'll be able to work on something better soon, but cmon, why are we forced to work like this.
I've recently started reading book about DDD and it's at least a bit more interesting than just writing some fancy API for database8
Quick questions for some vim lovers out there.
I've seen a lot of youtube videos of people using vim/nvim/spacevim/... as their main IDE, claiming that they are perfectly fine with this setup. However, most of this people are programming in not heavy object oriented languages, like JS, C, Rust, Go.
My question is: are there any Java developers who are using vim as IDE and are satisfied with their setup? Is is even possible to migrate from Jetbrains tools to your setup without huge productivity drop? By productivity I mean - a lot of IDE stuff like name refactor, great lombok support, debugging tools7
We can say I'm so called senior in my company. Not exactly a senior because I have like 2.5 years of commercial experience, but everyone in the company has much less.
As I'm kind of technology enthusiast, I have a lot of personal experience with Linux, Docker, I'm basically quite familiar with a lot of stuff both in theoretical and practical manner. That's why often I'm helping my less experienced friends to solve some issue, help with docker, help with deployment, and I'm really happy to do so.
Recently I was helping to deploy something ASAP on environment no one is familiar with and it took me couple of hours to do so, as it required changes in a lot of places. Even our team lead was happy about it.
I've just got email from my boss, that I should focus less on helping others. Not even a "thanks, good job". After I literally helped this company to get their shit together4
As a Java developer, I'm a big IntelliJ fan. I like how smooth it works, how wide support it provides. However, I was thinking about giving Eclipse a try for a week.
It ended after first day.
How the hell anybody can use it? The auto completion is so slow it's fucking funny. And yeah, I've changed eclipse.ini, disabled unnecessary stuff from completion, changed delay to 1s.
I type "new Arr<ctrl+space>". Instant window with text "Computing proposals". After 10s I finally get list of possible completions.
How can this be so slow? Even vscode works better12
Why the hell Jira is so fucking slow? Like, I understand that there can be a lot of items to display but YOU DON'T HAVE TO DISPLAY ALL OF THEM. Trying to move task from TODO to IN PROGRESS - and website fucking freezes. What the actual fuck5
Wow I can't believe how anyone can be using jhipster. I have to upgrade project that uses it from 6.0 to like 7.3.0 and holly shit
Jhipster tool is so useless. All it does is creating some mess in the directory, throwing error and leaving messed up project WITH CHANGED GIT HISTORY
WTF why is this even a thing1
My client told me to look up to IATA Cargo One record standards and holy shit what the hell is that
The only java backend example have 6 stars on github, 4 contributors (including bot), and also NOTHING works there. Every maven task fails, both generated and provided classes won't compile, there are like 2 toString() definitions with every class, incorrect type casts, like, what even is this mess
Could you recommend me some ebook about design patterns? I would recommend something with examples in pseudocode or Java. I've tried reading some articles on refactor.guru but I find it a bit confusing1
I've just updated Kotlin plugin in android studio and now I have random errors in random places in code that I haven't touched in a week
Anyone successfully used LocationManager inside foreground service started from Work?
When app is alive it works fine, but after app is killed (recent items -> swipe) getCurrentLocation() returns null in listener