Im working on a GUI. I am getting magic numbers for setSize values. since magic numbers are bad practice, How can i get rid of the magic numbers in size? should i assign a variable to each of them?
setSize(250x400)
so that it will be like setSize(x,y). what is the best way to overcome this? should i do this or is there another better way? what if there are many sizes, this will be useless as i cannot be assigning for each and every one.