I am an OpenEdge (aka Progress) developer that loves clean code and good looking applications that are easy to use. My main pet project is the Progress DataDigger
What's the advantage of using the "hack" over the more straightforward way of adding .toString? The advantage of .toString is that it makes your intent more clear, which might be a tiny bit more maintenance friendly
I am an OpenEdge (aka Progress) developer that loves clean code and good looking applications that are easy to use. My main pet project is the Progress DataDigger
I won't consider that a "hack" because as a Java developer I always write +"" instead of toString(), but I would consider stringifying the arrays and comparing them a hack for array comparison.
What's the advantage of using the "hack" over the more straightforward way of adding .toString? The advantage of .toString is that it makes your intent more clear, which might be a tiny bit more maintenance friendly
There are two types of people in this world.
Haha, fair enough, but type-1 people then better keep working in 1-person teams
Yes in corporate/serious project you have some rules to follow
I won't consider that a "hack" because as a Java developer I always write
+""
instead oftoString()
, but I would consider stringifying the arrays and comparing them a hack for array comparison.Owh nice to know