Here is my personal point of view
- Based on the given definition, here is my free interpretation of the word pattern :
“A pattern is something you can reproduce in different areas, and this interpretation is more less always comparable to a sample. “
- The main difference between sample and pattern from my point of view is:
“A pattern is always created to reproduce something which worked and will work again and this is not the case with a sample.”
Sure, a code pattern is NO design pattern 😉 . The combination of the words design and pattern has an official definition.
From my understanding, IBM uses the word pattern in combination with code, with the intention of showing you that you can reuse the code in the way you want.
A code pattern does NOT need to be related to IBM products or IBM services, but it should be related to one or more technologies and should contain code, which a developer is able to reuse under an apache license.
Structure of the code pattern
A code pattern should always contain:
- Clear definition of the used technologies
- Should contain code which can be used to instantiate an application
- Should contain the possible deployment models (cloud, local, and so on) of the application
A code pattern should always have the following high level structure:
- Summary (main objective),
- Description (what it does)
- Flow (how it works)
- Instructions (how to instantiate)
- … and for sure the code, which is available on github
This was my personal perspective on the definition of a code pattern, based on my experience with code patterns so far.
I hope this was helpful for you and feel free to provide feedback 😉
Let’s see what’s next?