Dead Code Gotchas

I’m in the stage of my career where I’ve seen a lot of projects from other developers. I’ve inherited good code and bad code, and there a couple of big gotchas I’ve been wanting to talk about. Comments Function Heading Comments When I was in college, I used to write three line comments for everything 1 2 3 4 5 6 //------------------------------ // This Function Squares Pi //------------------------------ float square_pi() { ... } While this comment isn’t wrong, it is unnecessary. The function name square_pi says what it does. Putting in the comment adds more lines to the file without providing any real use. Yes, the compiler will remove it so it doesn’t hurt the running code, but it is repeating what is written below and the function name should be good enough. ...

September 15, 2023 · zacharyc

Swift Version Challenges

Swift is a new langauge and still being developed. It is unfair to fully compare develping in swift to developing in Objective-C as the language was very well developed before my experience with it. Still, learning and programming in Swift, as a developing language, has some real challenges. The most challenging of which is that Swift versions can change the validity of previous only examples. I’m really working on learning Swift and trying to master the langauge and libraries around it. I’ve been trying to touch new features instead of just staying in the lane of the features I already know. While things like unwrapping Optionals takes a little bit of getting used to, it’s not that bad. The biggest challenge I’ve had is learning the differences in the langauge version. ...

September 11, 2023 · zacharyc

Farmers Market

There are two farmers markets a week on the island. Both are called the Aquidneck Growers Market, and have roughly the same vendors. Many are local to Rhode Island and you can get all sorts of great stuff there. I’m the worst farmer’s market patron. I bring my over stimulated dog and pretty much only go to get a coffee and come home. My two favorite places are: Single Fin Coffee Co (only on Saturdays), and Navad Bakery. Both have finished products, so I don’t have to cook. ...

September 9, 2023 · zacharyc

Publish My First iOS App

I’ve been writing iOS software since 2014 when I joined Cabulous (which later rebranded to Flywheel) as their first in house iOS developer. I took this job without really knowing what I was doing. I had done a little bit of work with Objective-C in college (mostly just reading the Hillegass book), but that was before iOS had been released and before people were writing apps. Much of my experience before that was in C, C++, and even JavaScript. ...

August 29, 2023 · zacharyc

Dispatch at Thompsons Point

Just a little note. Went up to Thompson’s Point in Portland ME last night for a super great concert by my favorite band, Dispatch. Their set was great and they even mentioned that it might be the most jammy set they’ve ever played. I loved it. I don’t know how many times its been that I’ve seen Dispatch, but it’s been quite a few. They played The General, Bang Bang, and many of the old songs while still leaving out some of their biggests hits. I was a little sad not hear to Flying Horses, but honestly I love that they were playing stuff that wasn’t just hits. There were a couple of songs that I hadn’t heard before, one of them was a cover, the other was a Brad song. ...

August 20, 2023 · zacharyc