This article explains that Java fundamentally uses pass‑by‑value for method parameters, distinguishing between primitive value types stored on the stack and reference types whose references are passed, and demonstrates the behavior with code examples that clarify why apparent reference passing is actually passing a copy of the reference.
This article presents thirty concise Python tasks and code snippets that demonstrate practical techniques—from checking duplicates and measuring memory usage to manipulating strings, lists, dictionaries, and control flow—offering beginners and seasoned developers quick, hands‑on examples to deepen their understanding of core language features.
This article introduces powerful IDE code‑completion shortcuts and demonstrates how to use fundamental control‑flow constructs such as if, switch, while, for loops, variable definitions, and common statements like return, print, try‑catch and throw in PHP/Java, providing code examples to boost development efficiency.
This article explains Java exception handling by distinguishing checked and unchecked exceptions, demonstrates compilation outcomes for different exception types, and provides practical guidelines, code examples, and best practices for declaring, catching, and throwing exceptions in Java programs.
This article explains Java's Iterator API, detailing its three core methods (hasNext, next, remove), the underlying cursor mechanism, typical use cases for traversing collections, and how to avoid ConcurrentModificationException through proper removal techniques and thread‑safe containers.
This article introduces the fundamentals of object‑oriented programming in Python, contrasting procedural and OOP approaches, explaining classes, objects, their attributes and methods, and provides step‑by‑step code examples—including class definition, object creation, method invocation, and property manipulation—to help beginners grasp OOP concepts.
This article explains how Java's post‑ and pre‑increment operators affect variable values by tracing each statement through the JVM's stack frame, local variable table, and operand stack, and demonstrates the resulting values of i, j, and k with detailed diagrams and code examples.
This article explains why many systems display the date 1970‑01‑01, demonstrates how to reproduce it with Java code, and traces the historical development of the Unix timestamp from its 1971 inception to the modern 1970 epoch standard.
This tutorial walks through Python's core data types—including numeric, container, and string objects—demonstrates common operations and examples such as hexadecimal literals, list manipulation, 99 multiplication table, regex password checks, and shows how to define custom classes, attributes, methods, and properties for clean, object‑oriented code.
This article introduces Python’s core data structures—lists, tuples, and dictionaries—explaining their definitions, indexing, slicing, iteration, modification, and common operations, and provides clear code examples for creating, accessing, updating, and deleting elements, helping beginners deepen their programming fundamentals.
This article explains the concept of functions in Python, covering built‑in functions, how to create custom functions, and demonstrates examples of parameter‑less, parameterized, and return‑value functions with clear code snippets.
This article explains Python functions, covering their definition, basic usage, polymorphism, nested functions, variable scope, global and nonlocal keywords, and closures, with clear examples and code snippets illustrating each concept for beginners.
This article explains regular expressions, covering their definition, basic matching, metacharacters, character sets, quantifiers, grouping, alternation, escaping, anchors, zero‑width assertions, flags, and greedy versus lazy matching, with clear examples and online practice links.
The article examines why a small fraction of developers earn six‑figure salaries while many remain average, outlining seven decisive abilities—raw coding, debugging, simplicity, accurate schedule prediction, low‑level system knowledge, strict key‑design focus, and avoiding perfectionism—that together create a massive performance gap.
This article shares practical advice on improving a programmer's design ability, covering coding practice, theory study, hands‑on implementation, revisiting concepts, summarizing lessons, sharing knowledge, and additional tips such as designing before coding and avoiding blind reliance on patterns.
The article uses the simple task of buying apples to illustrate why programming is challenging, highlighting the need for thorough analysis, exhaustive testing, handling edge cases, and continuously refining processes to avoid bugs and unexpected failures.
This guide outlines a comprehensive learning path for C and C++ covering essential language concepts, core computer science fundamentals, practical Linux development tools, and recommended resources to help beginners transition into backend development roles.
This article explains why the Java main method must be declared public, static, and void, covering its role as the program entry point, the JVM's requirements, and additional modifiers and variations such as varargs and strictfp.
This article explains the origins of garbage collection, illustrates common memory‑management pitfalls with C‑style malloc/free examples, introduces reference‑counting fundamentals, shows how cyclic references break the algorithm, and compares programmer‑assisted versus runtime solutions while highlighting their trade‑offs.
This article explains why Java remains a popular, easy-to-learn, and career‑boosting programming language, outlines its real‑world advantages, and provides a step‑by‑step roadmap with core concepts, tools, and practice tips for beginners.
An 8‑year‑old Shanghai student named Vita has become a viral coding teacher on Bilibili, using Swift Playgrounds to create beginner‑friendly programming lessons that attract tens of thousands of viewers and demonstrate how games can spark children’s interest in coding.
Swift Playgroundschildren programmingcoding education
This article chronicles twenty pivotal pieces of code—from the 1725 binary punched cards to the 2008 Bitcoin protocol—illustrating how each breakthrough reshaped technology, influenced society, and highlighted both the power and perils of software development.
This article clarifies the long‑standing confusion about whether Java uses pass‑by‑value or pass‑by‑reference by defining both concepts, explaining the roles of actual and formal parameters, illustrating with primitive and object examples, and showing why Java is technically pass‑by‑value even for reference types.
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 explains the subtle difference between concurrency and parallelism using a ground‑hog and cart analogy, shows how task decomposition creates concurrent pipelines, and maps the model to scalable web‑service architecture, referencing Rob Pike’s talk “Concurrency is not Parallelism”.
This guide lists the 17 most frequent Python runtime and syntax errors that new programmers encounter, explains why each occurs, and provides clear code examples of both the faulty and corrected versions to help readers quickly diagnose and fix their own scripts.
This article provides a comprehensive introduction to the Java Virtual Machine’s memory architecture, detailing the five runtime areas—Program Counter, JVM Stack, Native Method Stack, Heap, and Method Area—their thread scope, memory allocation, garbage‑collection behavior, and common errors such as OutOfMemoryError and StackOverflowError.
This guide explains how to use Vim macros to record and replay sequences of commands, enabling you to quickly repeat text insertion, generate numbered lists, or prepend identical strings to multiple lines, dramatically reducing manual editing effort.
The article argues that programmers should devote the majority of their limited time to mastering transferable fundamentals such as clean code, design patterns, and domain‑driven design, while allocating only a small portion to learning ever‑changing frameworks and tools, illustrated through a mentor dialogue and book recommendations.
This article explains how to write concise, readable Python code by illustrating eleven practical techniques—such as using dictionary defaults, iterating with iteritems, leveraging implicit boolean checks, and applying set operations—while referencing the Zen of Python, PEP 8, and Google style guidelines.
This article explains why clean code matters—reducing reading time, easing project continuation, speeding up new‑developer onboarding, and supporting consistent coding patterns—and provides six practical tips, from readable formatting to regular code reviews, to help developers produce cleaner, more maintainable software.
The article shares practical strategies for programmers to boost efficiency, emphasizing solid fundamentals, thorough documentation reading, thoughtful planning with sketches, disciplined task lists, regular reflection, focused work sessions, healthy sleep and exercise, and dedicated learning time to overcome common productivity anxieties.
This article provides a comprehensive guide to regular expressions, covering basic concepts, character classes, quantifiers, special symbols, greedy vs. lazy matching, backreferences, lookahead/lookbehind assertions, and practical tips for writing robust patterns in programming.
This article provides concise explanations, real‑world usage tips, and visual illustrations for 23 classic design patterns—including structural, creational, and behavioral patterns—helping developers understand when and how to apply each pattern in everyday Java projects.
This article introduces Scala’s built‑in data types, explains their characteristics, and demonstrates how to write various literals—including integers, floating‑point numbers, booleans, symbols, characters, strings, multi‑line strings, and null values—while also covering escape sequences and example code.
This article explains the concepts of variables and constants in Scala, describes how to declare them using 'var' and 'val', outlines type declaration syntax, demonstrates type inference, and shows examples of multiple variable declarations and tuple assignments.
This article explains Scala's access modifiers—private, protected, and public—including their default visibility, stricter rules compared to Java, scoped protection syntax, and multiple code examples illustrating how these modifiers affect member accessibility in nested and package structures.
This article explains the core concepts of object‑oriented programming for Java beginners, covering the relationship between classes and objects, the four OOP principles, comparisons with procedural design, memory layout, and includes practical code examples to illustrate how to model real‑world entities in software.
This article explains Python's regular expression special characters—such as \d, +, ?, {n}, and []—detailing their meanings, greedy vs. non‑greedy behavior, and how to use quantifiers and character classes effectively, complemented by illustrative examples and images.
This article provides a concise tutorial on Python regular expression special characters, detailing the meaning and usage of symbols such as \d, ?, +, {n}, |, and others, illustrated with examples and images, helping readers quickly grasp how to match digits, whitespace, word characters, and more in pattern matching.
This article explains the fundamental differences between Go arrays and slices, describes their memory layout and value semantics, illustrates various slice declaration forms, and details the rules governing slice capacity growth with example code and visual diagrams.
This article introduces essential programming fundamentals, covering Unix system architecture, the distinction between system calls and library functions, user and kernel modes, the execution flow of a simple hello‑world program, and core concepts such as processes, threads, coroutines, and parent‑child process sharing.
This article explains the differences between Python's @classmethod and @staticmethod decorators, demonstrating their usage through practical examples with a Date class.
This article explains Java variables, covering their definition, data types (primitive and reference), naming conventions, value assignment, automatic widening conversions, explicit casting, and string‑numeric conversions, illustrated with clear code examples.
This article provides a comprehensive overview of Python, covering its nature as an interpreted, interactive, object‑oriented language, key benefits, coding conventions, memory management, debugging tools, core concepts like decorators, data structures, namespaces, lambda functions, testing, and many practical programming details for newcomers.
This guide explains Python's slice() function, its syntax and parameters, and demonstrates how to use simple and advanced slicing techniques on lists, tuples, strings, and Unicode sequences with clear code examples.
This article explains Python's built-in all() and any() functions, detailing their purpose, syntax, return values, and providing illustrative examples for lists, tuples, and empty iterables, highlighting behavior with truthy and falsy elements.
This article explains Python's built‑in min() and max() functions, covering their syntax, parameters, return values, basic usage examples, and advanced techniques such as key functions, handling iterables, and finding extreme values in dictionaries.
This article explains why loop statements exist, outlines Python's for and while loops (noting the absence of do‑while), compares loop types, and details Python's loop control statements—break, continue, and pass—providing a concise foundation for writing efficient repetitive code.
The article narrates a seven‑day mythic saga where God bestows programming concepts—assembly, functions, data structures, objects, classes, inheritance, polymorphism, and design patterns—on humanity, illustrating how each breakthrough transformed code from tangled sequences into organized, reusable, and abstracted software.
This article explains the importance of Java generics, demonstrates common pitfalls with raw collections, shows how generics provide compile‑time type safety, and covers generic classes, interfaces, wildcards, methods, bounds, and array usage with clear code examples.
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.
This article explains how Java packages are created with the package statement, how they organize classes into namespaces, how to import and use them in code, and how to configure the classpath for compilation and execution, providing practical examples and code snippets.
This article explains Java encapsulation and interfaces, illustrating how access modifiers like public and private control object members, improve usability and safety, and provides a complete code example with a Human class, usage guidelines, and a practical exercise.
This article explains the concept, purpose, and internal architecture of the Java Virtual Machine, compares Java and C program execution, and describes the JVM's class loader, execution engine, and garbage collection subsystems with illustrative code examples and diagrams.
This article explains the core concepts of object‑oriented programming in Java, covering the relationship between classes and objects, the four OOP principles, comparisons with procedural programming, illustrative Gomoku game code, and how Java’s stack and heap memory model underpins references and object instantiation.
This article outlines the essential technical abilities a software engineer should develop, ranging from understanding computation models and efficient data handling to mastering programming languages, system architecture, testing, and tooling, providing a comprehensive roadmap for building robust, scalable software solutions.
This article explains the characteristics of abstract classes and interfaces in Java, compares them across multiple dimensions, provides code examples, and offers guidance on choosing the appropriate construct based on default implementations, inheritance needs, and future changes.
The article reflects on a decade of programming experience to demystify object‑oriented programming, arguing that OOP should be taught as a practical tool for reducing complexity rather than an abstract doctrine, and discusses how to organize functions into classes, avoid misuse of inheritance and design patterns, and focus on solving real problems.
The author reflects on years of programming experience, urging beginners to master core computer science subjects such as discrete math, algorithms, operating systems, and architecture, arguing that solid fundamentals prevent costly missteps when later learning frameworks like .NET, Java, or web technologies.
The article emphasizes that mastering core computer science subjects such as discrete mathematics, algorithms, operating systems, computer architecture, and compilers is essential for building solid programming skills and avoiding future difficulties when learning higher‑level frameworks and languages.
This article explains the concept of immutable objects in Java, using String as a case study, clarifies the difference between object references and objects, examines String’s internal fields across JDK versions, demonstrates how typical mutating methods actually create new instances, and shows how reflection can bypass immutability.
This article introduces Python's string formatting operators, explains how %r converts values to strings and %d formats integers, and demonstrates their usage with concrete code examples and output, guiding beginners through building formatted messages step by step.
This article presents a comprehensive, visual overview of core Python concepts—including basic syntax, data types, control flow, file handling, exceptions, functions, modules, and object‑oriented programming—organized as a series of mind‑map diagrams to aid beginners in structured learning and deeper understanding.
An in‑depth Python learning guide presents a series of mind‑map visualizations covering fundamentals, data types, control flow, file handling, error management, functions, modules, and object‑oriented programming, alongside personal study insights, migration resources from Python 2 to 3, and downloadable PDF notes.
This article explains the purpose of Java's ThreadLocal class, shows a practical example with code and output images, compares it to synchronized locking, and demonstrates how ThreadLocal provides each thread with an independent variable copy for safe concurrent access.
This article presents concise, one‑sentence summaries of common design patterns—Simple Factory, Factory Method, Abstract Factory, Builder, Prototype, Singleton, Adapter, Bridge, Composite, Facade, Flyweight, Decorator, and Proxy—offering quick insights for beginners to form an initial impression and for experienced developers to refresh their knowledge.
Drawing from years of personal experience, this guide shares eight practical strategies—ranging from deep reading of a single book and meticulous code inspection to leveraging official documentation, regular practice, and version control—that help beginners avoid common pitfalls and steadily progress in learning Python.
This article explains Python iterators and generators, compares their memory usage and performance, shows how to implement them with Fibonacci examples, and introduces generator expressions as a concise alternative to list comprehensions for handling large data streams.
This guide explains why Python's clear syntax and powerful libraries make it perfect for newcomers, offers practical steps like downloading the interpreter, choosing IDEs, selecting beginner books, joining discussion groups, coding daily, and leveraging existing packages to accelerate learning.
This article explains Python's conditional and loop statements—including if, elif, else, while, for, break, continue, and pass—detailing their syntax, logical operators, execution flow, and visual diagrams, while also showing practical code examples and output illustrations to help beginners master control structures.
This tutorial introduces Python lists, explaining how to create them, add and remove elements using various methods, and leverage list comprehensions for concise transformations, providing clear examples and visual illustrations to help beginners quickly master list operations in Python.
This article presents two common interview questions—one on FTP login methods and commands, and another on Python memory management mechanisms—providing detailed explanations and answers to help programmers improve their interview performance and understand underlying concepts.
Learn how Python’s break statement works to terminate loops, its behavior in while and for constructs, handling of nested loops, and see clear syntax, flowchart, and example outputs that illustrate its practical use in controlling program flow.
This concise guide explains how Python supports nesting loops, shows the exact syntax for embedding for‑loops inside while‑loops and vice versa, and provides a complete example that prints all prime numbers between 2 and 100, complete with output screenshots.
This article introduces Python's loop constructs, detailing the differences between for and while loops, how to nest loops, and the use of control statements like break, continue, and pass to manage loop execution flow.
This article provides a comprehensive overview of Python operators, covering arithmetic, comparison, assignment, logical, bitwise, membership, identity operators, and their precedence, illustrated with clear examples and output screenshots to help readers understand how each operator works in practice.
This article introduces Python operators, defining operands and operators, and systematically covers arithmetic, comparison, assignment, logical, bitwise, membership, identity operators, as well as operator precedence, providing clear examples and output illustrations for each category.
This article explains why scripting languages—especially Python—offer higher productivity than C, compares Python to Bash, Perl and other languages, and provides practical steps and resources for beginners to start learning Python effectively.
The author reflects on two years of systematic Python study, identifies why motivation wanes during advanced learning, and outlines four practical strategies—localization, increased practice, focused review, and real‑world application—along with a detailed study plan to regain momentum.
This article systematically outlines the six-step process for defining complete Java class methods, covering access modifiers, static and abstract keywords, return types, naming conventions, parameter lists, method bodies, as well as method overloading, overriding, and various invocation techniques.
The author reflects on a programmer's focus on web, distributed systems, and data processing, arguing that deep, continuous investment in fundamentals—such as algorithms, networking, and OS concepts—drives lasting skill growth, better project outcomes, and a healthier professional mindset.
data processingknowledge acquisitionprogramming fundamentals
A developer survey of 4,500 programmers reveals that naming variables, classes, and functions is perceived as the biggest programming challenge, highlighting its impact on code readability, design quality, and maintenance, and underscoring the art and difficulty of choosing concise, meaningful identifiers.
This article offers practical, step‑by‑step advice for newcomers on how to efficiently explore, understand, and navigate large codebases by focusing on file structure, incremental reading, note‑taking, and targeted deep dives while avoiding common pitfalls.
Best Practicescodebase navigationdeveloper onboarding
The article argues that deep mastery of programming fundamentals, guided by classic textbooks and a focused career path, is essential for long‑term success, and it explains how personal branding, positioning, and promotion amplify a developer's professional impact.
This article explains five common types of programming comments that hinder readability—such as self‑promoting tags, outdated code blocks, redundant explanations, irrelevant stories, and lingering TODOs—and offers practical advice on how to avoid them.
MD5 is a one‑way hash, not an encryption method, and its 128‑bit output cannot be mathematically reversed; understanding this requires solid algorithmic and mathematical foundations, which the author argues are essential for programmers alongside broader theoretical knowledge rather than relying on mere trial‑and‑error experience.
This article provides a comprehensive, English-language reference of common regular expression metacharacters, explaining their meanings, usage rules, and examples for pattern matching in programming languages such as JavaScript.
Software bugs are often whimsically named after famous scientists, with Bohrbug representing reproducible errors, Heisenbug describing elusive issues that disappear under observation, Mandelbug denoting complex, chaotic faults, and Schroedinbug reflecting paradoxical bugs that seem both present and absent, each illustrating distinct debugging challenges.