Tagged articles
comments
18 articles · Page 1 of 1
This tutorial walks you through installing the JDK, creating a HelloJava.java source file with Notepad, compiling it using javac, running it with the java interpreter, and explains the basic structure, comments, class definition, and main method of a Java program.
CommandLineHelloWorldJDK
0 likes · 12 min read

This article explains the importance of comments in Python, describing how they improve code readability for collaborators and future maintenance, and outlines the two comment styles—single‑line with # and multi‑line with triple quotes—along with practical examples.
Code ReadabilityPythoncomments
0 likes · 3 min read

This article explains Java’s three comment types, highlights a surprising case where a line starting with // still runs due to a Unicode escape sequence, and shows how the compiler processes \u000d to execute the code.
Backendcommentsjavadoc
0 likes · 3 min read

This guide explains what comments are in Python, shows how to write single‑line and multi‑line comments using the # symbol, warns against misuse of triple quotes, covers docstring usage, and provides IDE shortcut keys for efficient commenting.
Best PracticesDocstringsIDE shortcuts
0 likes · 7 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


21CTOAug 26, 2024 · Fundamentals
This article outlines six practical Python coding habits—including following PEP 8, using the latest version, commenting effectively, employing linters, leveraging built‑in functions and libraries, and fixing issues promptly—to help developers write clean, maintainable, and error‑free code.
PEP 8Pythonbuilt-in functions
0 likes · 9 min read

This article explains how C's /* */ and // comment delimiters work, shows edge cases where they appear inside strings, macros, or line continuations, and provides concrete code examples illustrating correct and incorrect usages along with the compiler errors they may trigger.
C++codecomments
0 likes · 4 min read

This article explores the trade‑offs between efficiency, readability and maintainability in software development, presents common naming conventions and best‑practice guidelines for Java, discusses proper use of comments, and introduces advanced language constructs such as records, sealed classes and the upcoming Valhalla project.
Code styleImmutable ObjectsJava
0 likes · 29 min read

This comprehensive guide explores Java naming standards, comment strategies, class and method design, and practical patterns—covering everything from basic conventions to advanced features like sealed classes, value types, and immutable objects—to help developers write more readable, maintainable, and scalable code.
Best PracticesCode styleJava
0 likes · 29 min read

This article explores the core principles of clean code—including effective naming, purposeful comments, single‑responsibility functions, proper abstraction levels, and essential testing practices—illustrated with concrete code examples and actionable guidelines for writing more readable, maintainable software.
Clean Codecommentsfunctions
0 likes · 10 min read

This guide explains how to embed dynamic comments into a static Hugo blog by leveraging Hugo's getJSON function, the Waline comment service, and Vercel deploy hooks to fetch, render, and update comment data during site builds, achieving fast, cache‑friendly performance without sacrificing user experience.
HugoVercelWaline
0 likes · 9 min read

This article explains how to locate Weibo comment APIs, work around rate limits by using the mobile site, extract required parameters, and implement a Python script that handles cookies, pagination, emoji cleaning, deduplication, and scheduled execution to collect comments efficiently.
PythonWeiboautomation
0 likes · 5 min read

This article explains how to identify and remove YAGNI code smells, discusses when comments are helpful versus harmful, and provides practical guidelines for conducting efficient code reviews to improve software quality and maintainability.
YAGNIcommentsrefactoring
0 likes · 9 min read

This guide walks you through using Python's requests library to scrape QQ Music, showing how to retrieve a song’s ID, fetch its lyrics, and extract the top comments, complete with code snippets and step‑by‑step explanations.
Pythoncommentslyrics
0 likes · 8 min read

The article explains how to write clean, expressive code by defining dirty versus clean code, presenting expert guidelines on naming, commenting, function design, and testing, and illustrating each point with concrete good and bad code examples.
Clean Codecommentsfunctions
0 likes · 11 min read

This tutorial walks through Python’s arithmetic and comparison operators, shows exact code snippets and their outputs, explains why Boolean results appear as True or False, and then introduces single‑line and multi‑line comment syntax with clear demonstrations.
PythonTutorialbasics
0 likes · 4 min read

This tutorial walks through using Python and browser developer tools to locate, decode, and retrieve the hot comments from NetEase Cloud Music's hot song chart, including extracting song IDs, handling encrypted request parameters, and applying regex to gather song metadata.
APINetEase Cloud MusicPython
0 likes · 9 min read

This tutorial walks you through Python fundamentals, covering interactive and script programming, identifiers, reserved keywords, indentation rules, multi‑line statements, string quoting, comments, blank lines, user input, multiple statements per line, code blocks, and command‑line arguments, with clear examples and code snippets.
IdentifiersPythoncomments
0 likes · 9 min read
