Binding Software Patterns to Languages
Filed Under ArchitectureIn the post Why Linguists Are True Code Artists I came to this realization:
…the maximum elegance of any solution is bound by the language that we use to create it.
While coding in Ruby, it was interesting to see Scott Belware had the revelation:
…design patterns are bound to the programming languages that express them.
I like this thought as it is looking at the same concept from a higher level.
Comments
2 Responses to “Binding Software Patterns to Languages”
I disagree. If you look at some ideas behind the theory of computation, programming languages solve the same class of problems. There is typically not an algorithm that could be implemented in one language, but another. C could be compiled into Java and Java could be compiled into C.
@Adam –
I guess the context was not the ability to solve a problem, but instead the elegant ways which you can solve it.
Creating a solution to find leaf nodes on a tree will be significantly less elegant in a procedural language that does not support recursion (for example).
All languages have their strengths and weaknesses, and depending on the context of the problem each can represent the solution in very different levels of elegance.