Boolean parameters are wrong

Today’s simple way to improve your code. Say you’re reading a program and you see some lines like this: new ArrayBlockingQueue(10, false); box.pack_start(child, false, true); You don’t know what the booleans mean. Say you’re reading it and you see this: new ArrayBlockingQueue(10, Policy.FAIR); box.pack_start(child, Packing.FILL); Which is better? There’s only one time that a boolean […]