this post was submitted on 09 Jan 2025
24 points (96.2% liked)

Experienced Devs

4779 readers
2 users here now

A community for discussion amongst professional software developers.

Posts should be relevant to those well into their careers.

For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wicked@programming.dev 13 points 7 months ago (5 children)

Not enough information.

New team member? Show them the style guide and where it doesn't match.

Is the style guidelines consistently followed elsewhere? If not, I'd just approve it.

Do I have a good relationship with the other developer, and can they handle criticism? If not, I probably would not want to be the one reviewing it, but if I did I would likely let it go and fix it later. Fight more important battles.

Otherwise, how important is that piece of code? I'd immediately approve a one-off script, but if it's an core piece of code, I assume the dev missed it and point it out. Happens to everyone.

etc. etc.

[–] rglullis@communick.news 10 points 7 months ago (4 children)

I had to shorten the title, but some of the information you say is missing is actually covered on the question.

Anyway, I just thought of adding this question today because I actually was asked a variant of this in an interview (no mention about code style docs), and the interviewer was not happy with my answer which was something like "Whatever style decision is important should be covered in the style guide. If you don't have a style guide, then I'd assume that this is not really important for the team, and I rather focus my review on things that really matter. Is the code testable? Is it maintainable? Is the code being introduced completely different from what we have before or are we consistent with our inconsistencies? All in all, I'd rather spend time working on new features and shipping than arguing over style preferences."

[–] shasta@lemm.ee 2 points 7 months ago (1 children)
[–] rglullis@communick.news 1 points 7 months ago

Great! When can I start?

load more comments (2 replies)
load more comments (2 replies)