3 ms·
Makes some good points. I can't help but notice, though, that the "good" examples are all longer. It makes me want to design a programming language that makes
by lincolnq 14y ago
Makes some good points. I can't help but notice, though, that the "good" examples are all longer.
It makes me want to design a programming language that makes good code shorter than bad code...
- LukeShu 14y agoWith the exception of example 3 (which is possibly a bad example, see the discussion above), this is because of how much code is necessary to tell what's going on, rather than an increase in code size. Example 1: 5->1: It did get shorter. Example 2: 5->8: One of the lines is showing a line calling the check_for_overheating method, which wasn't shown in the first example. The other two are declaring the SystemMonitor class, which was declared "off-screen" before. Example 4: 7->13: Five lines for declaring and defining User.address, which was off-screen before. So it did get a line longer.