What is "Code over configuration"?

Since you tagged this with gulp, I'll give you a popular comparision to another tool (Gruunt) to tell the difference.

Grunt’s tasks are configured in a configuration object inside the Gruntfile, while Gulp’s are coded using a Node style syntax.

taken from here

So basically with configuration you have to give your tool the information it needs to work like it thinks it has to work. If you focus on code you tell your tool what steps it has to complete directly.

There's quite a bunch of discussion about which one is better. You'll have to have a read and decide what fits your project best.


Code over configuration (followed by gulp) and the opposite configuration over code (followed by grunt) are approaches/principles in software/program development where both gulp and grunt are using for the same thing as automate tasks. The approach refers to developing programs according to typical programming conventions, versus programmer defined configurations. Both approaches has its own context / purpose and not a question of which one is better.

In gulp each tasks are a java-script function, necessarily no configuration involved up-front (although functions can normally take configuration values) and chaining multiple functions together to create a build script. Gulp use node stream. A stream basically continuously flow of data and can be manipulated asynchronously. However in grunt all the tasks are configured in a configuration object in a file and those are run in sequence.

Reference: https://deliciousbrains.com/grunt-vs-gulp-battle-build-tools/

Tags:

Gulp