1 follower
Welcome to my blog. I'm Duy Hieu, a backend developer at Giao Hang Tiet Kiem. I created this blog to share my stories.
Subscribe to my newsletter and never miss my upcoming articles
There is a certain amount of controversy about the proper use of exceptions. Some programmers believe that all checked exceptions are a nuisance, others can’t seem to throw enough of them. We think that exceptions (even checked exceptions) have their...
Some hints that we have found useful when using inheritance. I. Place common operations and fields in the superclass. Instead of replicating each field in subclasses, we should put common fields and methods on the superclass. II. Don’t use protected...
Some hints that will make your classes more acceptable in well-mannered OOP circles: 1. Always keep data private. This is first and foremost; doing anything else violates encapsulation. You may need to write an accessor or mutator method occasionally...
You could follow the previous posts here: Part 1: Do It Right Part 2: Design Principles Part 3: Component Principles IV. Architecture Before we go inside the Clean Architecture, we should answer that what is software architecture? and What does ...
You could follow the previous posts here: Part 1: Do It Right Part 2: Design Principles If the SOLID principles tell us how to arrange the bricks into walls and rooms, then the component principles tell us how to arrange the rooms into buildings....
You could follow the previous post here To build a building, we need bricks. On the one hand, if the bricks aren’t well made, the architecture of the building doesn’t matter much. On the other hand, you can make a substantial mess with well-made bric...