DEV Community

ujwal dhakal
ujwal dhakal

Posted on

1

Power of Code Review

Power of Code Review

Remembering the first day of code review when your co-workers reviewed your code
and started to tell that your code has so many flaws to work on before it can
really go on production and then you keep on rewriting the whole code.

Code Review is the process of discussing the best way to structure the code and
*structuring the code *which implies many things such as proper namings,
optimization, catching flaws, discussing algorithms, proper guidelines check and
so on.

I remember my starting days of programming where code once was written was
consider as the ultimate. It would only get changed when bug arises or change in
the feature otherwise it remains forever as legacy code. I think that's how
legacy code was born. So unmanaged codes, not optimized ones, frequent bug
before pushing for testing still No Code Review

Then I heard code reviews at Pagevamp
introduced by my colleague Naren Chitrakar
where they asked the team to review my code and me to review theirs.

As we were about to implement a new process in our company some tried to oppose
in a manner not to follow code review so hardly. So many discussions were there
whether to implement or not.

At first, it was like hassle they comment about optimization, clean code, naming
things, I keep on doing request changes and pushing the changes. Before it was
easy to push code to production now so many changes to do after building
features so it can be deployed on production.

That was me. Frustration arise due to continuous request changes

Then after months, I realized by implementing code reviews -:

  • Bugs were caught before deployment
  • Helped us to set & implement coding standards
  • My codes were getting cleaner & cleaner
  • New ideas emerged
  • Opened up a way for teaching and sharing knowledge.
  • My code was optimized it has to pass checks from my team
  • Introduced Pair programming
  • Helped with improving soft skills communicating, team bonding

Then we added Code Review as our standard process in development. It really
took us time to added this as part of our standard process. An attitude of
people really matters when introducing or removing things in a company as we all
have different perceptions. Things take time

Its all about opening up yourself, analysing things and mostly don't be ashamed
up of your weakness/mistakes.

Happy Coding /Reviewing!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay