Tagged articles
49 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Feb 10, 2025 · Fundamentals

Common Uses of Python Dictionaries with Code Examples

This article explains eight practical applications of Python dictionaries—including data mapping, configuration management, counting, caching, graph representation, grouping, statistical analysis, and simple database simulation—each illustrated with clear code snippets.

code-examplesdata-structuresdictionary
0 likes · 4 min read
Common Uses of Python Dictionaries with Code Examples
MaGe Linux Operations
MaGe Linux Operations
Mar 7, 2024 · Fundamentals

Master Python String & List Tricks: Reverse, Palindromes, Unique Elements & More

This guide demonstrates essential Python techniques for manipulating strings and lists, covering reversal, palindrome detection, extracting unique characters, element comparison, list flattening, iterable decomposition, retrieving top N items, memory inspection, custom printing, and handling compressed files.

Coding TipsString Manipulationdata-structures
0 likes · 5 min read
Master Python String & List Tricks: Reverse, Palindromes, Unique Elements & More
MaGe Linux Operations
MaGe Linux Operations
Dec 7, 2023 · Backend Development

Mastering Redis: From Core Data Types to Enterprise‑Scale Distributed Locks

This comprehensive guide explains Redis fundamentals, its rich data structures, persistence mechanisms (RDB and AOF), enterprise‑level configuration strategies, common usage patterns such as caching, ranking and geolocation, and dives deep into distributed lock implementations with Redisson and Lua scripts, providing practical code examples for real‑world applications.

Luacachingdata-structures
0 likes · 31 min read
Mastering Redis: From Core Data Types to Enterprise‑Scale Distributed Locks
政采云技术
政采云技术
Aug 3, 2023 · Backend Development

Understanding Redis String Memory Overhead and Optimization Techniques

This article explains why Redis String types can consume excessive memory, examines the underlying Simple Dynamic String (SDS) structure and its three encoding modes, and demonstrates how using compressed lists (ziplist) and hash‑based storage can significantly reduce memory usage in backend applications.

SDSdata-structuresmemory-optimization
0 likes · 10 min read
Understanding Redis String Memory Overhead and Optimization Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Jul 17, 2023 · Fundamentals

Common Python Tricks and Best Practices

This article presents a collection of practical Python tricks—including handling multiple inputs, using all/any for condition checks, determining odd/even numbers, swapping variables, palindrome detection, inline if statements, removing duplicates, finding the most frequent element, list comprehensions, *args, enumerate, joining strings, merging dictionaries, creating dictionaries with zip, sorting dictionaries, reversing lists efficiently, and pretty‑printing data—each illustrated with clear code examples.

PythonTipsbest-practices
0 likes · 11 min read
Common Python Tricks and Best Practices
Test Development Learning Exchange
Test Development Learning Exchange
Jun 5, 2023 · Fundamentals

Common Python Built‑in Functions: 68 Frequently Used Examples

This article introduces 68 commonly used Python built‑in functions across numeric, string, list, dictionary, tuple, set, file‑handling, and other categories, providing concise explanations and code examples that help programmers efficiently manipulate core data types and improve coding productivity.

built-in-functionsdata-structuresprogramming
0 likes · 11 min read
Common Python Built‑in Functions: 68 Frequently Used Examples
Python Programming Learning Circle
Python Programming Learning Circle
Apr 20, 2023 · Fundamentals

Common Python Tricks and Best Practices

This article presents a collection of practical Python tricks covering multiple user inputs, the use of all() and any() for condition handling, odd/even checks, variable swapping, palindrome detection, inline if statements, duplicate removal, finding the most frequent list element, list comprehensions, *args, enumerate, string joining, dictionary merging, sorting, pretty‑printing, and efficient list reversal techniques.

Tipsbest-practicescode-snippets
0 likes · 11 min read
Common Python Tricks and Best Practices
Python Programming Learning Circle
Python Programming Learning Circle
Feb 20, 2023 · Fundamentals

8 Handy Python Tricks for Better Code Readability and Efficiency

This article presents eight practical Python tips—including using underscores for large numbers, creating immutable sets, swapping dictionary keys and values, generating specific ranges of numbers, safely accessing missing keys, locating installed modules, extracting middle list elements, and unpacking list items into variables—each illustrated with clear code examples and expected outputs.

code-snippetsdata-structuresprogramming tips
0 likes · 6 min read
8 Handy Python Tricks for Better Code Readability and Efficiency
Top Architect
Top Architect
Nov 27, 2022 · Fundamentals

Understanding Bloom Filters and Their Use in Preventing Cache Penetration

This article explains the problem of cache penetration, introduces Bloom filters as a space‑efficient probabilistic data structure to block invalid queries, demonstrates implementations using Guava and Redis with Java code, analyzes false‑positive rates, and discusses practical application scenarios and performance testing results.

Cachebloom-filterdata-structures
0 likes · 17 min read
Understanding Bloom Filters and Their Use in Preventing Cache Penetration
dbaplus Community
dbaplus Community
Oct 13, 2022 · Backend Development

How Ctrip Optimized Hotel Cache Memory: From HashMap Overhead to Bitmap Encoding

This article examines Ctrip's hotel query service cache, detailing the selection of in‑memory data structures, analyzing Java object and HashMap memory overhead, and demonstrating how bitmap, run‑length, dictionary, and delta encodings dramatically reduce memory usage in real‑world scenarios.

HashMapMemory Optimizationdata-structures
0 likes · 23 min read
How Ctrip Optimized Hotel Cache Memory: From HashMap Overhead to Bitmap Encoding
Python Programming Learning Circle
Python Programming Learning Circle
Jul 14, 2022 · Fundamentals

Python Libraries, Core Data Structures, and Algorithms for Quantitative Trading

This article introduces Python's extensive libraries such as Pandas and NumPy, explains their role in quantitative finance platforms, and reviews essential data structures and algorithmic techniques—including arrays, strings, trees, hash tables, DFS, recursion, divide‑and‑conquer, and greedy methods—providing a solid foundation for building trading strategies.

AlgorithmsQuantitative Tradingdata-structures
0 likes · 6 min read
Python Libraries, Core Data Structures, and Algorithms for Quantitative Trading
Python Programming Learning Circle
Python Programming Learning Circle
Jul 11, 2022 · Fundamentals

Python Student Information Management System Tutorial

This tutorial presents a step‑by‑step guide to building a simple Python student information management system, covering system overview, functional requirements, detailed code implementation for adding, deleting, modifying, searching, and displaying student records, and demonstrates the interactive console workflow with example screenshots.

Student Managementconsole-appdata-structures
0 likes · 10 min read
Python Student Information Management System Tutorial
ITPUB
ITPUB
May 31, 2022 · Backend Development

How Ctrip Optimized Hotel Cache Memory: From HashMap Overhead to Advanced Encoding

Facing billions of cached hotel records, Ctrip’s backend team analyzed Java object layout and HashMap memory costs, evaluated alternative structures, and applied bitmap, dictionary, run‑length and delta encodings to compress data, ultimately reducing cache size to under 2% of its original footprint.

Backendcachingdata-structures
0 likes · 24 min read
How Ctrip Optimized Hotel Cache Memory: From HashMap Overhead to Advanced Encoding
IT Architects Alliance
IT Architects Alliance
Mar 20, 2022 · Backend Development

Implementing Message Queues with Redis: Lists, Streams, and Pub/Sub

This article explains how Redis can be used to build message queues by leveraging List commands with LPUSH/RPOP and BRPOPLPUSH for simple queues, the Stream data type introduced in Redis 5.0 for durable, ordered, consumer‑group‑based queues, and the Pub/Sub model for real‑time broadcasting, while also analyzing the underlying source code structures such as quicklist, radix trees, and stream internals.

BackendPubSubStreams
0 likes · 21 min read
Implementing Message Queues with Redis: Lists, Streams, and Pub/Sub
Selected Java Interview Questions
Selected Java Interview Questions
Aug 26, 2021 · Databases

