News for hackers. Stuff that matters.
Re:Why Lisp macros are cool, a Perl perspective (2005) by tangjurine on Friday April 29, 2022 @05:55AM (#31203293)
I liked abstractions until I had to keep undoing them partially because I didn't perfectly understand the problem I was trying to solve...

That's when I would feel the dumbest programming - undoing what was supposed to be me being smart.

I think I read somewhere that the worst code comes from the wrong abstractions.

Re:Why Lisp macros are cool, a Perl perspective (2005) by zasdffaa on Friday April 29, 2022 @06:03AM (#31203342)
Yeah, write unclever code then refactor. Unless you know the domain well don't try to get smart upfront. I do this repeatedly, pushing the abstraction layer higher on each rewrite. I rarely start out with the abstraction first. [Edit: as the abstraction starts to take shape, it feels 'right' and 'elegant' not at all forced]

> I think I read somewhere that the worst code comes from the wrong abstractions.

I'd say no, it comes from cut & paste :) seriously