News for hackers. Stuff that matters.
Re:Don't Be Clever by wallmountedtv on Thursday August 03, 2023 @09:37AM (#36985707)
As a blog post with the title "Don't be clever" ending up with the author's answer being an even clever-er solution, than talking about the hidden fight against complexity in software, was an odd ending note.
Re:Don't Be Clever by cogman10 on Thursday August 03, 2023 @10:17AM (#36986284)
"Don't be clever, now let me tell you about the non-clever solution of writing a bespoke meta programming language to solve the problem of copy/paste"
Re:Don't Be Clever by dietr1ch on Thursday August 03, 2023 @03:06PM (#36990289)
And with this inconsistency the author really pushed you into rejecting complexity.

Maybe by looking like a fool he fooled us all?

Re:Don't Be Clever by appplication on Friday August 04, 2023 @12:48AM (#36995597)
I think it’s just a great metaphor, and an experience I seem to relive over and over. Every time I think I have something figured out, hindsight always shows me I didn’t. This probably leads to me living in a state of perpetual overconfidence. Because even if I don’t fully know what I’m doing, look at past me! That dude had no clue what he didn’t know!
Re:Don't Be Clever by chomp on Thursday August 03, 2023 @10:43AM (#36986672)
It's not a clever-er solution? As an example, `php artisan make:controller` and potentially some custom derivatives is going to solve like 95% of what he was trying to abstract.
Re:Don't Be Clever by HappySweeney on Thursday August 03, 2023 @12:27PM (#36988030)
Until something goes wrong, and you didn't write it. At that point, have fun.
Re:Don't Be Clever by lopatin on Thursday August 03, 2023 @11:50AM (#36987519)
To me the most ironic part was calling CRUDController clever in the first place. There could have been clever solutions to reduce the code repetition, but using inheritance to force a naive abstraction on every future programmer isn't it.
Re:Don't Be Clever by dehrmann on Thursday August 03, 2023 @12:42PM (#36988240)
I didn't find either all that clever. It was premature abstraction, followed by abstraction-lite.
Re:Don't Be Clever by isaacremuant on Friday August 04, 2023 @04:04AM (#36996906)
I don't know if it's because I'm reading HN more often these days instead of spacing it out but there's definitely a sizeable quantity of "<hard statement title>" followed by "so short it seems from twitter" article which really provides little insight or is absolutely misguided.

I guess the debate is instructional in itself and it's why the comments+article combo is the real power of HN.