Tagged articles
variable naming
19 articles · Page 1 of 1
The uni-app mini-program compiler (alpha) incorrectly replaces `!b` with undeclared `_a_b` when a local variable is named `b`, causing a runtime ReferenceError only when specific data triggers the condition; the bug evades build, TypeScript, and ESLint checks, and is fixed by renaming the variable.
DebuggingReferenceErroralpha version
0 likes · 24 min read

The article argues that using full‑pinyin identifiers for Chinese platform names and domain concepts improves code readability, searchability, and consistency, especially when no standard English term exists, and it illustrates the point with concrete naming examples and snippets.
Chinese platformsCode Readabilitypinyin naming
0 likes · 4 min read

A recent study shows that deliberately shortening or misspelling Java variable names can reduce latency and increase throughput by up to 49%, revealing hidden performance costs in the JVM's string handling and prompting a data‑driven, selective naming strategy for high‑throughput systems.
JVMJavamicrobenchmark
0 likes · 8 min read

This guide explains Python variable naming rules, lists allowed and prohibited characters, shows legal and illegal examples, recommends snake_case style, advises on meaningful names, and outlines constant naming conventions to help you write clear and maintainable code.
Best PracticesPythoncoding style
0 likes · 7 min read

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 ReadabilityREPLunderscore
0 likes · 5 min read

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.
Coding PracticesFrameworkscode quality
0 likes · 9 min read

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

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 qualityif-elseprogramming mistakes
0 likes · 4 min read

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.
ChatGPTLowCodeVue
0 likes · 6 min read

This article collects a series of absurd and creative variable names from various sources, explains the misunderstandings behind them, and shows code snippets that illustrate why good naming matters while providing entertaining examples for developers.
code humorfunny variable namesprogramming conventions
0 likes · 6 min read

The article explains why most programming languages forbid variable names that begin with digits, covering the definition of variables, Python's naming rules, human and computer confusion caused by such names, and the impact on code readability and maintainability.
Best PracticesCode Readabilitylexical analysis
0 likes · 4 min read

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

This article explains essential clean‑code techniques for naming variables in JavaScript/TypeScript, covering self‑descriptive, pronounceable identifiers, avoiding type prefixes, using consistent terminology, eliminating unnecessary context, and replacing magic numbers and strings with meaningful constants.
Best PracticesClean CodeJavaScript
0 likes · 10 min read

The article reveals that many recent Python books mistakenly claim variable names are limited to letters, digits, and underscores, explains how Python 3 fully supports Unicode identifiers—including Chinese characters—citing official documentation, PEP 3131, and practical code examples.
Identifierspep3131programming-fundamentals
0 likes · 6 min read

The article outlines practical guidelines for naming variables and methods—emphasizing clear intent, avoiding misleading or abbreviated names, leveraging IDE autocomplete, ensuring searchability, and maintaining consistent conventions—to improve code readability, maintainability, and overall software quality.
Best PracticesClean Codecoding standards
0 likes · 8 min read

This article introduces Codelf, a free online tool and IDE plugin that helps developers generate clear, consistent variable and function names across many programming languages, explains how to use its web search, plugin installation, and extra GitHub‑project management features, and shares practical screenshots and links.
CodelfDeveloper Productivitycoding tools
0 likes · 5 min read

This article explores why descriptive variable names are crucial for Python code quality, presents practical naming principles, discusses type‑hinting through names, introduces Hungarian notation, and offers actionable tips for defining, using, and cleaning up variables to write clearer, more maintainable code.
Best PracticesPythoncode quality
0 likes · 13 min read

This article presents practical JavaScript guidelines for naming variables, structuring functions, and avoiding common pitfalls, illustrating each bad pattern with concise code examples and showing the improved, more readable alternatives to help developers write cleaner, maintainable code.
Clean CodeJavaScriptcoding standards
0 likes · 13 min read


ITPUBAug 1, 2016 · Fundamentals
This article shares practical guidelines for naming variables, methods, and classes—showing why overly long identifiers hurt readability, how to eliminate redundant words, and offering concrete before‑and‑after code examples to help developers adopt concise, expressive names.
Clean CodeCode Readabilitymethod naming
0 likes · 9 min read
