Wednesday, December 29, 2021

Thoughts about my project (progress, maintainability, productivity)

Reposting from the techlahoma #tech-talk channel

I'm working on my project, but it seems to be taking awhile. I think about each part and built a small prototype of each part and then I piece these parts together thinking about the whole.

Does oop help organize all the moving parts so it is easier to rationalize?Maybe it is how my brain works, but I am basically forced to print my code out a lot, mark it up with pen,crayon, pencil, compare it  to new (and previous) code that works, and fit it into new code. In graduate school, I did a lot of procedural programming, and C is a procedural language. I do print out code that is written in typescript, so to extent it is my brain.I think writing tests both in Unity for C and Jest for typescript/javascript has helped me cover some bases. It hasn't always been TDD. I think some of the time I have had not but a vague idea of what I should code, and what libraries I should use, or what parts should be there. It was this should do this, or this should talk to this. ...Over time by working through it I discovered I also needed to do thisValgrind is a very useful tool for writing C code. It just saved the day today my reminded me I needed to initialize a struct. After I did this, my code worked in a much more desirable way. (edited)

I'm definitely coding by code I can find online. It is not always easy to know all of the code that I need to get small things to work. Some might call this boilerplate?zI remember starting out with HTTP requests, and then through discussions here, switching to websockets. I needed a persistent connection that did not hang up because I was constantly streaming data out. (if I recall correctly)My computer is littered with small programs that I have run or compiled. Some only have a small change from the next. At times when I have had the discipline to use Git my organization has improved. (edited)

I do get scenes like this quite a bit. There is nothing quite like printing stuff out and marking it up, whether it be code, a tutorial, or documentation.


I thought that maybe this should be a blog post.

Sunday, December 12, 2021