Skip to main content

Losing energy & time with Python

No variable declaration

Python does not know variables declaration. Nice for starting programmers. But it comes at a cost.

Python (under the hood) needs to find out what type of variable it deals with. This is done in a smart way, but also at a calculation-time and energy cost.

Is it worth the effort?

I don't think so. Computing always is about modeling the real world in one or the other way. And also in the real world, it is essential to know the type of variable one is dealing with. And most of the time the unit of measurement is loosely interpreted in programming. Sometimes causing real disasters.

Why then making programmers neglecting the real nature of what they are programming and stay in tough with the real world at the cost of the program speed (time and energy)?

The better way

It would be better to have a variable declaration including the applied unit of measure. That way, the program stays in touch with the real physical environment it is used for. And the program does not need to waste time and energy finding out how to deal with a popping up variable. On top of it, the programmer makes fewer errors towards the real use of the program.

Comments

Popular posts from this blog

Annoying stupid smart functions in Google WorkSpace

Annoying stupid smart functions in Google Workspace. For the context. I had enough of Bill Gates, his marketing and pushy sales force a long time ago. And have abandoned Microsoft completely in 2014. I never ever will buy anything from them again. Certainly, not ChatGTP (Babylon 2.0 in the making). And when Zuckerberg showed up, I rapidly saw he was a second Bill Gates and I never installed any app of him, and never will. So from US big tech, I only use Apple and Google stuff. Google and Apple are king in “thinking for you” in the wrong way . Consequently, making your live less efficient rather than more efficient. This writing is about that, based on example cases. The first disaster I experienced in this regard has been the day that Apple decided to organize my photo's for me. With as a consequence, my organization of my history was completely messed up. After a year, I decided to take all my images away from the iCloud and put them on Dropbox. Now I organize my history myself. W...

Issuing phone numbers, a failing public service.

The unreliable ID? In many articles, the IT industry complains about the fussy nature of the phone number as a reliable ID. For example, in this article . What wend wrong? The ITU It was original set up by governments to resolve international issues on standards for telecommunication. One of their standards is the Telephone numbering plan . This telephone numbering plan was set up in a time of fixed landlines, never considering mobile personal use. Who has ownership? Let's have a look at the international public telecommunication numbering plan E.164 . The first 3 digits are the country code or country calling code . Counties control the subscribers assignment in the networks of the member countries. So countries have jurisdiction over the subscriber assignment in the country networks. In that regard, the county calling code is the jurisdiction code ! National governments have ownership! To me, it looks like governments fail to provide the public service we (the people) could expe...

Crypto misconceptions due to poor semantics

Let's start by explaining a use case and the confusion it gives due to poor nomenclature in the crypto-world. The case of me giving a so-called private-key to someone, so I can send the person an encrypted message with the pared public-key, so only the receiver can open it. In this use case, in fact, I make a private-key public and assume the public-key to be private. This use case makes clear that the naming of private-key and public-key are a poor semantic choice. It is a poor choice because depending on the use case, the private-key can be public and the other way around. We better call the private-key just the encryption-key, and the public-key an encryption-vault. Let's then revisit the example use case now with the new naming. The case of me giving a so-called encryption-key to someone, so I can send the person an encrypted message in an encryption-vault, so only the receiver can open it. We have 4 clearly define objects now: public-encryption-key private-encryption-key...