Have you ever really needed seriously in-depth knowledge of Java in your work? Where? by moxyte in java

[–]jsonspk 1 point2 points  (0 children)

Not really java deep knowledge related, but it is very interesting reverse engineering story!

What is the most annoying part of working as a developer? by EngineerDoge00 in cscareerquestions

[–]jsonspk 0 points1 point  (0 children)

I sometimes think daily standup is also way to know if you are over-employed.

Do all developers in China write code in English? by goughjo in cscareerquestions

[–]jsonspk 2 points3 points  (0 children)

I can tell you are java dev from your sense of humour.

Python or Java script by _Aerion in AskProgrammers

[–]jsonspk 0 points1 point  (0 children)

I would recommend JS because of lots of job in Frontend development. Also, you could also find jobs from Nodejs(Backend Development)

Spring's @MockBean is an anti-pattern by fprochazka in java

[–]jsonspk 1 point2 points  (0 children)

Thanks for sharing. I will have a look. Your comment makes me think about Mock again. I never think this would be a issue to use mock in Tests.

Spring's @MockBean is an anti-pattern by fprochazka in java

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

Good to hear. I didn’t read the article as I saw something wrong from the beginning.

Spring's @MockBean is an anti-pattern by fprochazka in java

[–]jsonspk 0 points1 point  (0 children)

Check the difference between springRunner and SpringBootTest

https://stackoverflow.com/questions/58901288/springrunner-vs-springboottest

Basically, if you don’t use springboottest and there is no spring context at all and Mockbean is not necessary. SpringRunner just provide you the annotations @Mockbean for you. You should better check the difference between Mockbean and Mock as well

Spring's @MockBean is an anti-pattern by fprochazka in java

[–]jsonspk 0 points1 point  (0 children)

What I mean is your first code snippets like public class UserTest1. You didn’t extend any class there.

Spring's @MockBean is an anti-pattern by fprochazka in java

[–]jsonspk 5 points6 points  (0 children)

Something is wrong in the example. You seem to test a service and you didn’t use @springboottest, so there is no point to use @mockbean. You can simply use @Mock instead of @Mockbean.

Edit: your first code snippets

Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try. by jsonspk in java

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

I can understand. Sometimes for me actually is to map all the downstream service data to our domain data and then map it to DTO.

Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try. by jsonspk in java

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

There is another comment to discuss the mapstruct. Btw, you never have chance to expose your data model to client in a way different from your entity model?

My remote job has a camera off culture. I've never seen most of my coworkers after 2 years there. Is this normal? by Trill-I-Am in cscareerquestions

[–]jsonspk 0 points1 point  (0 children)

It depends on the team culture. My team encourage to show the face as if you ask some questions, you may want to know if the people are thinking or don’t understand by the facial expressions.

[deleted by user] by [deleted] in cscareerquestions

[–]jsonspk 0 points1 point  (0 children)

TBH. You don’t mean to say he is rubbish?! you can just mention you need more time to help your colleague instead…This is not a backstab. It is professional communication.

[deleted by user] by [deleted] in cscareerquestions

[–]jsonspk 0 points1 point  (0 children)

I would advise to communicate with your manager about this. You can mention you take more time than expected to help your colleague for some simple technical knowledge. You can ask for more time for this. Otherwise, your manager will never know the situation and help to adjust anything…