ghazalghorabi / TDA553-lab1

0 stars 0 forks source link

Unnecessary hardcoding #42

Open martinjonsson01 opened 1 year ago

martinjonsson01 commented 1 year ago

I might've missed something, but I don't see why you are hardcoding this value. Why not have it as a parameter in the constructor?

In general, it's bad practice to hard code magic numbers.

https://github.com/ghazalghorabi/TDA553-lab1/blob/7f372da30e043f0290b53230226a6b7a94890562/src/CarTransporter.java#L21