3 ms·
> It is interesting that you assume PHP is the perfect level of abstraction. It's interesting you assume I said that, but I did not. In PHP you can have all k
by wvenable 17y ago
> It is interesting that you assume PHP is the perfect level of abstraction.
It's interesting you assume I said that, but I did not. In PHP you can have all kinds of levels of abstraction (and I use a multitude of levels). It is just as interesting that you assume most levels of abstraction are not possible.
If you call that a complicated a database query, we're clearly working at different levels. Get back to me when you hit 100 lines of SQL.
> I think that is called "blub". You should try deeper abstractions some time... Don't think that pounding on your keys as fast as possible makes your productive -- it doesn't.
The self-righteousness and ignorance here is absolutely astounding.
- jrockway 17y agoIt's interesting you assume I said that, but I did not. In PHP you can have all kinds of levels of abstraction (and I use a multitude of levels). It is just as interesting that you assume most levels of abstraction are not possible. Your initial post called this "a waste of time". That is why I assumed you didn't do it. If you do do it and think it's a waste of time, you are probably doing it wrong, as the rest of the programming community disagrees with you. Also, you have 100 line SQL statements embedded in your PHP programs? That is the wrong level of abstraction. The point of my abstraction is that a quick one-liner is the same mental complexity as your supposed 100-line statement. The idea is that most of the complexity is abstracted away by specific names. You compose the specific names into something that ends up being physically complex, but mentally simple as you are reading your code. Anyway, probably not worth arguing with you, since you are quick to make personal attacks, aren't consistent with your own ideals, and won't discuss anything specific. (Well, I guess you will discuss how many lines of code something is.)
- wvenable 17y agoFair 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.