Open in app

Sign in

Write

Sign in

Mastodon
Yang Zhou
Yang Zhou

8K Followers

Home

Lists

About

Published in

TechToFreedom

·Pinned

9 Fabulous Python Tricks That Make Your Code More Elegant

Pythonic is a synonym for elegant — “Beautiful is better than ugly.” This is not only the first sentence of “The Zen of Python”, but also the creed for all Python developers. But how to distinguish between beautiful and ugly code? More importantly, how to write beautiful Python code? Talk is cheap. This article will demonstrate 9…

Python

5 min read

9 Fabulous Python Tricks That Make Your Code More Elegant
9 Fabulous Python Tricks That Make Your Code More Elegant
Python

5 min read


Published in

TechToFreedom

·Pinned

9 Python Built-In Decorators That Optimize Your Code Significantly

Do more by less: leverage the power of decorators — “Simple is better than complex.” The best Python feature that applies this philosophy from the “zen of Python” is the decorator. Decorators can help you write less and simpler code to implement complex logic and reuse it everywhere. More importantly, there are many awesome built-in Python decorators that make our…

Programming

7 min read

9 Python Built-In Decorators That Optimize Your Code Significantly
9 Python Built-In Decorators That Optimize Your Code Significantly
Programming

7 min read


Published in

TechToFreedom

·Oct 26

3 Uses of Walrus Operators in Python

Understanding assignment expressions by simple examples — If I ask you about the connection between Python and animals, you’d probably think of a cute snake, Python’s beloved logo (🐍). However, in this article, you’ll discover another charming character gracefully waltzing through Python programs — the walrus. Due to the operator, :=, resemblance to the eyes and tusks…

Python

3 min read

3 Uses of Walrus Operators in Python
3 Uses of Walrus Operators in Python
Python

3 min read


Published in

Level Up Coding

·Oct 20

8 Advanced Python CLI Tricks To Save You From Writing Code

Python is the right language to make your life easier — Yes, you can leverage the power of Python without writing any code. The trick is to invoke Python's built-in modules, third-party packages, or your own modules in a way that makes them execute from your command line interface directly. As long as you installed Python, the implementation of this approach…

Programming

6 min read

8 Advanced Python CLI Tricks To Save You From Writing Code
8 Advanced Python CLI Tricks To Save You From Writing Code
Programming

6 min read


Published in

TechToFreedom

·Oct 16

7 Uses of Python Functools That Make Your Code More Professional

Elegance is the only beauty that never fades — One of the many advantages of Python is its abundant built-in modules which save us programmers from reinventing the wheel. The functools module is a good example. Leveraging it well will make our Python pretty neat, clean, and professional. This article will introduce 7 must-know uses of this outstanding module…

Python

7 min read

7 Uses of Python Functools That Make Your Code More Professional
7 Uses of Python Functools That Make Your Code More Professional
Python

7 min read


Published in

TechToFreedom

·Oct 4

Speed Up Your Python Programs with Rust

When elegance meets blazing speed — Elegance. This is the first word that springs to my mind when Python is mentioned. However, no programming language is perfect. As an interpreted language, Python is much slower than compiled languages, such as C++ or Rust. But how slow is it? Talk is cheap. Let’s have a simple comparison…

Programming

4 min read

Speed Up Your Python Programs with Rust
Speed Up Your Python Programs with Rust
Programming

4 min read


Published in

Level Up Coding

·Aug 29

When Arts Meet Python: Artistic Drawing with Your Code

Programmers can be artists — Have you ever imagined doing artistic creation on your terminal with Python? I did. Because I believe that programming is not necessarily just for building software. It can also make my day. This article will help you explore the useless but artistic side of Python. The code examples are not…

Programming

5 min read

When Arts Meet Python: Artistic Drawing with Your Code
When Arts Meet Python: Artistic Drawing with Your Code
Programming

5 min read


Published in

TechToFreedom

·Aug 12

7 Uses of SymPy: Writing Python Code Like a Mathematician

A powerful algebra system for data scientists — Mathematic problems are inevitable for data scientists. It will be a headache if you try to implement everything from scratch. After all, leveraging powerful tools made by others is a significant skill every engineer should master. In Python, there are a few third-party modules for algebra. One of my favorites…

Programming

4 min read

7 Uses of SymPy: Writing Python Code Like a Mathematician
7 Uses of SymPy: Writing Python Code Like a Mathematician
Programming

4 min read


Published in

TechToFreedom

·Aug 4

5 Uses of Question Marks in JavaScript

A powerful symbol for web developers — Question mark, such a common character. There is nothing to talk about it in most cases. However, in JavaSrtipt, it’s the key for many syntax sugars. Let’s have a look and feel the elegance of JavaScript. 1. Nullish Coalescing Operator: Simplify Your JS Code with Two Question Marks The nullish coalescing operator, which is as simple as two question marks, can make…

Programming

3 min read

5 Uses of Question Marks in JavaScript
5 Uses of Question Marks in JavaScript
Programming

3 min read


Published in

JavaScript in Plain English

·Aug 2

9 JavaScript Tricks That Make Your Code Fantastic

The elegance of JavaScript goes beyond what you can imagine — JavaScript, with the original purpose of inventing it, was a simple language to add some functionalities to a website. Surprisingly, nowadays, it is everywhere and far more complex. As web applications are becoming more and more complicated, JavaScript is evolving so fast as well. …

JavaScript

10 min read

9 JavaScript Tricks That Make Your Code Fantastic
9 JavaScript Tricks That Make Your Code Fantastic
JavaScript

10 min read

Yang Zhou

Yang Zhou

8K Followers

Full-Stack Engineer | Top Writer | https://twitter.com/YangZhou1993

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams