This article chronicles the origins and development of the C programming language, profiles its creators, examines its ancestors BCPL and B, explores early compiler construction, compares language features, showcases classic code examples, and highlights the enduring relevance of C in modern systems and libraries.
This article explains the concept of syntactic sugar in Java, detailing how features such as generics, auto‑boxing/unboxing, enums, inner classes, var‑args, enhanced for loops, switch with strings, conditional compilation, assertions, try‑with‑resources, and string concatenation are implemented by the compiler and why they improve code readability and safety.
This article outlines the major new features and performance enhancements introduced in PHP 8.0, including JIT compilation, named parameters, union types, attributes, match expressions, null‑safe operator, WeakMap, constructor property promotion, and numerous syntax improvements, accompanied by illustrative code examples.
This article lists essential Python standard libraries and popular third‑party packages, explains their primary functions, and provides concise code examples for modules such as datetime, zlib, and sys to help developers quickly understand and apply them in their projects.
Learn how to translate common mathematical symbols such as summation, product, factorial, conditional expressions, and matrix multiplication into clear Python code, revealing the underlying computations and helping data scientists and ML practitioners deepen their mathematical intuition through practical examples.
This tutorial introduces the strman-java library, a powerful Java 8 string utility with 23 methods—such as append, at, base64Encode, and safeTruncate—providing clear code examples, explanations of underlying Java features, and best‑practice tips for writing cleaner, more efficient code.
This article introduces Python’s lambda anonymous functions, explains their syntax and differences from regular functions, showcases practical one‑line examples, explores functional programming tools like map, filter, and reduce, and highlights how lambdas can reduce code size while enhancing readability.
This article explains what Python decorators are, how they work as closures to extend function behavior without altering source code, and provides clear examples—including basic syntax, syntactic sugar with @, execution timing, common use cases, and advanced patterns such as parameterized, multi‑decorator, and class‑based decorators.
This article explains the concept of idempotency, examines common failure scenarios such as duplicate order creation, coupon redemption, and inventory deduction, and presents practical solutions—including unique identifiers, locking, database constraints, and state‑machine approaches—accompanied by concrete SQL and pseudo‑code examples.
Backend DevelopmentCode ExamplesDistributed Systems
This article introduces Python’s sys standard library, explains its purpose, and provides clear, code‑driven walkthroughs of seven key sys functions—including exc_info, getprofile, getrecursionlimit, gettrace, setprofile, setrecursionlimit, and settrace—complete with illustrative screenshots.
This guide walks you through advanced Python string formatting techniques—including zero‑padded integers with %03d, fixed‑point floats with %.2f, and versatile %s placeholders—complete with code snippets and visual examples to help you format IDs, weights, and more efficiently.
This article explains why Python programs raise common built‑in exceptions, illustrates each with clear code examples, and shows practical techniques for catching, raising, and debugging these errors to write more robust code.
This article introduces Hutool, a popular Java utility library, explains its core purpose and extensive feature set—including encryption, HTML handling, and scheduling utilities—provides practical code examples, and shows how to integrate it via Maven or Gradle, helping developers avoid reinventing common tools.
This comprehensive tutorial introduces Python, explains its uses in web development, IoT, and machine learning, guides you through installation, IDE selection, Jupyter Notebook setup, and covers core concepts such as variables, data types, operators, control flow, functions, modules, file handling, and more, complete with code examples and visual illustrations.
This article provides a comprehensive overview of Java's exception hierarchy, key keywords, handling techniques, common interview questions, and best‑practice guidelines, illustrating concepts with numerous code examples to help developers write robust and maintainable backend code.
This extensive Swift tutorial introduces the language’s fundamentals—including variables, constants, control flow, functions, closures, enums, and memory management—while providing detailed code examples and explanations of advanced concepts such as protocols, generics, and ARC, making it a complete guide for iOS and macOS developers.
This article ranks the ten most counter‑intuitive Java language features that often trap developers, explains why they behave unexpectedly, and provides clear code examples and fixes to help programmers write safer, more predictable code.
This article introduces Python’s magic methods, explains their purposes and usage, provides a comprehensive table of common dunder methods, and demonstrates practical examples—including object creation, attribute handling, container behavior, and context management—to help developers master these powerful language features.
This article summarizes the key changes in the new Go generics design draft, explaining type constraints, multiple type parameters, type lists, generic structs, and method‑based constraints, and includes practical Go code snippets to illustrate each feature.
This article explains PHP's preg_replace function, detailing its purpose, parameter list, return values, and provides three practical code examples that illustrate pattern matching, multiple replacements, and usage of limit and count options.
This article examines when Java's finally block executes, explores cases where it may be skipped, analyzes its interaction with return statements and exceptions, and demonstrates how return values are affected through multiple code examples.
Wenyan‑lang is an open‑source programming language that uses only Classical Chinese characters for source code, compiles to JavaScript or Python, and provides a full set of language constructs such as variables, control flow, operations, containers, and functions illustrated with clear code examples.
This tutorial introduces Python's standard turtle graphics library, explains its drawing principles, details core commands for window setup, movement, direction, and pen control, and provides ten illustrated code examples ranging from basic shapes to complex patterns.
This guide explains HTML form elements, common attributes like readonly, disabled, and required, and demonstrates how to build functional forms with code snippets, including input types, labels, and form association techniques for effective data submission.
This article explains four practical ways the underscore (_) is used in Python—retrieving the last expression result, discarding unwanted values, marking private module members, and improving readability of large numeric literals—with clear code examples.
This article explains how Python’s for loops work, introduces list comprehensions as a concise alternative, compares their performance and readability, and provides numerous code examples—including dictionary, set, and multi‑loop comprehensions with conditional logic—to help developers write clearer, more efficient code.
This article walks through ten frequent Python gotchas—from mutable default arguments and for‑else usage to dictionary key hashing, proper if checks, lazy‑evaluation closures, path handling, eval quirks, while loop nuances, multiline strings, and requests encoding—providing clear explanations and corrected code examples.
Wenyan‑lang, a novel programming language created by a Carnegie Mellon senior, lets developers write code using only traditional Chinese characters and punctuation, offering a unique way to express variables, control flow, functions, and data structures with side‑by‑side JavaScript equivalents illustrated throughout the article.
This article clarifies the long‑standing confusion about whether Java uses pass‑by‑value or pass‑by‑reference by defining the concepts, distinguishing actual and formal parameters, and demonstrating with primitive and object examples that Java always passes arguments by value, using the reference as the value for objects.
This article presents seven practical Python scripts—from scraping Zhihu images and chatting bots to poetry author detection, lottery generation, auto‑drafting apologies, screen recording, and GIF creation—showcasing how to quickly automate diverse tasks without reinventing the wheel.
This article explores a collection of useful yet often overlooked Python features—including functions with arbitrary arguments, file searching with glob, debugging with inspect, generating unique IDs, serialization, compression, and registering shutdown hooks—providing clear code examples and practical explanations for each.
This tutorial explains Python's built‑in dictionary type, covering how to create dictionaries with braces or the dict function, access values via keys or get(), and perform update, addition, and deletion operations using methods like update(), pop(), popitem() and clear().
This guide introduces the Hutool Java utility library, showing how to install it via Maven and demonstrating key utility classes such as Convert, DateUtil, StrUtil, ReflectUtil, and more with practical code examples for backend development.
This article explains Python’s arithmetic, comparison, assignment, logical, membership, identity, and bitwise operators, demonstrates their usage with example code, and outlines operator precedence, providing clear outputs for each operation in a concise tutorial format.
The latest Java Development Handbook introduces 21 new coding rules, revises over a hundred guidelines, and adds clearer examples on lock handling, switch‑null checks, floating‑point comparisons, collection conversions, and guard statements, while inviting developers to download the free PDF and join a live discussion.
This article presents ten core Python interview questions covering class inheritance, callable objects, object creation, data structures, variable swapping, attribute handling, package imports, closures, and common pitfalls, each accompanied by concise code examples and explanations to help candidates prepare effectively.
This article introduces Scala arrays, covering their declaration, element access, multidimensional arrays, common operations such as iteration, summation, finding maximum values, concatenation, range creation, and a comprehensive list of array methods, all illustrated with clear code examples.
This article explains how recursion works in Python, demonstrates factorial and list‑flattening implementations, shows how to check and adjust the language's recursion limit, and warns about infinite recursion errors with clear code samples.
This article provides a comprehensive overview of deep learning, covering its definition, fundamental machine‑learning components, illustrative examples such as hot‑dog classification and house‑price prediction, the mathematics of cost functions and gradient descent, back‑propagation via the chain rule, and practical resources and code snippets using Torch.
This article explains the Python abs() and fabs() functions, detailing their usage, syntax, parameters, return values, and examples for calculating absolute values of numbers, including handling complex numbers with abs() and float/integer types with fabs().
This article introduces Python's regular expression engine, explains the syntax of regex patterns, lists special metacharacters, and demonstrates core re module functions such as compile, match, search, findall, finditer, split, and sub with practical code examples.
This comprehensive guide explains C language operators—including arithmetic, relational, logical, assignment, comma, and sizeof—detailing their types, precedence, associativity, and usage with clear examples and code snippets to help you write correct and efficient expressions.
This article compiles ten frequently asked Python interview questions, covering class inheritance, special methods like __call__, object creation with __new__, list and dictionary comprehensions, variable scope, swapping variables, default method handling via __getattr__, package exports, closures, and string concatenation performance, each illustrated with code examples and concise explanations.
Despite its reputation for oddities and browser inconsistencies, JavaScript has evolved with ES6 features like default parameters, arrow functions, template literals, destructuring, and more, making it expressive and efficient; this article explores those quirks and explains why the author prefers JavaScript for modern development.
This article presents twelve practical Python techniques—including regex substitution, directory traversal, list sorting, deduplication, dictionary sorting, data type conversions, datetime handling, command‑line parsing, formatted printing, base conversion, system command execution, and file I/O—complete with ready‑to‑run code examples for each.
This tutorial explains how variables act as named placeholders for data, demonstrates assigning numeric values, performing arithmetic, and concatenating strings through clear Python code snippets, and shows the expected output for each example to help beginners grasp variable usage.
The article explains that a programming language serves as a system to encode, name, and organize algorithms, discusses the misuse of the term “algorithm,” illustrates classic algorithms like Dijkstra’s and Euclid’s with code examples in Forth, PostScript, and Python, and emphasizes the DRY principle and efficiency concerns in software development.
This article presents a curated list of 24 essential PHP libraries, ranging from micro‑frameworks and routing tools to image processing, validation, and command‑line wrappers, each accompanied by concise descriptions and practical code snippets for quick integration.
Apple’s Swift language, introduced at WWDC 2014, offers a modern, LLVM‑compiled syntax with playgrounds, optional typing, clear variable and constant declarations, robust control‑flow constructs, first‑class functions and closures, class inheritance, protocols, extensions, generics, and safe optional handling, making development for macOS and iOS both expressive and less error‑prone.