Cookie Consent by Free Privacy Policy Generator 📌 Drop Everything and Review


✅ Drop Everything and Review


💡 Newskategorie: Programmierung
🔗 Quelle: dev.to

The Inner and Outer Development Loops

Feedback is critical when developing software; the earlier it can be given, the better. Static code analysis tools will immediately write red squigglies underneath code, as it's being written, to let a programmer know that there's a syntax error. (In fact, as I'm writing this blog post, I'm getting blue underlines from my spellchecker.) Unit tests, similarly, give very quick feedback, validating the logic of any newly-written code, and ensuring that there are no regressions (that the new code doesn't cause previously-written tests to break).

This very fast code-build-test feedback loop is often called the inner loop of software development. It requires no input from other people, and the time for a complete loop can be as short as the time it takes static analysis to run, which might be only a few hundred milliseconds. The only blockers in the inner loop are the speed of the compiler or interpreter and the speed at which the developer can program.

The outer loop, by contrast, usually refers to the process of deploying code to a live environment and iterating based on integration with the larger system, acceptance tests, performance tests, and so on (though different sources disagree about which steps should be included in the outer loop). This loop is much more involved and, accordingly, takes much more time to provide feedback to the developer. Depending on how fast your CI / CD pipeline runs, and whether your QA tests are automated or manual, it could take anywhere from minutes to days.

But I propose that there is a middle loop, as well, which often gets incorrectly lumped into the outer loop: the code review loop.

The Middle Loop

The Middle Development Loop involves getting feedback from developers and other stakeholders, adjusting your code according to that feedback, and then requesting additional feedback. It is distinct from the inner loop, which is traced by a single developer in a single codebase in a single environment, as well as from the outer loop, which is traced by many developers across many environments. The key differentiator here is that this is the first time that multiple stakeholders will be looking at the same new bit of code.

This often happens during code review, but feedback can come in many forms: pair programming, mob programming, synchronous code review, as well as traditional asynchronous code review. The latter is, in many workplaces, the standard: you create a PR, add some reviewers, and go off and do something else while you wait for feedback.

https://xkcd.com/303/

This is usually fine, provided you have lots of tasks to work on and can context switch easily from one to another while waiting for reviews. And while this is often the case, in my experience, the opposite happens just as often: you're building some feature across multiple code bases, or in multiple steps, and you need reviews and approvals at each stage. In this case, each time a review is required, it becomes a blocker.

Developers can get frustrated waiting for reviews and glob multiple fixes into a single PR to reduce the number of reviews required, or they might ping other developers directly to ask for reviews. Those pinged might be taken out of their flow state, or even feel harassed, if contacted over and over.

For all parties involved, it can be a very frustrating experience.

If you have the power to do so in your organization, push for synchronous code reviews, which greatly reduce the size of the middle loop, or for synchronous coding, like pair or mob programming, which eliminates the middle loop entirely. For many reading this, though, I know this is not an option. You've got async code reviews and you're stuck with them. In that case, let's try to make the best of a less-than-ideal situation: what is it that makes async review frustrating?

The problem with async code review is that it often unnecessarily inflates the duration of the middle loop.

Code review can be a thankless job. When's the last time you heard of someone getting promoted for being the most thorough reviewer on a team? Plus, it's easy to hide in a crowd, and if 10 developers are added as reviewers to a PR which only needs 2 approvals, they may ignore the request, assuming that their teammates will pick up the slack. Even when a developer does review some code, they may delay doing so. Waiting until you're finished your current task, or until after lunch, or even until after your next meeting, to review a PR may not seem like a delay for you. In fact, in may seem downright prompt. But to the developer waiting for a review to continue their work, they are blocked.

The next time you put up a PR, you will also need reviews. And just like your coworkers, you will want them as quickly as possible. So remember that when someone requests a code review, the courteous thing to do is to Drop Everything and Review (DEAR).

Minimize the Middle Loop, Dear

After handling any active production incidents, the first thing on a developer's // TODO list should always be reviewing code.

If you've just sat down at your desk and are looking for something to work on, checking which pull requests you've been assigned to should become a reflex.

Don't start that little bug fix, don't read that next blog post (unless it's this one), don't check your inbox.

Remember DEAR and do the courteous thing: Drop Everything and Review.

...

✅ Drop Everything and Review


📈 25.61 Punkte

✅ Mag:3 Classics Device Charging Tray review: a place for everything, and everything in its place


📈 24.83 Punkte

✅ Why You Should Drop Everything and Enable Two-Factor Authentication Immediately


📈 19.66 Punkte

✅ Why You Should Drop Everything and Enable Two-Factor Authentication Immediately


📈 19.66 Punkte

✅ The next big Windows 11 feature drop is imminent, here's everything that's new


📈 18.15 Punkte

✅ Android 14: December 2023 Feature Drop! (Everything New!) + Gemini


📈 18.15 Punkte

✅ Android 14: January 2024 Feature Drop! (Everything New!)


📈 18.15 Punkte

✅ Medium CVE-2016-10917: Search everything project Search everything


📈 17.36 Punkte

✅ Everything Open 2024 | Registration is now available for Everything Open 2024 - powering the future


📈 17.36 Punkte

✅ Drop DCX keycap set review: Clean lines for a mid-range price


📈 15.42 Punkte

✅ Drop + Epos H3X Headset review: Best sub-$100 gaming headset. Period


📈 15.42 Punkte

✅ Drop ALT mechanical keyboard review: good key travel at a cost


📈 15.42 Punkte

✅ Drop CTRL mechanical keyboard review: premium typing but difficult customization


📈 15.42 Punkte

✅ Forza Motorsport 7 Review - Everything Your Could Possible Want in a Racing Game


📈 14.63 Punkte

✅ Destiny 2: Forsaken PC Review - Almost Everything We Could Want


📈 14.63 Punkte

✅ Prusa SL1 3D printer review: Everything is great aside from the price


📈 14.63 Punkte

✅ Samsung Note 20 Ultra review: The everything phone of 2020


📈 14.63 Punkte

✅ Arlo Audio Doorbell review: Smart doorbell doesn't have everything I want


📈 14.63 Punkte

✅ ASUSTOR Lockerstor 2 Gen2 (AS6702T) review: Everything you need in a powerful two-bay NAS


📈 14.63 Punkte

✅ Lenovo ThinkPad Z16 review: Disappointing webcam, great everything else


📈 14.63 Punkte

✅ SwitchBot Hub 2 review: The hub that can control almost everything


📈 14.63 Punkte

✅ Muah AI Review: Everything You Need to Know


📈 14.63 Punkte

✅ Voicify AI Review: Everything You Should Know (2024)


📈 14.63 Punkte

✅ Google App for iPhone and iPad Gets iMessage Integration, Drag and Drop Support


📈 12.49 Punkte

✅ Why Did Munich Drop Linux and LibreOffice for Microsoft Windows and Office?


📈 12.49 Punkte











matomo

Datei nicht gefunden!