veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#codereview

3 posts3 participants0 posts today

Working on some #code written by an #intern a few years ago and it's taking all of my energy to just add the feature and not refactor the whole thing. What's the point of having an intern and not reviewing their code as they go to prevent these issues? So verbose, so much duplication 😡😡

I guess I've been writing tools all by myself here with no review either, hopefully whoever takes them over eventually feels like I designed them reasonably 🤷

Looking for resources on how to do good code reviews - technically, as a crafts-person, socially. Do you have suggestions?

I would love to read a zine by @b0rk on the subject 😊

One interesting article I recently read was “Understanding and Effectively Mitigating Code Review Anxiety” by @grimalkina and @CSLee. doi.org/10.1007/s10664-024-105

SpringerLinkUnderstanding and effectively mitigating code review anxiety - Empirical Software EngineeringAnxiety about giving and receiving code reviews has been documented as a common occurrence that leads to developers avoiding code reviews by procrastinating and limiting their cognitive engagement with them. This avoidance not only increases anxiety in the long term, but also prevents developers, their teams, and their organizations from accessing the technical and sociocognitive benefits of effective and efficient code reviews. However, software research has not yet empirically examined code review anxiety, and from this, tractable intervention targets and strategies for mitigating code review anxiety. In this study, we present an empirical framework for understanding the factors maintaining and exacerbating code review anxiety. Utilizing a randomized waitlist control trial, we also tested the effectiveness of a novel single-session cognitive-behavioral workshop intervention. Our results show evidence that positive impact can be obtained from a brief intervention and suggest code review anxiety can be successfully mitigated by targeting developers’ cost bias, anxiety self-efficacy, and self-compassion.

Unpopular opinion on software development

Yesterday, I came across CI cultists.
They were preaching one should merge in main multiple times a day.

Quite frankly, I associate this behaviour to lab rats compulsively clicking the button to get gratifications (please don't do that to rats).

I think developers should refrain from becoming merge junkies. Code review is essential for good code quality. Automated tests suck at detecting logical errors, security vulnerabilities, and even decent code coverage.

Also, I believe pair programming is absolutely not a strategy to allow continuous integration. Everybody involved in the development process is drunk on their own bullshit reasons they made up to justify their poor design. Either the code review should be done by someone else, or the developers should sober up for a fortnight before code reviewing their own code.

PS: I am a software developer. I get drunk on my own bullshit as well.

#fediverse hivemind, I have a code review question.

I have done a massive refactor of a codebase, and I want my team to review it. Do you prefer:

a) massive pull request and iterate on it over days/weeks
b) break it down into chunks and integrate progressively

I know b) sounds intuitively like the right choice, but what do you do if you find errors in the first PR? How do you propagate that to other branches?

#proTip: When you open a file of #code to edit it, fill in the #commitMessage with the goal of the changes you want to make in your #versionControl interface.

After you make your changes, only "Add" the changes necessary to accomplish the goal in the commit message; anything else should go in a separate #commit.

This keeps you focused on the task, and prevents your #commits from getting polluted with unrelated work that may confuse #codeReview.