fbpx

Python

How to Warn Users Before They Attempt to Close a Browser Tab in JavaScript?

To prevent data loss, do you want to create the following warning popup (alert) before a user of your web page attempts to close, reload, or leave the page via the “back” button? You can do this in a simple step: just copy and paste the following JavaScript code snippet between the <head> … </head> …

How to Warn Users Before They Attempt to Close a Browser Tab in JavaScript? Read More »

Is Python Less Eco-Friendly Than Other Languages?

Yeah, Python is slower than other programming languages and has a larger memory footprint than C/C++. Read this article if you want to learn about Python’s “dark sides”. However, Python allows for rapid prototyping, makes programming so much easier for beginners and is one of the most effective ways of writing clean and meaningful code. …

Is Python Less Eco-Friendly Than Other Languages? Read More »

The Reduce Function is Dead. Long Live the Reduce Function!

This article is a first section draft of my upcoming Python book “Python One-Liners” (to appear with NoStarchPress in 2020). I thought I’d share it because recently I published an article about the fate of the reduce function in Python that got a lot of attention in the Python community. While the recently published article …

The Reduce Function is Dead. Long Live the Reduce Function! Read More »

Can I Start Freelancing as an Intermediate-Level Python Programmer?

For sure! You should have started much earlier. Have a look at the income distribution of Python freelancers (source): It resembles a Gaussian distribution around the average value of $51 per hour. So if you are an average Python freelancer, you can earn $51 per hour in the US! I have gained a lot of …

Can I Start Freelancing as an Intermediate-Level Python Programmer? Read More »

What Non-Programming Skills to Learn Online That Will Explode Your Career Options?

Do you work in the software development industry? Big news: programming expertise is an important skill set that will help you accelerate your career. For example, one of the most satisfying and highest-paying jobs are DevOps specialists (read more on my blog article about this excellent job description). But DevOps specialists need to have a high-level of coding expertise—gained …

What Non-Programming Skills to Learn Online That Will Explode Your Career Options? Read More »

How Does “And Precedence” Work in a Python Boolean Expression?

In Python, the Boolean and operator takes precedence before the Boolean or operator. How does this work exactly? Consider the following example code puzzle: Before you read on, take a guess: What’s the output of this code puzzle? (You can solve the puzzle interactively at the Finxter app.) The puzzle tests your understanding of the …

How Does “And Precedence” Work in a Python Boolean Expression? Read More »