Entradas

Mostrando entradas de abril, 2019

Implicit and Explicit

Imagen
I think one of the many good thing about this course  is how you can write or model code in a way that it can be read without comments. The more readable the better, and one of the many way to make this, is to convert thing that are implicit to explicit, so that it can be readable what you are trying to do. As you can see in this example of my project of board games, in the application layer we have a class that has a method called getInSaleBoardgames(), in this class it is pretty clear what is doing, that is getting all the data as a list from the database and converting it to JSON so it can be return. Previously, I did not have any method for converting to json, so I had to create implicitly the converting depending on what Object you wanted to convert, but now as you see I created a method that can do that to any object, and in the application layer is pretty clear what it want to do.

UML Diagram

Imagen
I think one of the best things to do when you want to create a diagram that show many of the interactions between entities in your project, is to make a UML Diagram. Last month, we were assign to create a proposal and in the presentation this UML diagram help us to improve the way of communicating with the audience. It was really clear what we wanted to do in the project, and how it will work. I recommend this site called draw.io to create UML diagrams and ER diagrams. Is a really awesome site for creating them very professionally.