4 ms·
That particular chain breaks a rule that I find very helpful: when you see a vertical column of leading dots, those methods should all be acting on the same obj
by Stratoscope 10y ago
That particular chain breaks a rule that I find very helpful: when you see a vertical column of leading dots, those methods should all be acting on the same object. When you introduce a child object, indent another level.
So I would format that like this:
window
.FindCanvasForObject(obj)
.Color(RED)
.MoveTo(10, 30)
.LineTo(50, 20)
Or more compactly:
window.FindCanvasForObject(obj)
.Color(RED)
.MoveTo(10, 30)
.LineTo(50, 20)