Tagged articles
345 articles
Page 4 of 4
MaGe Linux Operations
MaGe Linux Operations
Oct 25, 2020 · Fundamentals

Master Python Decorators: From Basics to Advanced Usage

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.

Code Examplesclosuredecorators
0 likes · 9 min read
Master Python Decorators: From Basics to Advanced Usage
Tuhu Marketing Technology Team
Tuhu Marketing Technology Team
Oct 10, 2020 · Backend Development

Ensuring Idempotency in Distributed Systems: Strategies and Code Samples

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.

Code ExamplesDistributed SystemsIdempotency
0 likes · 12 min read
Ensuring Idempotency in Distributed Systems: Strategies and Code Samples
Programmer DD
Programmer DD
Sep 1, 2020 · Backend Development

How Hutool Transforms Java Development: A Complete Guide

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.

Code ExamplesUtility Libraryhutool
0 likes · 8 min read
How Hutool Transforms Java Development: A Complete Guide
MaGe Linux Operations
MaGe Linux Operations
Aug 21, 2020 · Fundamentals

Why Python? A Complete Beginner’s Guide to Mastering the Language

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.

BeginnerCode ExamplesIDE
0 likes · 61 min read
Why Python? A Complete Beginner’s Guide to Mastering the Language
Selected Java Interview Questions
Selected Java Interview Questions
Aug 9, 2020 · Backend Development

Java Exception Architecture, Keywords, Handling, and Common Interview Questions

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.

Code Examplesbackend-developmentinterview-questions
0 likes · 33 min read
Java Exception Architecture, Keywords, Handling, and Common Interview Questions
Wukong Talks Architecture
Wukong Talks Architecture
Jul 29, 2020 · Mobile Development

Comprehensive Swift Language Tutorial: Basics, Syntax, and Advanced Features

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.

Code ExamplesMobile DevelopmentSwift
0 likes · 40 min read
Comprehensive Swift Language Tutorial: Basics, Syntax, and Advanced Features
Programmer DD
Programmer DD
Jul 10, 2020 · Fundamentals

Top 10 Surprising Java Pitfalls Every Developer Should Avoid

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.

Code ExamplesPitfallscommon mistakes
0 likes · 11 min read
Top 10 Surprising Java Pitfalls Every Developer Should Avoid
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 3, 2020 · Fundamentals

Unlock Python’s Power: A Practical Guide to Magic Methods

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.

Code ExamplesObject-OrientedPython
0 likes · 14 min read
Unlock Python’s Power: A Practical Guide to Magic Methods
Laravel Tech Community
Laravel Tech Community
Jun 9, 2020 · Fundamentals

Introducing Wenyan‑lang: A Classical Chinese Syntax Programming Language

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.

Code ExamplesJavaScriptProgramming Language
0 likes · 5 min read
Introducing Wenyan‑lang: A Classical Chinese Syntax Programming Language
Lin is Dream
Lin is Dream
May 14, 2020 · Frontend Development

Master HTML Forms: Elements, Attributes, and Practical Code Examples

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.

AttributesCode ExamplesForms
0 likes · 5 min read
Master HTML Forms: Elements, Attributes, and Practical Code Examples
Laravel Tech Community
Laravel Tech Community
Apr 22, 2020 · Backend Development

Unlock PHP 7.4: 7 Powerful Features to Simplify Your Code

This article introduces seven new PHP 7.4 features—including typed properties, arrow functions, array unpacking, null‑coalescing assignment, numeric separators, array‑based strip_tags, and the deprecated money_format replacement—providing concise code examples and practical usage tips for developers.

BackendCode ExamplesNew Features
0 likes · 3 min read
Unlock PHP 7.4: 7 Powerful Features to Simplify Your Code
MaGe Linux Operations
MaGe Linux Operations
Mar 5, 2020 · Fundamentals

Unlocking Python’s Underscore: 4 Powerful Uses You Should Know

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.

Code ExamplesPythonprogramming basics
0 likes · 5 min read
Unlocking Python’s Underscore: 4 Powerful Uses You Should Know
ITPUB
ITPUB
Feb 21, 2020 · Fundamentals

Boost Python Skills: For Loops vs List Comprehensions Explained

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.

Code Examplesfor looplist-comprehension
0 likes · 8 min read
Boost Python Skills: For Loops vs List Comprehensions Explained
MaGe Linux Operations
MaGe Linux Operations
Feb 18, 2020 · Fundamentals

10 Common Python Pitfalls and How to Avoid Them

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.

Code ExamplesPitfallsTutorial
0 likes · 10 min read
10 Common Python Pitfalls and How to Avoid Them
Programmer DD
Programmer DD
Dec 29, 2019 · Fundamentals

Explore Wenyan‑lang: The Chinese‑Only Programming Language Without English Syntax

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.

Code ExamplesProgramming Languagechinese-syntax
0 likes · 6 min read
Explore Wenyan‑lang: The Chinese‑Only Programming Language Without English Syntax
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 5, 2019 · Fundamentals

Understanding Java: Pass‑by‑Value vs Pass‑by‑Reference Explained

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.

