• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code Igniter vs Laravel

#6
Things CodeIgniter does better than Laravel

1. It's a bit faster maybe
2. Lower learning curve (not necessarily such a good thing, see the huge amounts of terrible PHP out there.)

Things Laravel does better than CI

1. Routing, big time.
2. Has an ORM
3. Has a templating engine.
4. Abstracts the request cycle
5. Dependency Injection
6. Set up for testing (4+5)
7. Proper CLI support which allows for e.g. work queues out of the box
8. Migrations that work
9. Composer
10. Doesn't abuse globals in the CI style (though there's maybe some sneaky singletons and static calls going on in there)
...

Routing especially wins it for me, CI's router is a bit of joke really. Routing to classes/methods automatically based on the url seems like a good idea until you realise it results in very tight coupling between urls and implementation, which are two things that have no business being together. I think automated routing is bad idea generally as it encourages you not to think about what you are doing.

Because CI predates the popularity of autoloading / doesn't really do autoloading, you have a related problem in how the router actually decides what class to load. It loops through your controller directory, looking for a class name / method name combination it can call. It is limited in how deep this directory structure can go (I think you can go one more dir under controllers without having to rewrite part of the router), and obviously has no support for namespacing. The result is you either get a huge number of classes in the global namespace all sitting next to each other (sort of annoying) or huge classes with huge methods (terribad), because the architecture of the framework neither enables nor encourages splitting things up. You can quickly end up with huge technical debt because the way CI handles the request cycle almost forces you into anti patterns.

Add on top of this the fact that the framework doesn't finish bootstrapping itself until it has decided which controller its routing to and you're ready for a bad time.

I could go on....


Messages In This Thread
Code Igniter vs Laravel - by g3n1u5 - 11-14-2014, 03:17 PM
RE: Code Igniter vs Laravel - by jg6075 - 11-14-2014, 04:02 PM
RE: Code Igniter vs Laravel - by alroker - 11-15-2014, 07:35 PM
RE: Code Igniter vs Laravel - by Shawn P - 11-25-2014, 03:20 PM
RE: Code Igniter vs Laravel - by GeorgeD - 11-15-2014, 05:59 PM
RE: Code Igniter vs Laravel - by llebkered - 11-16-2014, 12:21 AM
RE: Code Igniter vs Laravel - by maxbrokman - 11-17-2014, 11:35 AM
RE: Code Igniter vs Laravel - by no1youknowz - 11-26-2014, 11:01 AM
RE: Code Igniter vs Laravel - by dmyers - 11-26-2014, 05:23 PM
RE: Code Igniter vs Laravel - by no1youknowz - 11-26-2014, 07:32 PM
RE: Code Igniter vs Laravel - by yavor99 - 12-24-2014, 12:14 AM
RE: Code Igniter vs Laravel - by artha.nugraha - 11-17-2014, 10:28 PM
RE: Code Igniter vs Laravel - by ivantcholakov - 11-18-2014, 02:39 AM
RE: Code Igniter vs Laravel - by dmyers - 11-19-2014, 03:53 PM
RE: Code Igniter vs Laravel - by thatcode - 11-19-2014, 06:02 PM
RE: Code Igniter vs Laravel - by dranzers - 12-08-2014, 03:32 AM
RE: Code Igniter vs Laravel - by Chroma - 12-09-2014, 10:50 AM
RE: Code Igniter vs Laravel - by albertleao - 12-09-2014, 01:01 PM
RE: Code Igniter vs Laravel - by no1youknowz - 12-09-2014, 09:41 PM
RE: Code Igniter vs Laravel - by includebeer - 12-10-2014, 06:51 PM
RE: Code Igniter vs Laravel - by albertleao - 11-26-2014, 06:21 AM
RE: Code Igniter vs Laravel - by dmyers - 11-26-2014, 05:29 PM
RE: Code Igniter vs Laravel - by mosid - 12-31-2014, 11:28 PM
RE: Code Igniter vs Laravel - by Rufnex - 11-26-2014, 11:07 AM
RE: Code Igniter vs Laravel - by freddy - 11-27-2014, 12:23 AM
RE: Code Igniter vs Laravel - by g3n1u5 - 11-28-2014, 08:46 AM
RE: Code Igniter vs Laravel - by albertleao - 12-01-2014, 11:18 AM
RE: Code Igniter vs Laravel - by Hobbes - 12-03-2014, 05:50 AM
RE: Code Igniter vs Laravel - by Narf - 12-03-2014, 06:32 AM
RE: Code Igniter vs Laravel - by sv3tli0 - 12-03-2014, 06:26 AM
RE: Code Igniter vs Laravel - by Hobbes - 12-03-2014, 07:34 AM
RE: Code Igniter vs Laravel - by trentramseyer - 12-04-2014, 06:18 PM
RE: Code Igniter vs Laravel - by Tux - 12-05-2014, 10:59 AM
RE: Code Igniter vs Laravel - by GrigoreMihai - 12-11-2014, 01:32 AM
RE: Code Igniter vs Laravel - by zurtri - 12-19-2014, 02:28 PM
RE: Code Igniter vs Laravel - by Hobbes - 12-20-2014, 05:36 PM
RE: Code Igniter vs Laravel - by avinashizhere - 12-27-2014, 12:40 PM
RE: Code Igniter vs Laravel - by ivantcholakov - 12-27-2014, 09:06 PM
RE: Code Igniter vs Laravel - by peterdenk - 12-28-2014, 06:54 AM
RE: Code Igniter vs Laravel - by ivantcholakov - 12-28-2014, 01:00 PM
RE: Code Igniter vs Laravel - by decimoe - 12-28-2014, 07:13 PM
RE: Code Igniter vs Laravel - by no1youknowz - 12-28-2014, 01:09 PM
RE: Code Igniter vs Laravel - by includebeer - 12-28-2014, 06:10 PM
RE: Code Igniter vs Laravel - by peterdenk - 12-29-2014, 04:31 AM
RE: Code Igniter vs Laravel - by Chrolm - 12-29-2014, 07:46 AM
RE: Code Igniter vs Laravel - by no1youknowz - 12-29-2014, 09:00 AM
RE: Code Igniter vs Laravel - by includebeer - 12-30-2014, 09:49 AM
RE: Code Igniter vs Laravel - by ivantcholakov - 12-29-2014, 10:16 PM
RE: Code Igniter vs Laravel - by Chrolm - 12-31-2014, 03:02 PM
RE: Code Igniter vs Laravel - by Code4fun - 12-31-2014, 07:41 PM
RE: Code Igniter vs Laravel - by Code4fun - 12-31-2014, 07:45 PM
RE: Code Igniter vs Laravel - by ciadmin - 01-01-2015, 02:48 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.