In the previous blog post, I wrote about why you should do code reviews. This time I wrote about how code reviews should be created. Code review's author has an important part to make review successful. With these best practices review of your code will be better.
Category: Programming
Why You Should Do Code Reviews? (Code Review 1/3)
Code reviews are something I really value high. In my opinion, every software development team should do code reviews. In brief, the reason is learning and sharing knowledge and code quality. In this blog post, I will explain why.
ApprovalTests, One of My Favorite NuGet
ApprovalTests is one of my favorite NuGet in C#. It helps you to verify is your method's output or object changed. It will automatically visualize the error by opening your diff tool and shows the difference there. I really recommend you to become familiar with this if you are a C# developer.
Automatic Rollback to Integration Tests in C#
This is something that has made my integration tests better. You define a test method to run in transaction and rollback at the end of each test. This makes it possible to write integration tests that write to the database. And tests won't leave any "garbage" there because rollback at the end of the test undoes all database updates (and inserts and deletes). If this is possible in your language and testing framework I strongly recommend it. In this blog post I will explain how you can do it with NUnit in C#.
Functional Programming in C# by Enrico Buonanno
This was really interesting and educational book about functional programming. What makes this book really good is that it is really practical. I wrote about what was most interesting in this book. And how it opened my eyes that functional programming is useful even for object-oriented programmers like me. I deeply recommend this book to every C# developer.
Constant or static readonly?
SonarQube has two rules about constant and static readonly: - Public constant members should not be used and - Static readonly constants should be const instead. I wrote this blog post to learn these rules and their difference. Now I know when to use const and when to use static readonly.
C#: Difference of Properties and Fields
I didn't clearly understand what is field and property in C#. So I decided to write this blog post to finally learn what is field and what is property and how I should use them.
New Language Every Year
Software developers should learn a new language every year. My choice for this year is JavaScript.
Advent of Code 2017
Advent of Code is an online advent calendar where you will get two programming puzzle each day. Really good for learning new programming language and I recommend it to every developer. I wrote about my experience with it.