Code ExamplesParameter Passingjava
0 likes · 8 min read
Understanding Java: Pass‑by‑Value vs Pass‑by‑Reference Explained
Python Programming Learning Circle
Python Programming Learning Circle
Nov 10, 2019 · Fundamentals

7 Fun Python Projects You Can Build in Minutes

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.

AICode ExamplesPython
0 likes · 9 min read
7 Fun Python Projects You Can Build in Minutes
Python Programming Learning Circle
Python Programming Learning Circle
Oct 20, 2019 · Fundamentals

Unlock Hidden Python Tricks: Variable Arguments, File Globbing, Debugging, and More

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.

Code ExamplesPythondebugging
0 likes · 11 min read
Unlock Hidden Python Tricks: Variable Arguments, File Globbing, Debugging, and More
macrozheng
macrozheng
Sep 4, 2019 · Backend Development

Master Hutool: Essential Java Utility Classes and How to Use Them

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.

Code ExamplesUtility Librarybackend-development
0 likes · 10 min read
Master Hutool: Essential Java Utility Classes and How to Use Them
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 19, 2019 · Backend Development

What’s New in the Updated Java Development Handbook? 21 Rules, Lock Pitfalls, and Float Tricks

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.

Code Examplescoding standardsconcurrency
0 likes · 9 min read
What’s New in the Updated Java Development Handbook? 21 Rules, Lock Pitfalls, and Float Tricks
MaGe Linux Operations
MaGe Linux Operations
Mar 14, 2019 · Fundamentals

10 Essential Python Interview Questions and Answers to Boost Your Prep

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.

Code ExamplesPython
0 likes · 6 min read
10 Essential Python Interview Questions and Answers to Boost Your Prep
Big Data Technology & Architecture
Big Data Technology & Architecture
Mar 11, 2019 · Fundamentals

Scala Array Basics: Declaration, Operations, and Methods

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.

ArraysCode ExamplesData Structures
0 likes · 10 min read
Scala Array Basics: Declaration, Operations, and Methods
21CTO
21CTO
Sep 17, 2018 · Fundamentals

Master Python Recursion: Limits, Pitfalls, and Practical 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.

Code ExamplesPythonRecursion
0 likes · 5 min read
Master Python Recursion: Limits, Pitfalls, and Practical Examples
Bitu Technology
Bitu Technology
Jul 19, 2018 · Artificial Intelligence

Introduction to Deep Learning: Concepts, Examples, and Learning Resources

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.

BackpropagationCode ExamplesNeural Networks
0 likes · 11 min read
Introduction to Deep Learning: Concepts, Examples, and Learning Resources
AI Cyberspace
AI Cyberspace
May 16, 2018 · Fundamentals

Master C Operators: From Arithmetic to sizeof – A Complete Guide

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.

C ProgrammingCode ExamplesExpression Evaluation
0 likes · 12 min read
Master C Operators: From Arithmetic to sizeof – A Complete Guide
MaGe Linux Operations
MaGe Linux Operations
Mar 7, 2018 · Fundamentals

Top 10 Python Interview Questions Every Developer Should Master

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.

Code ExamplesObject-Orientedfunctions
0 likes · 8 min read
Top 10 Python Interview Questions Every Developer Should Master
21CTO
21CTO
Jan 17, 2018 · Frontend Development

Why I Love JavaScript: Uncovering Its Quirks and Powerful Features

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.

Code ExamplesJavaScriptes6
0 likes · 6 min read
Why I Love JavaScript: Uncovering Its Quirks and Powerful Features
Efficient Ops
Efficient Ops
Dec 24, 2017 · Fundamentals

12 Essential Python Tricks Every Developer Should Know

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.

Code ExamplesPythonScripting
0 likes · 14 min read
12 Essential Python Tricks Every Developer Should Know
MaGe Linux Operations
MaGe Linux Operations
Aug 29, 2017 · Fundamentals

Top 11 Python Interview Questions and Hands‑On Code Solutions

This article presents eleven essential Python interview topics, covering quote usage, argument passing, lambda functions, string formatting, memory management, string reversal techniques, list merging, class variable behavior, slice handling, mutable default arguments, and tips for writing Pythonic code, each illustrated with clear examples.

Code ExamplesLambdaMemory Management
0 likes · 4 min read
Top 11 Python Interview Questions and Hands‑On Code Solutions
Qunar Tech Salon
Qunar Tech Salon
Sep 16, 2015 · Fundamentals

A Programming Language Is a System for Encoding, Naming, and Organizing Algorithms

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.

AlgorithmsCode ExamplesDRY principle
0 likes · 8 min read
A Programming Language Is a System for Encoding, Naming, and Organizing Algorithms
Baidu Tech Salon
Baidu Tech Salon
Jun 3, 2014 · Mobile Development

Introduction to Swift: Basic Syntax, Variables, Control Flow, Functions, and More

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.

Code ExamplesMobile DevelopmentSwift
0 likes · 17 min read
Introduction to Swift: Basic Syntax, Variables, Control Flow, Functions, and More