DEV Community

Discussion on: What do you think about the idea that "there should be only one way of doing a thing" in programming languages?

Collapse
 
johnfound profile image
johnfound

Actually this is very bad idea that always kills the element of art in the programming. Of course, the real artist can draw a painting with one single brush. But if he has many different brushes his work will be much more comfortable.

For example, I can compare two MCU architectures: PIC and AVR. Both are risk harvard architectures, but PICs have so called orthogonal instruction set, with very small number of instructions and "only one way of doing things". AVR has extended non-orthogonal instruction set, where are many different ways to do things.

So, well, as a result, programming in assembly language with PIC is a pain. Programming in assembly language with AVR is a real pleasure.