News for hackers. Stuff that matters.
Re:Less is Moore by SomeCallMeTim on Tuesday April 28, 2015 @12:15AM (#9450513)
The existence of poor designers isn't a good reason to never design.

In fact, the more design you do, and the more you're exposed to, the better you can get at design. And the better the design, the easier it is to understand.

An "ugly generalized abstraction" is pretty much by definition not a good abstraction. Moreover, a good abstraction is simple. It's easy to understand and it's easy to manipulate. [1]

But you need to practice to get better, so it may take a few ugly monstrosities before you can start creating masterpieces.

[1] Granted 99% of the code I've encountered in Java qualifies as ugly abstractions; Java's nature seems to encourage poor abstractions. Or attract poor developers. Or both. But even in Java it's possible to create beautiful and easy to understand abstractions.

Re:Less is Moore by akkartik on Tuesday April 28, 2015 @12:45AM (#9450567)
Oh man, that word 'design'. You have a problem and you think, "I should design a good solution." Now you have two problems.

I was deliberately avoiding the d-word because it is vague enough that I'm not sure there's anything useful around there. The good designers are all good at designing within some domain. Jonathan Ivy, Christopher Alexander, Ralph Lauren, they all had their specialty. You wouldn't ask Ralph Lauren to design a rocket ship. Software is even wider a set of domains than meatspace. So I'm not sure you get better at design by 'practicing design'. That's just a set of vague words like 'simple', 'good', 'beautiful', 'abstraction', 'decoupled', 'coherent', 'cohesive', etc., etc. I think you get better at design by better understanding a domain. You get better at design by avoiding premature design.

Re:Less is Moore by aidenn0 on Tuesday April 28, 2015 @12:48AM (#9450575)
Abstractions that never leak are extremely rare. Because of this, trying to write a general purpose abstraction is very hard. A special purpose abstraction only needs to not leak for its intended purpose which is a lot easier to get right.
Re:Less is Moore by lmm on Tuesday April 28, 2015 @07:17AM (#9451435)
I want more examples before I accept this Even the original "law of leaky abstractions" post did not have any good examples; using UDP rather than TCP will not save you if you pull out the network cable, and micro performance differences like the AND A = C example are rarely relevant.
Re:Less is Moore by aidenn0 on Tuesday April 28, 2015 @10:51PM (#9456241)
UDP vs TCP: environments with significant non-congestion related packet-loss (not to mention buffer bloat). In both cases the underlying assumption of TCP is broken, so the abstraction leaks.