One down… one to go…

No, I have not forgotten the blog (though it would appear that way). I've busy; very busy. At the beginning of March, my co-workers and I were told that we need to get some certifications for Microsoft's CRM. The goal was to get it done as soon as possible; thus I've been hitting the books... Continue Reading →

Dear Leader’s Wall

I have wondered why Dear Leader has been so adamant that he gets his wall. Surely, anybody with a half of a brain knows that a wall will not stop the problem that its proponents claim it will solve. I think I have a working theory. Dear Leader does not care whether or not spending... Continue Reading →

End Times: Patriot Amendment of 2076

Section 1:  The United States is a Christian nation.  We hereby declare the religious protections of the first amendment apply only to natural born citizens who accept Jesus Christ as their lord and savior.  Article VI paragraph 3 of the Constitution shall henceforth read. The Senators and Representatives before mentioned, and the Members of the... Continue Reading →

New house guest

For Christmas, I got my wife one of those Echo Dots from Amazon (and one for myself 😀). After the Christmas chaos died down a bit, I finally took them from their boxes and set them up. Alexa, as she calls herself, is like a house guest just sits around all day listening to our... Continue Reading →

Your Language is a Tool

Dauvis' Dev Musings

One of the most quintessential questions asked by new (and experienced) developers is “What language is the best?” or “What is the best language to learn?” To that, I give the quintessential cop-out, “It depends.” It is best to view choosing a language the same way a car mechanic would choose a tool to work on a car. A mechanic would not use a sledgehammer to change a car’s oil (you may want to consider another mechanic if he or she does). Instead, the mechanic would use a wrench and a filter wrench.

If a developer must process several text files using regular expressions, C would be a poor choice. Instead, Perl would be a better choice because it has language constructs that make it superior to that application. Unfortunately, there are times when there is no choice. For example, when maintaining legacy software, the developer must use the language…

View original post 216 more words

Why you should consider brushing up on Boolean algebra

Dauvis' Dev Musings

Recently I was making changes to some code that was at least 10 years old. Being so old, the identity of the “guilty” party (or parties) has long since been lost to the sands of time. I cannot even say that I am not said party. 😁 The code in question looked similar to the following block of code.


if (inventTable.FlagField && custTable.FlagField)
{
    this.doSomeProcess();
}

if (!inventTable.FlagField || !custTable.FlagField)
{
    this.doSomeOtherProcess();
}

Think about this code for a moment.  I will wait.

AnimatedClock

What is wrong with the code is that the conditions of the two if statements are logically opposite (see De Morgan’s law). Actually, “wrong” might not be the correct word but it is unnecessarily complex. The block of code can be written as the following.


if (inventTable.FlagField && custTable.FlagField)
{
    this.doSomeProcess();
}
else
{
    this.doSomeOtherProcess();
}

In the field of electronics, people use Boolean algebra to design and to simplify electronic…

View original post 69 more words

Facebook sucks [Share]

Well, that is not exactly what the following linked article says but I think it is a good two-word summary. Basically, a former Facebook executive speaks out about the role that Facebook and other social media is having on our lives. This phenomenon is not just about America or even how Russia engaged in cyberwarfare... Continue Reading →

I've been looking at my homepage and it's been neglected. I'm going to have to start thinking about a renovation. 🤔

First week with the toddler back with her mother. Take a toddler out of a house, things become a lot quieter.

<rant> Here is a secret that I do not tell many people. I hate animated gifs. Why is that? You ask. Well, I do most of my browsing on my desktop through remote desktop. Traditionally, videos and similar freezes my screen. There have been cases where I had to wait 10 minutes for it to... Continue Reading →

Social media and its problem with free speech

One of the biggest problems facing users of social media is the presence of hate speech and misinformation masquerading as free speech. To combat these problems, the social media companies have rules. Unfortunately, the way that they apply these rules has produced confusing and often seemingly arbitrary results. IMHO, these social media companies should not concern... Continue Reading →

Thank you, Marvel, for putting the trailer for New Mutants before the showing of Thor: Ragnarök. Now, I have a kid that won't sleep in his bed. 😠

Create a website or blog at WordPress.com

Up ↑