Guiding principles for library development
Developing an effective library can be tricky. Where you have a clear-cut application in mind when developing a PLC program for a machine, developing a library will be a bit different. When you’re developing a library, you have to think of everything at a very generic level. You will not know ahead of time who will use the library, how they will use the library, or what they will use the library for. Hence, creating a good library can be a very tricky and daunting task. There are no clear-cut ways to create a perfect library but there are a few rules that I came across that have helped me develop some decent libraries.
Rule 1 – Keep it simple, stupid (KISS)
KISS is the golden rule for many programmers. When it comes to developing libraries, you must keep it as simple as possible. Generally, you need to have a very clear issue in mind that the library is designed to solve. Now, libraries can have many different functionalities...