Welcome Guest, Not a member yet? Register   Sign In
Do you wish to see an ORM feature in CI 2.x ?
#9

[eluser]Jelmer[/eluser]
Quote:ORMs seem too “magical” for me. The biggest problem with frameworks is that they move developers too far away from what actually happens and an ORM feels like that for me. It would be used by a handful of developers who appreciate it and confuse the rest.
There's nothing magical about it. In general it's a good thing to code as much DRY as possible, which often means that you'll write helpers/libraries that take care of the lower level programming. Of course it's good to remind yourself from time to time how things work behind the scenes and don't use a sledgehammer (a humongous function) when a normal one (basic PHP) will do. But using libraries that perform repetitive simple tasks in one simple call will result in far better code.

Conventional wisdom is that needing such helpers/libraries will slow you down as they're written genericly and not specificly for the task (if they're well written that is). The end result is often that your code is far easier to read, it's easier to maintain and it's easier to spot mistakes. All of that often results in far better code that will be faster.
But as I mentioned, you should always remain aware what happens behind the scenes. If it looks like magic, make yourself aware what happens behind the scenes by reading the code you're using.


Messages In This Thread
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-05-2010, 01:20 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-05-2010, 01:36 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-05-2010, 05:21 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-05-2010, 06:23 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-06-2010, 05:39 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-06-2010, 07:12 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-06-2010, 11:54 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-07-2010, 01:46 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-07-2010, 09:16 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-07-2010, 09:19 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-07-2010, 11:55 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-07-2010, 03:08 PM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 08-08-2010, 06:01 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 01:32 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 02:45 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 02:48 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 03:22 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 03:25 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 04:46 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 05:00 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 06:50 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 07:06 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 07:41 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-26-2010, 07:47 AM
Do you wish to see an ORM feature in CI 2.x ? - by El Forum - 10-27-2010, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB