Python tutorials

It’s time to stop using Python 3.6

Upgrading to new software versions is work, and work that doesn’t benefit your software’s users. Users care about features and bug fixes, not how up-to-date you are. But there is only so much time you can delay upgrading, and for Python 3.6, the time to upgrade is right now. Python 3.6 is reaching its end of life as of December 2021. No more bug fixes. No more security fixes. “It’s dead, Jim.” As of mid-December 2021, 15% of packages downloaded […]

Read more

Host Your Django Project on Heroku

As a novice web developer, you’ve built your portfolio app and shared your code on GitHub. Perhaps, you’re hoping to attract technical recruiters to land your first programming job. Many coding bootcamp graduates are likely doing the same thing. To differentiate yourself from the crowd and boost your chances of getting noticed, you can start hosting your Django project online. For a hobby Django project, you’ll want a hosting service that’s free of charge, quick to set up, user-friendly, and […]

Read more

The NLP Cypher | 12.12.21

Here’s a collection of papers by your favorite big tech and educational institutions. “The Generalist Language Model (GLaM), a trillion weight model that can be trained and served efficiently (in terms of computation and energy use) thanks to sparsity, and achieves competitive performance on multiple few-shot learning tasks. GLaM’s performance compares favorably to a dense language model, GPT-3 (175B) with significantly improved learning efficiency across 29 public NLP benchmarks in seven categories, spanning language completion, open-domain question answering, and natural […]

Read more

Java vs Python: Basic Python for Java Developers

Python is a general-purpose programming language. You can understand its growth in the last couple of years by considering its approachability for learning and its high suitability for data analysis, machine learning, and web development. But what kind of programming language is it? What are some differences when you compare Java vs Python? What can you do with it? And is it really as “easy to learn” as some people claim? You’ll explore Python from a Java perspective in this […]

Read more

Creating a better flamegraph visualization

How do you visualize performance data so you can easily spot bottlenecks? Brendan Gregg’s flamegraphs are a great solution, adopted by a large number of profilers and performance tools. However, even great solutions can be improved. With a few small tweaks, you can make flamegraphs much easier to read. To see what I mean, I’ll start with a default flamegraph, and then make it better step by step. Most of the improvements can be achieved by using the right tool […]

Read more

Binary, Bytes, and Bitwise Operators in Python

Computers store all kinds of information as a stream of binary digits called bits. Whether you’re working with text, images, or videos, they all boil down to ones and zeros. Python’s bitwise operators let you manipulate those individual bits of data at the most granular level. Python isolates you from the underlying bits with high-level abstractions. You’re more likely to find the overloaded flavors of bitwise operators in practice. But when you work with them in their original form, you’ll […]

Read more

Prettify Your Data Structures With Pretty Print in Python

The Python pprint module is helpful in many situations. It comes in handy when making API requests, dealing with JSON files, or handling complicated and nested data. You’ll probably find that using the normal print() function isn’t adequate to efficiently explore your data and debug your application. When you use print() with dictionaries and lists, the output doesn’t contain any newlines. Before you start exploring pprint, you’ll first use urllib to make a request to get some data. You’ll make […]

Read more

When you should switch to Python 3.10

Python 3.10 is now available–but should you switch to it immediately? And if not now, when? The short answer after its immediate release was, no, you probably don’t want to switch immediately; quite possibly you can’t switch immediately. Now that some time has passed, we’re getting closer to yes, or at least a maybe. To understand why, we need to consider Python packaging, the software development process, and take a look at the history of past releases. We can then […]

Read more

Buying products for your job: estimating value, convincing your boss

You’ve discovered a product that might help you with your job: perhaps a book that will teach you a new and relevant skill, or software that will speed up development. Since you do want to write software better and faster, you are considering buying this product. But, then again, the product costs money, and maybe that money is better spent on something else. So should you buy the product or not? How do you decide? And if it is worth […]

Read more

Advent of Code: Solving Your Puzzles With Python

Advent of Code is an online Advent calendar where you’ll find new programming puzzles offered each day from December 1st to the 25th. While you can solve the puzzles at any time, the excitement when new puzzles unlock is really something special. You can participate in Advent of Code in any programming language—including Python! This tutorial will help you get started with solving puzzles and earning your first golden stars. Advent of Code puzzles are designed to be approachable by […]

Read more
1 85 86 87 88 89 167