Tag

Code

1 views collected around this technical thread.

Top Architect
Top Architect
May 26, 2025 · Databases

Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot

This article walks through the full process of designing, configuring, and implementing a sharding solution for large loan and repayment tables using ShardingSphere, Spring Boot 3, MySQL, and MyBatis‑Plus, covering schema planning, data migration, DBA coordination, code examples, common pitfalls, and operational considerations.

CodeMigrationMySQL
0 likes · 19 min read
Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot
Python Programming Learning Circle
Python Programming Learning Circle
May 8, 2025 · Fundamentals

Comprehensive Python Knowledge Summary and Interview Guide

This article compiles an extensive Python cheat‑sheet covering language differences between Python 2 and 3, essential libraries, concurrency, data structures, design patterns, testing, performance tips, database and networking fundamentals, along with numerous code examples and interview insights for developers.

CodeInterviewPython
0 likes · 30 min read
Comprehensive Python Knowledge Summary and Interview Guide
php中文网 Courses
php中文网 Courses
Apr 29, 2025 · Backend Development

Using PHP array_push to Add Elements to an Array

This article explains how the PHP array_push function can append one or multiple elements to the end of an array, demonstrates its usage with clear code examples, and shows the resulting array and length output for both single and multiple element insertions.

CodePHPTutorial
0 likes · 3 min read
Using PHP array_push to Add Elements to an Array
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

Python Code Optimization Techniques for Faster Execution

This article presents a comprehensive collection of Python performance‑boosting techniques, covering fundamental optimization principles, avoiding global variables and attribute access, eliminating unnecessary abstraction and data copying, loop optimizations, just‑in‑time compilation with numba, and selecting appropriate built‑in data structures to achieve significant speed improvements.

BenchmarkingBest PracticesCode
0 likes · 15 min read
Python Code Optimization Techniques for Faster Execution
Baidu Geek Talk
Baidu Geek Talk
Apr 2, 2025 · Artificial Intelligence

DeepSeek-VL2 Multimodal Model: Architecture, Training, and Code Walkthrough

DeepSeek‑VL2 is a state‑of‑the‑art multimodal model built on a Mixture‑of‑Experts architecture that combines a SigLIP‑L vision encoder with dynamic tiling, a two‑layer VL adaptor, and a DeepSeek‑MoE language model using Multi‑head Latent Attention, trained in three stages on diverse visual‑language and text data, and achieving strong results on benchmarks such as DocVQA and TextVQA, with full implementation and inference code available in PaddleMIX.

CodeDeepSeek-VL2Inference
0 likes · 36 min read
DeepSeek-VL2 Multimodal Model: Architecture, Training, and Code Walkthrough
Python Programming Learning Circle
Python Programming Learning Circle
Mar 30, 2025 · Game Development

Tank Battle Game Tutorial Using Pygame

This article provides a step‑by‑step tutorial for building a classic tank battle game with Python's pygame library, covering the visual layout, core game loop, and detailed source code for all game elements such as tanks, bullets, obstacles, and UI screens.

CodePygamegame development
0 likes · 26 min read
Tank Battle Game Tutorial Using Pygame
Python Programming Learning Circle
Python Programming Learning Circle
Mar 19, 2025 · Fundamentals

Python Code Optimization Techniques to Improve Execution Speed

This article presents a collection of Python performance optimization strategies, including avoiding global variables, minimizing attribute access, reducing unnecessary abstractions, eliminating data copying, leveraging short‑circuit logic, optimizing loops, using JIT compilation with numba, and selecting appropriate data structures to significantly speed up code execution.

Best PracticesCodePerformance
0 likes · 20 min read
Python Code Optimization Techniques to Improve Execution Speed
Test Development Learning Exchange
Test Development Learning Exchange
Mar 3, 2025 · Fundamentals

Understanding Python Decorators: Concepts, Implementations, and Practical Applications

This article provides a comprehensive guide to Python decorators, covering their basic concept, step‑by‑step implementations of simple, parameterized, class‑based, and utility decorators, practical use‑cases such as logging, timing, permission checks, and how to preserve metadata with functools.wraps.

CodePythondecorator
0 likes · 9 min read
Understanding Python Decorators: Concepts, Implementations, and Practical Applications
Python Programming Learning Circle
Python Programming Learning Circle
Feb 24, 2025 · Fundamentals

20 Essential Python Tricks to Boost Code Readability and Efficiency

This article presents twenty practical Python techniques—including string reversal, list comprehensions, dictionary merging, and performance timing—that enhance code readability, simplify common tasks, and improve efficiency for developers seeking to write cleaner, more effective Python scripts.

CodePythonexamples
0 likes · 10 min read
20 Essential Python Tricks to Boost Code Readability and Efficiency
Code Mala Tang
Code Mala Tang
Feb 6, 2025 · Fundamentals

Why Traditional print() Debugging Fails and How IceCream Transforms Python Debugging

This article explains the limitations of using print() for debugging Python code and demonstrates how the IceCream library’s ic() function provides richer, more organized output, supports assignment, visualizes complex data structures, and offers configurable logging features.

