Skip to content

Commit 9e664ac

Browse files
committed
merged develop
2 parents 2b4bafc + 35d4724 commit 9e664ac

File tree

5 files changed

+53
-10
lines changed

5 files changed

+53
-10
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!

assets/css/site.css

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
:root{
2-
--bs-primary:#227e9d;
3-
--bs-blue:#227e9d;
4-
--bs-link-color:var(--bs-blue);
5-
--bs-link-hover-color: #3494b4;
2+
--bs-primary:##E36414;
3+
--bs-blue:##E36414;
4+
--bs-link-color:#e37c1c;
5+
--bs-link-hover-color: #FB8B24;
66
}
77
.btn-primary {
8-
--bs-btn-bg:var(--bs-primary);
9-
--bs-btn-border-color:var(--bs-blue);
10-
--bs-btn-hover-bg: #3494b4;
11-
--bs-btn-hover-border-color: #3494b4;
8+
--bs-btn-bg: #e37c1c;
9+
--bs-btn-border-color:#e37c1c;
10+
--bs-btn-hover-bg: #FB8B24;
11+
--bs-btn-hover-border-color: #FB8B24;
1212
}
1313

1414
.icon-list li::before {
@@ -21,3 +21,8 @@
2121
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E") no-repeat center center / 100% auto;
2222
}
2323

24+
h1, h2, h3, h4, h5 {
25+
color:#0F4C5C;
26+
}
27+
28+
79.2 KB
Binary file not shown.

index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
<h1>Community Code Review</h1>
10-
<p class="fs-5 col-md-8">Welcome to the website of the Community Code Review Working Group of DHTech! </p>
10+
<p class="fs-5 col-md-8">Welcome to the website of the Community Code Review Working Group of <a href="https://dh-tech.github.io/">DHTech</a>! </p>
1111

1212
<p>
1313
<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>
@@ -53,6 +53,16 @@ <h2>Submission Deadlines</h2>
5353
&nbsp;
5454
<a href="https://forms.gle/PepxF6U64AT2Y5TZA" class="btn btn-primary btn-sm" type="submit">Become a Reviewer</a>
5555
</p>
56+
<hr class="col-3 col-md-2 mb-5">
57+
{% for post in site.posts limit:1 %}
58+
<h2>{{ post.title}}</h2>
59+
<p class="blogdate">{{ post.date | date: "%d %B %Y" }}</p>
60+
<p>
61+
{{ post.content|truncatewords:60 }}
62+
</p>
63+
<p style="text-align:right"><a href="{{ post.url }}">Read more...</a></p>
64+
{% endfor %}
65+
5666
<hr class="col-3 col-md-2 mb-5">
5767

5868
<div class="row g-5">
@@ -61,12 +71,13 @@ <h2>Want to know more?</h2>
6171
<p>Check out these links to find out more about what we are doing!</p>
6272
<ul class="icon-list ps-0">
6373
<li class="d-flex align-items-start mb-1"><a href="recent-reviews.html" rel="noopener">Recent Reviews</a></li>
74+
<li class="d-flex align-items-start mb-1"><a href="poster.html" rel="noopener">DH2022 Poster</a></li>
6475
</ul>
6576
</div>
6677

6778
<div class="col-md-6">
6879
<h2>Guides</h2>
69-
<p>Intersted in submitting code for review or becoming a reviewer? Checks the links below for further information.</p>
80+
<p>Interested in submitting code for review or becoming a reviewer? Check out the links below for further information.</p>
7081
<ul class="icon-list ps-0">
7182
<li class="d-flex align-items-start mb-1"><a href="https://github.com/DHCodeReview/DHCodeReview/wiki/Authors:-Preparing-a-Code-Review">Preparing a Code Review</a></li>
7283
<li class="d-flex align-items-start mb-1"><a href="https://github.com/DHCodeReview/DHCodeReview/wiki/Conducting-a-Code-Review">Conducting a Code Review</a></li>

poster.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
layout: default
4+
---
5+
6+
<h1>Poster at DH2022</h1>
7+
8+
<iframe style="width: 100%; height: 550px" src="assets/files/DH2022-CodeReview-Poster.pdf">
9+
10+
</iframe>

0 commit comments

Comments
 (0)