3 ms·
Fair enough. I suppose I do try and keep it KISS and that does often require abstractions and even the occasional meta-programming. But in most cases, KISS pr
by wvenable 17y ago
Fair enough. I suppose I do try and keep it KISS and that does often require abstractions and even the occasional meta-programming. But in most cases, KISS principles are best achieved by using the most minimal abstraction that does what you need.
> Also, you have 100 line SQL statements embedded in your PHP programs? That is the wrong level of abstraction.
If you need to calculate payroll against a schedule of appointments consisting of elements that need to be calculated as a flat fee, percentage, or sliding scale of appointments and you need to return results in real-time than it's the right level of abstraction. And when you actually need to mix in values, constants, and even function calls from the software into that SQL statement, you need something very different from your example.
"The point of my abstraction is that a quick one-liner is the same mental complexity as your supposed 100-line statement."
The same technology that allows you to make quick one-liners of moderate SQL statements would balloon my 100-line statement into a 200 monstrosity that would be impossible to follow. There are trade-offs with abstractions. Look at Rails, absolutely great for certain types of projects but when you need to do something outside of the box it gets very complicated to work with.
"Anyway, probably not worth arguing with you, since you are quick to make personal attacks"
You're the one making a lot of assumptions about "PHP programmers" that I could take offense with. I really don't think pounding my keys really fast makes me productive. Or that my HTML, PHP, and SQL is all in one file. Or the countless other things that you've said. Really, if I was black would you think I talked all gangsta too?
> and won't discuss anything specific.
I was just very specific, enjoy.