It's named after the former Governor of Massachusetts, Elbridge Gerry, who redrew the districts to ensure his party would win the senate. Apparently, he had to draw the districts in rather unusual shapes to achieve this, and they kind of ended up looking like a salamander. Hence, Gerrymandering.
By what principle do you think districts should be drawn--they must be redrawn due to shifting population--so do you intend to draw exaggerated patterns to spread out minority opinions, or to clump them together? Or are you suggesting that you flip coins topologically? What if flipping coins results in a salamander of some sort, you want to use soap films to find the minimum enclosing surfaces? "Mathematically neutral" methods of drawing districts will result in some parts of the country randomly enhancing minority opinions while other parts of the country will randomly diffuse them, with results that will lead partisans to complain bitterly.
My point is, there IS NO RIGHT ANSWER. There is only your preference.
It can be clearly recognized where it occurs, and there are plenty of examples in the Wikipedia article. I don't have the skills or knowledge to say exactly how it should be done, only that it shouldn't have extreme obvious political bias.
I contend that the system we use, the gerrymandering system, is the most defensible, it's democratic. Don't like it, vote for somebody else.