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

De EU en de crypto war! Overheid zie toch eens de kansen!!

  Naar aanleiding van het uitstekende artikel van Fred Hage in de Computable van  27 november 2020. Overheden worstelen met End-to-end encryptie en ‘lawful interception’. Met andere woorden privacy op internet aan de ene kant en de mogelijkheid criminaliteit te onderzoeken aan de andere kant. Het blijft me verbazen dat overheden blind zijn voor de kansen die dit dilemma biedt! Stel "ik kan bij de NL-overheid mijn encryptie regelen" (met de wetenschap dat ze mee kunnen kijken). Dan doe ik dat toch zolang ik niets te verbergen heb! Dus: Overheid wordt eens wakker en bied zelf encryptie services aan! Ga met de betrokken internet diensten zoals Google, Amazon, Facebook, Microsoft .. etc. om de tafel zitten en ontwikkel encryptiediensten en standaards voor (vertrouwde) burgers waar ze gebruik van kunnen maken. De diensten kunnen dan vertrouwd verkeer van onvertrouwd verkeer onderscheiden. Ze kunnen vertrouwd verkeer direct, eventueel automatisch, onderzoeken. En me...

Microsoft; Google; IBM all the same.

  Today, Microsoft announced https://cloudpc.im/. After they announced Windows 11. After the Windows 11 announcement, it rapidly became clear nearly no existing Windows 10 will be able to be upgraded to Windows 11. No coincidence. They want to move all customers to monthly payments. Soon you only can run Word, Excel and PowerPoint in a browser. Just like with Google! So what is the difference? It is all the same! You lost control over your data and your wallet!  What will be the countermovement?

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...