Should I write a library?
Peter wrote 03/02/2018 at 21:03 • 0 pointsI question. I am making my own 8x8, RGB WS2812, matrix panel. In between soldering sessions, I am putting together some code with FastLED. Should I invest my time in writing my own library to work with? I am an hobbyist, but always up for learning something new if it will make my life and project easier in the end. Any input would be appreciated.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Hello Peter. I had the same question I was asking myself awhile back but like
lion mclionhead stated, "Libraries naturally evolve from years of programming the same microcontroller, manely for repetitive tasks". I do not code but can modify it and debug it. I would mainly work on my projects, use published libraries and change code where necessary. It would give you more time on making other projects. This is just my opinion.
Dale
Are you sure? yes | no
I want to thank you all for your input! I have been doing some homework and I am going to take the dive, well more like one toe at a time, but I'll get all the way in.
Are you sure? yes | no
My opinion is that you should write your own library, because only then you will know how your project is really working. This why when you encounter some problems or bugs in future which are specific for your project you will know how to fix them. Not so long ago I had to use library for controlling stepper motors which I found on Internet, and this library worker really good for almost any kind of the problems. But, I had specific problem so at the end I had to dig in to the source code and change the some stuff so that I get desired behaviour of my system.
Some time this can take to much time, but writing couple of simple libraries could help you to understand other peoples libraries so that you could change them according to your needs.
Are you sure? yes | no
Libraries naturally evolve from years of programming the same microcontroller, manely for repetitive tasks like accessing the UART & bootloading. No-one sits down & designs a library for an LED panel unless they're applying for a job at Google.
Are you sure? yes | no
No, not born to code, but I like to learn and try to code ;-) And thank you for the honesty, a very sound trait.
Are you sure? yes | no
You are born to code or you are not (it is a genetic defect, like honesty).
AlanX
Are you sure? yes | no