Redis Interview Topics: Persistence, Caching Issues, Data Types, Cluster Architecture, and More

This article provides a comprehensive overview of Redis interview questions, covering persistence mechanisms, cache avalanche and penetration, hot vs. cold data, differences from Memcached, single‑threaded performance, data structures, internal architecture, expiration policies, clustering options, distributed locks, and transaction handling.

ClusterPersistencecaching
0 likes · 24 min read
Redis Interview Topics: Persistence, Caching Issues, Data Types, Cluster Architecture, and More
php Courses
php Courses
Jun 30, 2021 · Backend Development

Understanding PHP's zend_string Structure and Memory Management

This article explains the internal PHP7+ data structures such as _zval_struct, zend_value, and zend_string, detailing their fields, type definitions, memory layout, flexible array usage, and the associated allocation and release macros that enable efficient, binary‑safe string handling in the Zend Engine.

BackendC languageMemory Management
0 likes · 11 min read
Understanding PHP's zend_string Structure and Memory Management
Python Programming Learning Circle
Python Programming Learning Circle
Apr 27, 2021 · Fundamentals

Python Basics: Syntax, Data Types, Control Flow, Functions, Modules, I/O, and Common Libraries

This comprehensive guide introduces Python fundamentals, covering file encoding declarations, shebang usage, quicksort implementation, script entry checks with __name__, printing differences between Python 2 and 3, pretty‑printing, module and package structures, control flow statements, data types, string operations, regular expressions, collections, dictionary handling, functional tools, generators, decorators, class definitions, property management, exception handling, unit testing, file and path manipulation, JSON/XML processing, Excel interaction, file system utilities, network requests, and MySQL database access.

Networkingdata-structuresfile-io
0 likes · 25 min read
Python Basics: Syntax, Data Types, Control Flow, Functions, Modules, I/O, and Common Libraries
Programmer DD
Programmer DD
Apr 25, 2021 · Fundamentals

How Bitmaps and Bloom Filters Supercharge Massive Data Lookups

This article explains the bitmap concept, demonstrates how to store and query billions of integers using bit-level operations, introduces BitSet for dynamic bit vectors, and describes Bloom filters as probabilistic structures for fast, memory‑efficient membership testing in large‑scale data scenarios.

BitmapMemory Optimizationalgorithm
0 likes · 12 min read
How Bitmaps and Bloom Filters Supercharge Massive Data Lookups
Python Programming Learning Circle
Python Programming Learning Circle
Apr 21, 2021 · Fundamentals

30 Practical Python Tips and Tricks

This article presents thirty concise, practical Python tips ranging from using Python 3 and checking versions to leveraging IPython, list comprehensions, dataclasses, dictionary merging, progress bars, and charset detection, each illustrated with clear code examples for everyday programming tasks.

Tipsbest-practicescode
0 likes · 11 min read
30 Practical Python Tips and Tricks
Python Programming Learning Circle
Python Programming Learning Circle
Nov 26, 2020 · Fundamentals

25 Best GitHub Repositories for Python Developers

This article presents a curated collection of 25 top GitHub repositories for Python developers, covering frameworks, libraries, applications, books, interview questions, data structures, algorithms, style guides, and learning resources, helping both beginners and experienced programmers enhance their skills and stay up‑to‑date.

Resourcesdata-structureslibraries
0 likes · 9 min read
25 Best GitHub Repositories for Python Developers
21CTO
21CTO
Sep 28, 2019 · Backend Development

What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More

A candid recount of a ByteDance backend interview reveals how superficial preparation, gaps in Nginx, uWSGI, Redis, and data‑structure knowledge, and nervousness can derail even experienced developers, while offering concrete advice on early preparation, resume framing, and tackling tough technical questions.

BackendNginxalgorithm
0 likes · 12 min read
What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More
MaGe Linux Operations
MaGe Linux Operations
Aug 13, 2019 · Fundamentals

Master Python Interview Essentials: 150+ Questions & Answers

This comprehensive guide compiles over 150 Python interview questions covering fundamentals, syntax, data structures, algorithms, concurrency, web crawling, and best coding practices, providing clear explanations and code examples to help readers deepen their knowledge and ace technical interviews.

data-structuresfundamentalsquestions
0 likes · 17 min read
Master Python Interview Essentials: 150+ Questions & Answers
MaGe Linux Operations
MaGe Linux Operations
Oct 14, 2018 · Fundamentals

Master Python Basics: Variables, Control Flow, Data Structures & OOP

This comprehensive guide walks you through Python fundamentals, covering variable assignment, data types, conditional statements, loops, list and dictionary operations, as well as class definitions, object instantiation, encapsulation, and inheritance, all illustrated with clear code examples.

LoopsObject-OrientedPython
0 likes · 18 min read
Master Python Basics: Variables, Control Flow, Data Structures & OOP
MaGe Linux Operations
MaGe Linux Operations
Sep 29, 2018 · Fundamentals

Master Python Tuples: Indexing, Slicing, and Operations Explained

This article introduces Python 3 tuples as immutable ordered collections, explains how to create, index, slice, concatenate, and replicate them, and demonstrates built‑in functions such as len, max, and min while comparing tuples with lists and showing conversion techniques.

ImmutablePythonSlicing
0 likes · 9 min read
Master Python Tuples: Indexing, Slicing, and Operations Explained
Programmer DD
Programmer DD
Jul 26, 2018 · Backend Development

How Does ConcurrentHashMap Turn Buckets into Red‑Black Trees?

This article explains the internal mechanics of Java's ConcurrentHashMap when a bucket’s linked list exceeds the TREEIFY_THRESHOLD, detailing how the structure is converted into a red‑black tree, the treeifyBin implementation, node insertion cases, rotation operations, and the supporting helper methods.

JUCRed-Black Treedata-structures
0 likes · 15 min read
How Does ConcurrentHashMap Turn Buckets into Red‑Black Trees?
Java Backend Technology
Java Backend Technology
Jul 9, 2018 · Backend Development

Redis Deep Dive: Why It’s Fast, Common Pitfalls, and Best Practices

This article provides a comprehensive overview of Redis, explaining why it’s chosen for performance and concurrency, how its single‑threaded design achieves speed, the various data types and their use cases, expiration and eviction strategies, consistency challenges with databases, and solutions for cache penetration, avalanche, and key‑concurrency issues.

Consistencycachingdata-structures
0 likes · 15 min read
Redis Deep Dive: Why It’s Fast, Common Pitfalls, and Best Practices
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 15, 2017 · Frontend Development

Top 10 Front-End Interview Algorithm Questions and Solutions

This article compiles ten common algorithmic challenges frequently asked in front‑end interviews, explains why mastering data structures matters for developers, and provides concise solutions and key insights for each problem, from palindrome checks to binary search tree implementation in JavaScript.

JavaScriptalgorithmcoding-challenge
0 likes · 8 min read
Top 10 Front-End Interview Algorithm Questions and Solutions
ITPUB
ITPUB
Mar 24, 2017 · Fundamentals

Master Binary Search Trees: Definitions, Traversals, and Core Operations

Binary Search Trees (BST) are ordered binary trees that enable fast search, insertion, and deletion of nodes; this guide explains their definition, properties, traversal methods, and core operations—including search, minimum/maximum, successor/predecessor, insertion, and deletion—complete with pseudocode and illustrative examples.

Binary Search TreeSearchdata-structures
0 likes · 16 min read
Master Binary Search Trees: Definitions, Traversals, and Core Operations
ITPUB
ITPUB
Mar 24, 2017 · Fundamentals

Master Binary Search Trees: Definitions, Traversals, and Core Operations

Binary Search Trees (BST) are ordered binary trees that enable fast search, insertion, and deletion of nodes; this guide explains their definition, key properties, traversal methods, and core algorithms—including search, minimum/maximum, successor/predecessor, insertion, and deletion—with pseudocode and illustrative examples.

Binary Search TreeDeletionInsertion
0 likes · 16 min read
Master Binary Search Trees: Definitions, Traversals, and Core Operations