tiawl / spaceporn

Wiki and Generator for space contemplators
MIT License
18 stars 1 forks source link

Use a modified JB #200

Open tiawl opened 2 months ago

tiawl commented 2 months ago

Most of the time, JB is described as an anti-pattern. Getters and Setters kills the encapsulation by making private attributes public. In the case of a OOP language, this is something we have to think twice when considering JB. However, in the case of Zig, there no OOP and there are (and will be) no private attributes for structs. With this state of the art in mind, we consider that using JB should improve maintainability. Here the accepted proposal of a modified JB:

[TODOLIST] Make those changes in: