News for hackers. Stuff that matters.
Re:Case against OOP is understated, not overstated (2020) by toomanydoubts on Thursday February 10, 2022 @10:06PM (#30296373)
A polygon is a set of lines

A square is a polygon with four lines of the same length, forming 4 equal angles of 90°

A drawing can be made given a pen and a shape

The output is a drawing of square made with pen

Re:Case against OOP is understated, not overstated (2020) by taeric on Thursday February 10, 2022 @10:11PM (#30296406)
And a line is a set of points. Your point?

That is, yes, to an extent you can expand your vocabulary to include more shapes and find ways to compose them. Or you could peel back and literally write point values. Both have uses. And both are used.

Consider, we aren't forcing all art assets to be created and described using elementary shapes. For many of those, we are closer to literally writing the canvas by hand. And then retroactively glueing to program.

It is a shame we often force a single paradigm with our code bases.