I do agree with you, however I am almost always try to do things that the libraries are not designed for. For example, I needed camera in my project, I looked at the camera libraries but none of them worked with canvases so I decided to create my own. It is lack many features but at least works the way I want it. Or more recent case is I need a GUI library and the one I looked at for some reason did not centered the labels on the panels and was unable to pin certain menus to a certain panel and others lack features I needed. So currently I am working on my own GUI library, so far I have a panel and a button with a click and release event listener that I can pin to the panel, I have a long way to go but at least I can center the label.dusoft wrote:Code reuse (libraries, classes) is a strength, not a weakness. Writing something from scratch requires serious understanding of protocols, formats etc. you are often not going to achieve. Moreover you will likely introduce security issues you don't even know about.
Normally I would be happy to study the internal workings of these libraries, implement my own ideas and contribute to the project if it's useful, help it grow. But when I look inside the source and I see no comments, no documentation, I am required to debug and reverse engineer the code in order to find what I need is discouraging me. I feel like I am wasting my time.
I am almost certain the 90% would have no problem understanding my code because due to my bad memory I picked up the habit to use long, descriptive names for variables and methods and I use a lot of comments and structure my code in a way you can read it like a book. Even if you have no programming knowledge you have some idea what is happening by just reading the comments. Of course if my code is practical and efficient is an other question, I certainly lack experience and make lots of mistakes. This is why I want to get to the bottom of this and learn as much about Lua as possible before I continue developing my own libraries and modules.dusoft wrote:When you feel like this in 90% of cases, do consider whether your code would be readable for those 90% other developers. Understanding code of others comes with experience.