Sub-Etha Software
Blogs

Life without the Cloud

November 6, 2019 Sub-Etha Software

Since this past summer, I have been without home internet. I previously went without phone and home internet for quite some time before, so it’s not nearly as shocking this time around. It does make me realize how cloud dependent computing has become. Computers, in general, are far less useful …

Sub-Etha Software
Blogs

Function names and “Clean Code”, part 2

August 20, 2019 Sub-Etha Software

See also: Part 1

Oh, the frustrations of obvious function names that don’t actually help.

LED1_On(); LED1_Off(); … LED9_On(); LED9_Off();

First, it’s quite obvious that LED1_On() probably turns LED #1 on, and LED1_Off() turns it off. Simple.

But what is LED #1?

For most of my programming career, I have

Sub-Etha Software
Blogs

Function names and “Clean Code”

August 14, 2019 Sub-Etha Software

At a previous job, I was introduced to the concept of “clean code.” As an embedded programmer, where we are often trying to squeeze extra bytes out of already optimized code, many of the principals of clean code do not apply.

But, in general, I like what I have read

Sub-Etha Software
Blogs

C and the dangers of memcpy()

August 9, 2019 Sub-Etha Software

In the C programming language, memcpy (memory copy) is a function used to copy a range of bytes from one location in memory to another. I have used it often. Today, my boss mentioned something about not liking memcpy() because of all the dangers of using it. I understand that

Sub-Etha Software
Blogs

Braces! Foiled again!

July 30, 2019 Sub-Etha Software

Just a quick rant, based on how example code from a new compiler I am using is presented.

In C (and similar languages), it is very common to see simple logic presented in one line, such as:

if (AlertLevel == RED) TurnOnSiren();

That is simple to understand, and only

Sub-Etha Software
Blogs

Yo ho, yo ho, a (video) pirate’s life for me…

June 14, 2019 Sub-Etha Software

The following is a reprint of an article I originally wrote around November 11, 2002 at 4:17:20 a.m. CST. Apparently.

From: Allen Huffman

Date: November 11, 2002 4:17:20 AM CST

Subject: Yo ho, yo ho, a (video) pirate’s life for me…

The 1990s.  You remember them, don’t you?  It