|
epswing posted:I just want to make a quick note here. Yeah but RonaldMcDonald's code only does one thing. Novo's code is set up so that you can add another part for the page very easily. Novo's code is: - Readable - Very extensible (much easier to implement pagination on Ruby than on PHP, for example) - Lazy (select * from people, c'mon, every loving PHP person does this, EVERYONE, when they only need certain fields, it's fine when you have 10 records, but when you have 100k, not so fine.) Not to mention Novo's code produces valid html. Another thing not shown is that Neither Novo's code nor RonaldMcDonald's do any database setup. In php you setup the connection, RoR takes care of that for you. RoR saves in complexity when the application gets a bit... beefier. I would say that your average large RoR application is smaller than "grep -i 'select ' *.php" from your average smaller php application.
|
# ¿ Aug 9, 2007 03:20 |
|
|
# ¿ Apr 29, 2024 02:31 |