Just kidding, here is the tip: Look at it. Look at the thing. Do you know how many engineers I've worked with that send a code review request, and when I look at the actual thing, it's completely broken. Just look at it please. Actual senior engineers. Did you load it locally? Did you load the web page? Please, please look at the thing before you send it.
Also, help people out, when THEY send a code review, YOU be the one that looks at it.
@raven667 @hbuchel Something about “Admitting you have a problem is the first step”. 😂
This is where (git or similar) pre-commit hooks are your friend; There you can run the appropriate linters/syntax-checkers, and alert yourself to these kinds of problems. Several of them may be pickier than necessary for “oh shit, I did what” purposes but they can often be instructed to only complain about outright errors and maybe leave out problems with "style" choices.
Also: Unit tests!
Good luck😁
@hbuchel For me it's much easier to run the code when reviewing a PR than deal with the bug after it's merged. And at least two people get to understand the issue if it's raised during code review.
But I don't think of it when splitting the work into tasks, so often there is a complex PR where nothing can usefully run.
As a professional, I won't create the Pull Request until I have good reason to believe that my changes are ready to go into production.
Others can review and comment if they want. I'm OK with that.
As a "reviewer," …
Well …
"Standing out" in a dysfunctional organization can be a problem.
I've been subjected to years and multiple managers doing micro-management where every hour of every day must be reported against manager assigned tasks in Jira. And no, we are not allowed to add "code review" tasks, because it's "not specified by the methodology, and "it would be scope creep."
…
So at some point when project management is enforcing that ZERO TIME is allowed to actually *do* code review, I have to say that it starts to be reasonable to spend that amount of time doing it.
And to look for employment elsewhere.
There's a lot of corporate dysfunction out there. 😢
@hbuchel
But where does it stop? What? Am i supposed to run the unit tests? Understand what the dev is trying to achieve? Am i supposed to read the documentation they write too?
Outrageous!