Comment the opposite of simple is not complex (Score 1) 381
Simple code is harder to write, because it is hard to define. I dont know of any filter to put code into and get back a value on "the simplicity scale". That said, some code is easier to follow (read) and does not contain unnecessary variables and routines. In general, I would say that the shortest amount of code to accomplish the intended goal is the simplest... but there is a limit to this. One code may be easier to debug and reproduce errors and output important values during execution.
When most programmers and debuggers look at 'complex' code... they are usually talking about the format and choice of loops and iterations. Or that the code has been upgraded and modified so many times, that the style no longer flows in a natural and readable way.
In summary: simple code takes longer to produce because it all needs to follow a single style and it needs to be created with a mindset for future developers who will be upgrading and debugging the code. And the total logical flow of the program needs to be considered in order to reduce and remove useless iterations. It is easier and faster to modify existing code without these considerations. The resulting code of fast upgrades without consideration for future changes is what programmers sometimes call: spagetti code. It is spagetti code that I would suggest is what most programmers think of when they call some code "complex".