Welcome Guest, Not a member yet? Register   Sign In
Say No to Composer!
#3

(06-10-2015, 07:40 AM)MatthewSchenker Wrote: 1. Although I like the idea of help managing libraries, the implementation of Composer adds extra work which, in many cases, ends up costing more time than just managing your libraries.

While it took me a little while to figure out what I was doing in my composer.json file, I really haven't had to do much in the way of extra work and time since then. For the most part, a framework could reduce or eliminate the need for extra work on the part of its users by supplying a default composer.json which configures autoloading classes based on the framework's conventions.

Quote:2. I do not like the "disconnect" that happens with Composer.  One of my main reasons for using CodeIgniter is that it keeps you in touch with the code, and "install" just means placing code where you need it.  With Composer, there is a black-box sensation, where you install software and lose track of what's running on your application.

This doesn't really make sense to me, unless you're dealing with libraries which have a lot of their own dependencies, all of which are being managed by Composer. Another possibility I could see might be the "files" option to load files for every request in the composer autoload configuration, but that's as visible to users of Composer as the autoload configuration in CodeIgniter.

In any case, what's running on your application when you use Composer is exactly what you tell it to load, plus any dependencies for whatever you loaded. In CI's loader, you're calling $this->load->{class_type}('class_name'), and it's hiding the instantiation of the class (and potentially loading a config file, if it's a library, or possibly loading the db library if it's a model). When using Composer, you just instantiate the class, instead, and it loads the class (and its dependencies).

Having written a little code which permits loading some Composer-oriented libraries when Composer isn't present, there certainly is a tendency (in some cases) towards using more files, and it can make loading the same classes without Composer (or some other dependency manager) painful, but using more files for a library and managing the loading of dependencies is only going to cause you to lose track of what's running in your application if you choose to ignore the library's dependencies (which are clearly defined in that library's composer.json file).

Quote:3. I am pretty confident that 5 years from now the development community will be done with Composer, just as we are now done with PEAR.  I've been coding for 25 years, and Composer feels to me like so many "breakthroughs" that are not destined to last.

While I've only been coding for 19 years, I don't believe that this trend is really going anywhere, regardless of whether Composer itself sticks around. After all, package/dependency managers are common in many operating systems and programming languages (e.g. NuGet, npm/Bower, RubyGems, Maven, Apt, etc.), and solve a number of very real problems which currently have no other viable solution (other than spending your time manually managing your dependencies, which will tend to reduce them, even if you don't explicitly work towards that goal).
Reply


Messages In This Thread
Say No to Composer! - by MatthewSchenker - 06-10-2015, 07:40 AM
RE: Say No to Composer! - by sv3tli0 - 06-10-2015, 11:09 AM
RE: Say No to Composer! - by mwhitney - 06-10-2015, 11:16 AM
RE: Say No to Composer! - by ivantcholakov - 06-10-2015, 01:24 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:19 PM
RE: Say No to Composer! - by MatthewSchenker - 06-10-2015, 01:37 PM
RE: Say No to Composer! - by kenjis - 06-10-2015, 03:07 PM
RE: Say No to Composer! - by ivantcholakov - 06-10-2015, 03:26 PM
RE: Say No to Composer! - by MatthewSchenker - 06-10-2015, 06:23 PM
RE: Say No to Composer! - by wolfgang1983 - 06-11-2015, 07:33 AM
RE: Say No to Composer! - by no1youknowz - 06-11-2015, 01:24 PM
RE: Say No to Composer! - by MatthewSchenker - 06-12-2015, 05:28 AM
RE: Say No to Composer! - by kilishan - 06-12-2015, 07:13 AM
RE: Say No to Composer! - by MatthewSchenker - 06-14-2015, 08:42 PM
RE: Say No to Composer! - by apsweb - 06-15-2015, 05:06 AM
RE: Say No to Composer! - by kilishan - 06-15-2015, 06:43 AM
RE: Say No to Composer! - by apsweb - 06-15-2015, 08:16 AM
RE: Say No to Composer! - by Hobbes - 06-15-2015, 07:18 AM
RE: Say No to Composer! - by angrymongol - 06-05-2019, 01:38 PM
RE: Say No to Composer! - by Paradinight - 06-06-2019, 08:34 AM
RE: Say No to Composer! - by albertleao - 06-06-2019, 08:38 AM
RE: Say No to Composer! - by angrymongol - 06-06-2019, 11:11 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 08:29 AM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 08:56 AM
RE: Say No to Composer! - by includebeer - 06-06-2019, 12:29 PM
RE: Say No to Composer! - by angrymongol - 06-06-2019, 01:12 PM
RE: Say No to Composer! - by website - 06-06-2019, 03:30 PM
RE: Say No to Composer! - by InsiteFX - 06-06-2019, 03:58 PM
RE: Say No to Composer! - by website - 06-07-2019, 02:55 AM
RE: Say No to Composer! - by John_Betong - 06-06-2019, 06:21 PM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 09:13 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 10:37 AM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 11:46 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 12:57 PM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 01:51 PM
RE: Say No to Composer! - by kilishan - 06-07-2019, 09:21 PM
RE: Say No to Composer! - by ciadmin - 06-07-2019, 02:27 PM
RE: Say No to Composer! - by sv3tli0 - 06-10-2019, 09:54 PM
RE: Say No to Composer! - by ronelb - 06-11-2019, 03:59 AM
RE: Say No to Composer! - by ignitedcms - 06-12-2019, 02:39 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:08 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB