Tag

variable naming

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Mar 7, 2025 · Fundamentals

Unlock Python’s Secret: Master the Underscore (_) for Cleaner Code

This guide explores the versatile underscore '_' in Python, showing how to discard unwanted variables, simplify loops, improve numeric readability, leverage REPL shortcuts, and why using it as a regular variable is discouraged.

Code readabilityPythonREPL
0 likes · 5 min read
Unlock Python’s Secret: Master the Underscore (_) for Cleaner Code
Java Tech Enthusiast
Java Tech Enthusiast
Oct 26, 2024 · Fundamentals

12 Coding Habits That Reduce Code Readability and Increase Maintenance Difficulty

The article outlines twelve harmful coding habits—such as excessive microservice splitting, incomplete refactoring, overly long methods, deep nesting, random variable names, inaccurate or outdated comments, duplicated code, ignoring specifications, missing logging, over‑engineered frameworks, and reinventing wheels—that degrade readability, complicate maintenance, increase bugs, and hurt team productivity.

CommentsFrameworksLogging
0 likes · 9 min read
12 Coding Habits That Reduce Code Readability and Increase Maintenance Difficulty
macrozheng
macrozheng
Dec 24, 2023 · Fundamentals

Master Defensive Programming: Unconventional Naming Tricks & OOP Hacks

This article revisits defensive programming, explores quirky variable‑naming techniques—including single‑character, Chinese, and multilingual identifiers—and humorously breaks down core OOP concepts while stressing the developer’s irreplaceable role in modern software projects.

JavaOOPdefensive programming
0 likes · 7 min read
Master Defensive Programming: Unconventional Naming Tricks & OOP Hacks
Architecture Digest
Architecture Digest
Sep 6, 2023 · Fundamentals

Common Programming Mistakes and the Lessons They Teach

This article reviews a series of typical programming blunders—such as incorrect local file includes, misuse of obscure characters, over‑reliance on long if‑else chains, meaningless variable names, hard‑coded outputs, thread‑sleep misuse, and missing return statements—highlighting the practical lessons each mistake provides for developers.

code qualitydebuggingif-else
0 likes · 4 min read
Common Programming Mistakes and the Lessons They Teach
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 29, 2023 · Frontend Development

Integrating ChatGPT with a Low‑code Plugin for Automatic Variable Naming and Code Generation

This article explains how to embed the ChatGPT API into a low‑code development plugin to automatically translate Chinese variable names into English, preset Prompt templates, and generate fully typed Vue code for CRUD pages, complete with code examples and configuration steps.

ChatGPTVuecode generation
0 likes · 6 min read
Integrating ChatGPT with a Low‑code Plugin for Automatic Variable Naming and Code Generation
IT Services Circle
IT Services Circle
Jun 27, 2022 · Fundamentals

Understanding the Cyrillic Variable Name е vs Latin e in Python

This article explains how the Cyrillic character е looks identical to the Latin e, why using it as a Python variable leads to NameError, demonstrates the Unicode code point differences, and warns about the potential bugs when unintentionally mixing these characters in code.

CyrillicPythonUnicode
0 likes · 3 min read
Understanding the Cyrillic Variable Name е vs Latin e in Python