Welcome Guest, Not a member yet? Register   Sign In
Poll: Incorporate Composer?
You do not have permission to vote in this poll.
yes
46.67%
28 46.67%
no
36.67%
22 36.67%
maybe
16.67%
10 16.67%
Total 60 vote(s) 100%
* You voted for this item. [Show Results]

[split] Composer?
#23

(This post was last modified: 11-28-2015, 05:13 PM by ivantcholakov. Edit Reason: typos )

@idealcastle

"When libraries force you to use composer, you can no longer directly install the code on your platform without serious modification."

- I've got familiar with three kinds of libraries in this regard:

1. There are libraries that offer Composer and manual installation. In case of manual installation they even can be shipped with their own autoloader. Examples: https://github.com/PHPMailer/PHPMailer/tree/v5.2.14 , https://github.com/oyejorge/less.php/tree/v1.7.0.9

2. Libraries that recommend Composer installation only. Probably they might be installed manually, but with much efforts. Example: https://github.com/guzzle/guzzle/tree/6.1.1 In this particular case let us suppose that you badly need asynchronous HTTP requests that this library is capable to provide. Suddenly Composer will become your friend.

3. Libraries that depend on other libraries (or components, or packages, if you like). Then Composer is the only practical way for installation. It would be better if it resolves the dependencies automatically. The third-part author controls this, indeed. Dependencies might be wise or weird. For "weird" I will not give a direct link here for not causing embarrassment, only I would quote my complain "Why composer installs so many dependencies just for using a 129-lines script?". Yes, Composer allows doing stupid thinks as any other tool does. Here you will discriminate not on "Compiser packaging" but on the quality of a given library.

-------

"I'm not saying composer is a bad thing, I like full control, I don't need some program telling me which versions of libraries I need, I can do that myself, so for that I just don't need to use composer."

If Composer is active on your system it will not stop doing that. And if for a particular case your mind gets shifted, Composer will help.

-------

"I rather download direct code, integrate with my project and move forward, composer is like a "magic" functionality, you can't exactly see whats going on, you just hope it works."

About the "magic": I suspect that some people make "composer update" on the production server. Well, don't. Do "composer update" on your development environment with versioning control. Check visually what changes are going to be done. Test the system with the new changes. If they are not ok, revert modifications or resolve the problems. If they are ok, commit the modifications (the vendors/ directory, composer.json and composer.lock). Then upload the modification on the production server.

Composer is a developer's tool, not a tool for deployment.

-------

"I dont like that, I get that new programmers love all the help they can get, so composer works, it does the job, it makes things easier. Just like jQuery, if you use only jQuery and rely on only that for functionality, you start forgetting how to do things within javascript alone."

Let us say you work for earning money, otherwise why should you do. Then, everything that saves your time is a priority, in this regard Composer is the top priority.

About the jQuery analogy: I can write in the "pure JavaScript" and in the "jQuery" way. But for example, an AJAX call written in a "pure JavaScript" way is not something practical that you need to know. Life is too short for making this.
Reply


Messages In This Thread
[split] Composer? - by albertleao - 04-06-2015, 08:07 PM
RE: [split] Composer? - by jlp - 04-06-2015, 11:09 PM
RE: [split] Composer? - by sv3tli0 - 04-07-2015, 12:08 AM
RE: [split] Composer? - by gadelat - 04-07-2015, 12:17 AM
RE: [split] Composer? - by Muzikant - 04-07-2015, 01:18 AM
RE: [split] Composer? - by gadelat - 04-07-2015, 01:30 AM
RE: [split] Composer? - by twpmarketing - 04-07-2015, 08:40 AM
RE: [split] Composer? - by Jamper - 04-07-2015, 11:32 PM
RE: [split] Composer? - by dmyers - 04-08-2015, 06:09 AM
RE: [split] Composer? - by cartalot - 04-08-2015, 08:28 AM
RE: [split] Composer? - by albertleao - 04-08-2015, 09:06 AM
RE: [split] Composer? - by GeorgeD - 04-09-2015, 12:23 AM
RE: [split] Composer? - by dmyers - 04-09-2015, 02:44 PM
RE: [split] Composer? - by blocSonic - 04-10-2015, 04:58 PM
RE: [split] Composer? - by Muzikant - 04-11-2015, 02:05 AM
RE: [split] Composer? - by Marcusc - 04-11-2015, 04:10 AM
RE: [split] Composer? - by blocSonic - 04-11-2015, 05:06 PM
RE: [split] Composer? - by idealcastle - 11-27-2015, 05:19 PM
RE: [split] Composer? - by ivantcholakov - 11-27-2015, 09:27 PM
RE: [split] Composer? - by idealcastle - 11-28-2015, 11:43 AM
RE: [split] Composer? - by PaulD - 11-28-2015, 07:20 AM
RE: [split] Composer? - by ivantcholakov - 11-28-2015, 03:35 PM
RE: [split] Composer? - by Hamed - 11-29-2015, 07:06 PM
RE: [split] Composer? - by sv3tli0 - 11-30-2015, 12:03 AM
RE: [split] Composer? - by ignitedcms - 11-30-2015, 05:43 AM
RE: [split] Composer? - by kilishan - 11-30-2015, 08:16 AM
RE: [split] Composer? - by cartalot - 11-30-2015, 06:41 PM
RE: [split] Composer? - by Narf - 12-01-2015, 02:47 AM
RE: [split] Composer? - by kilishan - 11-30-2015, 09:06 PM
RE: [split] Composer? - by cartalot - 12-01-2015, 02:56 PM
RE: [split] Composer? - by kenjis - 12-01-2015, 03:27 PM
RE: CI, The Next Generation - by crisslin - 04-06-2015, 09:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB