Skip to content

Commit 35d4724

Browse files
authored
Merge pull request #1 from DHCodeReview/blog/malte-code-review
Added Malte's blog post
2 parents ca338be + 80a4d9d commit 35d4724

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: post
3+
title: "My code got reviewed and I liked it!"
4+
author: Malte Vogl
5+
date: 2022-10-18 15:19:03 -0400
6+
categories: jekyll update
7+
---
8+
9+
In the DHtech Code Review Working Group, the chance arose to have a piece of code reviewed that I created for a research project dealing with knowledge networks, i.e. multilayer networks of people, material objects and representations of semantic concepts that can describe the spread of knowledge. At that time the code was written for my own use and I only collaborated with other scientists on the output of the code, i.e. CSV files or visualizations of networks.
10+
11+
So having the actual code reviewed was on the one hand a bit scary since I had no experience with code review whatsoever, but on the other hand also absolutely necessary to judge the validity of it for the research questions at hand. What if I accidentally had some logical errors in the procedure which invalidated the results? Any comments from an external perspective could be really useful.
12+
13+
So I decided to submit the code for review (through [this form](https://forms.gle/pBm2jUVqz65dPHi28)) and waited for reviewers to take up the process. The Code Review Working Group had some useful instructions on how to start the process and proceed, which are now bundled at [https://dhcodereview.github.io/](https://dhcodereview.github.io/). A few days later I checked the PR for the review and saw that the review was actually already done. I had simply forgotten to watch my own PR and was not notified of the comments. Something learned already. ;-)
14+
15+
Reading the comments lead to a kind of internal two- way communication in my case. For each comment, I had to get the idea behind the comment, compare it with my coding reasons, and then see if I would agree with the change or not. In the end, I changed the code where necessary and commented on the changes in the review.
16+
17+
Most of the comments were on improving the readability of the code and streamlining some procedures. In general I found the comments very useful and instructive for myself. With the focus on code quality, they definitely helped me get an outside perspective and thus hopefully helped to make the code more reusable. A detailed review of the algorithmical assumptions would have required more domain knowledge and time, and was thus out of scope, as the reviewer commented. Apart from my initial misunderstanding of the process of setting up notifications, the process was actually really quick and effective. So: 10/10 points, would do it again!

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ <h1>Community Code Review</h1>
1010
<p>
1111
<i>Code review</i> is a widespread technique to improve software and reduce the number of flaws. In a code review, a programmer (other than the original code author(s)) reviews the source code. They ask questions and make suggestions for improving the software. In addition to identifying and eliminating errors, code review can improve overall quality by making the source code more readable and maintainable.</p>
1212

13+
<hr class="col-3 col-md-2 mb-5">
14+
{% for post in site.posts limit:1 %}
15+
<h2>{{ post.title}}</h2>
16+
<p class="blogdate">{{ post.date | date: "%d %B %Y" }}</p>
17+
<p>
18+
{{ post.content|truncatewords:60 }}
19+
</p>
20+
<p style="text-align:right"><a href="{{ post.url }}">Read more...</a></p>
21+
{% endfor %}
22+
1323
<hr class="col-3 col-md-2 mb-5">
1424

1525
<div class="row g-5">

0 commit comments

Comments
 (0)