
Originally Posted by
Fenrir2
How can you say that you don't like ORM? Have you tried it?
Yes. Doesn't help me much when I'm using a Native XML Database, or an Object Database, as I've mentioned before in a thread you commented on. They're not relational, so object-relational mapping doesn't work.
It doesn't help me most of the time when I'm using SQL. Consider the following MySQL query:
Code:
SELECT
f.name,
e.id,
e.parent,
e.child,
COUNT(a.orders_id) AS sales,
a.referer,
SUM(b.totalnet + b.totalvat) AS paid
FROM
roi_sales a
LEFT JOIN
orderdetails b
ON b.orders_id = a.orders_id
LEFT JOIN
inventories c
ON c.id = b.inventories_id
LEFT JOIN
products d
ON d.id = c.products_id
LEFT JOIN
productfamily e
ON e.id = d.productfamily_id
LEFT OUTER JOIN
roi f
ON a.roi = f.id
LEFT JOIN
orders g
ON g.id = a.orders_id
WHERE
g.date LIKE "{$reportmonth}%"
AND
g.state = 1
AND
b.reltype != 0
GROUP BY
f.name,
e.id
ORDER BY
f.name,
e.id
This is one of the simpler reporting queries I use on one of my applications. This returns a simple array. I have no need to alter this array after I've collected it from the db. Why would I want to wrap it in objects? How would I even start? For me, more often than not, ORM is a waste of time and effort.
Don't like "javascript outputted by the framework"? If you like to type everything, it's ok, you can.
I'd rather know that what is outputted is controlled by me. I'd like to know that if there's a security problem with the javascript I can just remove the file from the server and the risk is minimised. I like to know that my system isn't reliant on javascript developed by someone who I've never met, and which I have no quick and easy access to change.
Also, I've already spent time and effort on a set of javascript libraries which handle AJAX, DOM manipulation, scheduling, and other functions. I'm comfortable with using them. Why should I waste time working with code I don't know very well? I thought the whole point of OOP was to end up with maintainable, reuseable, and indepentant code?
"Ruby feels right, even if Rails doesn't." Feel before using it?
I've been through the tutorials. Don't get me wrong, I'm sure Rails is great. But just as purple is great, it doesn't go well with my orange hair.
""Built-in" is really starting to get on my nerves." I am a former PHP developer, and this is what my philosophy was. Roll everything myself. Again, try it out and see how cool the "built-in" libraries are.
Yes, they probably are great. But again, I use XSL as my templating language. I'd rather not switch back to using inline code, as I've found XSL to be a very powerful language.
You don't want Rails? Fine. Just don't say it is not your thing and it doesn't feel right before trying it.
Why the hell not? Its only my humble opinion, after all, and shouldn't we share our opinions so that others may learn? Do you think Rails would be here if one guy didn't have an opinion? Or Ruby?
And if there is no framework you like: create your own!
Already thinking about it!
I'm asking the question, however, to see whether there are any others. To my mind there are about 10 main-stream PHP frameworks. Has Ruby only got 2?!
Bookmarks