CodeIceCreamPython
0 likes · 6 min read
Why Traditional print() Debugging Fails and How IceCream Transforms Python Debugging
php中文网 Courses
php中文网 Courses
Jan 20, 2025 · Backend Development

PHP Memory Optimization Techniques

This article presents a comprehensive guide to PHP memory optimization, covering strategies such as using unset() to free variables, processing data in chunks, manual garbage collection, monitoring usage, optimizing loops, generators, lazy class loading, database tuning, profiling tools, serialization practices, Opcache, session handling, large file processing, and Composer dependency management.

Best PracticesCodeGC
0 likes · 9 min read
PHP Memory Optimization Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Oct 5, 2024 · Fundamentals

In-Depth Guide to Python Functions

This article provides a comprehensive overview of Python functions, covering definition syntax, various parameter types—including positional, keyword, default, and variable arguments—return values, scope of local and global variables, lambda expressions, docstrings, and function annotations, all illustrated with clear code examples.

CodeFunctionsParameters
0 likes · 8 min read
In-Depth Guide to Python Functions
Python Programming Learning Circle
Python Programming Learning Circle
Sep 13, 2024 · Fundamentals

Understanding Python Decorators: Definitions, Syntax, and Practical Use Cases

This article explains what Python decorators are, how they differ from ordinary closures, demonstrates multiple syntax forms—including basic, parameterized, and class‑based decorators—with complete code examples, and outlines common application scenarios such as logging, authentication, timing, and caching.

CodePythonTutorial
0 likes · 10 min read
Understanding Python Decorators: Definitions, Syntax, and Practical Use Cases
Python Programming Learning Circle
Python Programming Learning Circle
Aug 26, 2024 · Fundamentals

Six Techniques to Improve Python Code Performance

This article explains why Python may run slower than compiled languages, introduces methods for detecting performance bottlenecks, and presents six practical techniques—including using timeit, memory_profiler, line_profiler, built‑in functions, f‑strings, list comprehensions, and lru_cache—to significantly speed up Python programs.

Best PracticesCodePerformance
0 likes · 9 min read
Six Techniques to Improve Python Code Performance
Python Programming Learning Circle
Python Programming Learning Circle
Jul 17, 2024 · Fundamentals

Simple Techniques to Speed Up Python For Loops by Up to 970×

This article demonstrates a collection of straightforward Python performance tricks—such as list comprehensions, external length calculation, set usage, loop skipping, code inlining, generators, map(), memoization, vectorization, filterfalse, and string joining—that together can accelerate for‑loops from modest 1.3× gains to dramatic 970× speed‑ups, with detailed benchmark results and code examples.

BenchmarkingCodePerformance
0 likes · 15 min read
Simple Techniques to Speed Up Python For Loops by Up to 970×
Python Programming Learning Circle
Python Programming Learning Circle
Jul 6, 2024 · Fundamentals

Python Code Optimization Techniques and Performance Tips

This article presents Python code optimization principles, including avoiding premature optimization, reducing global variable usage, minimizing attribute access, eliminating unnecessary abstractions, optimizing loops, leveraging numba JIT, and selecting appropriate data structures, accompanied by performance comparisons and code examples.

CodePerformancePython
0 likes · 13 min read
Python Code Optimization Techniques and Performance Tips
Python Programming Learning Circle
Python Programming Learning Circle
Jul 4, 2024 · Fundamentals

Python Turtle Valentine's Day Drawing Collection: Roses, Hearts, Cupid, Cherry Blossom Tree and More

This tutorial presents a collection of Python Turtle scripts that generate various romantic 520-themed graphics—including roses, heart shapes, Cupid figures, animated cherry blossom trees, heart-shaped word clouds, and a girlfriend portrait—complete with ready-to-run code for each illustration.

CodePythonTutorial
0 likes · 28 min read
Python Turtle Valentine's Day Drawing Collection: Roses, Hearts, Cupid, Cherry Blossom Tree and More
Test Development Learning Exchange
Test Development Learning Exchange
Jun 11, 2024 · Fundamentals

Deep Understanding of __main__ and __name__ in Python

This article explains the special built‑in identifiers __main__ and __name__ in Python, describing how they indicate a module's execution context, how to use them to separate script and library code, and provides multiple practical code examples.

CodeModule__name__
0 likes · 6 min read
Deep Understanding of __main__ and __name__ in Python
Test Development Learning Exchange
Test Development Learning Exchange
May 25, 2024 · Fundamentals

Understanding Python Decorators: Concepts and Practical Examples

Python decorators are powerful constructs that let you augment functions without altering their definitions, and this guide explains their underlying principle, provides a basic template, and demonstrates ten practical decorator implementations—including timing, logging, access control, caching, singleton, retry, async, and property restrictions.

CodeTutorialdecorator
0 likes · 8 min read
Understanding Python Decorators: Concepts and Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
May 24, 2024 · Fundamentals

Python Decorators for Mathematical Operations: Examples and Use Cases

This article introduces Python decorators tailored for mathematical functions, presenting four practical examples—a timing decorator, a simple automatic differentiation decorator, a result‑caching decorator, and a random‑noise decorator—each accompanied by complete code snippets and explanations.

CachingCodePerformance
0 likes · 4 min read
Python Decorators for Mathematical Operations: Examples and Use Cases