Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Saiuto2734yI don't want to spoil it for you but it looks like you could use at least a little refactoring. In fact all my DRY senses are tingling.
appmaker4154ySo as someone said about DRY principle. You should probably make a function which can set each property for each of your objects. As I see that each object has the same property, you should try to not repeat yourself as much as possible. I do not know whether your learning to code or not but just trying to keep yourself === DRY is a good practice :) have fun coding
arekxv9664yAs a seasoned programmer. This kinda hurts my eyes. :)
Trust me usng DRY and refactoring code is a really good thing to do, especially in larger projects :)
You are right, I'm developing myself yet :)
I guess he gets paid per LOC, lol. 😁
carlos4464yAgreed with what others said but doing these sort of mistakes is what will make you a better coder so keep coding :D