Tagged articles
202 articles
Page 1 of 3
Lisa Notes
Lisa Notes
Mar 31, 2026 · Fundamentals

Python Basics: Common String and List Operations with Code Examples

This learning note demonstrates essential Python list and string techniques, including list concatenation with '+', membership testing using 'in' and 'not in', and various slicing methods, all illustrated with concrete code snippets and their output.

Code ExamplesListPython
0 likes · 3 min read
Python Basics: Common String and List Operations with Code Examples
Lisa Notes
Lisa Notes
Mar 23, 2026 · Fundamentals

Python String Basics: Finding Substrings and Getting Length

This tutorial demonstrates how to use Python's built-in string functions to obtain a string's length, count occurrences of a substring, convert case, and locate substrings using find, index, and rfind, with concrete code examples and expected outputs.

PythonStringcase-conversion
0 likes · 4 min read
Python String Basics: Finding Substrings and Getting Length
Lisa Notes
Lisa Notes
Mar 21, 2026 · Fundamentals

Python String Basics: Common Techniques and Examples

This note explains how to declare Python strings with various quotes, embed quotes inside strings, use escape sequences, and apply raw strings and f‑strings, providing clear code snippets and their outputs for each case.

Escape CharactersFormatted StringPython
0 likes · 4 min read
Python String Basics: Common Techniques and Examples
Lisa Notes
Lisa Notes
Mar 18, 2026 · Fundamentals

Python For Loops: Working with Composite Data Types

The article explains Python's for‑in loop syntax, describes common iterable types such as strings, lists, tuples and sets, details how the range function defines start and end values, and provides concrete code examples that print numbers, list elements and characters from both English and Chinese strings.

IterableListString
0 likes · 3 min read
Python For Loops: Working with Composite Data Types
Java Architect Handbook
Java Architect Handbook
Mar 12, 2026 · Backend Development

How Many Objects Does new String("abc") Actually Create?

This article explains why the interview question "String str = new String(\"abc\")" can create either one or two objects depending on JVM string pool state, detailing the JVM memory model, string pool mechanics, code examples, best practices, and common misconceptions.

JVMMemory ManagementObject Creation
0 likes · 9 min read
How Many Objects Does new String("abc") Actually Create?
Coder Trainee
Coder Trainee
Feb 14, 2026 · Backend Development

Using RedisTemplate to Manage String and Hash Data in Spring

This article demonstrates how to encapsulate common RedisTemplate operations—such as deleting single or multiple keys, setting expiration, checking existence, and performing String and Hash CRUD actions—by providing concrete Java code examples and step‑by‑step method implementations.

CacheHashRedisTemplate
0 likes · 4 min read
Using RedisTemplate to Manage String and Hash Data in Spring
Coder Trainee
Coder Trainee
Feb 13, 2026 · Databases

Understanding Redis Commands and Its Five Data Types

This article explains how to access the Redis CLI on Linux, connect to remote servers, and provides detailed examples of common commands for each of Redis's five data types—String, List, Set, Sorted Set, and Hash—highlighting key syntax and usage patterns.

Data TypesHashList
0 likes · 4 min read
Understanding Redis Commands and Its Five Data Types
Tech Freedom Circle
Tech Freedom Circle
Jan 4, 2026 · Backend Development

Choosing Between String, StringBuilder, and StringBuffer for Concatenating 100 Million Strings in a JD Interview

The article dissects a JD interview question about concatenating one hundred million strings, comparing String, StringBuilder, and StringBuffer, and explains how immutability leads to object explosion, how StringBuilder’s default capacity causes costly expansions, and why StringBuffer’s synchronized methods become a performance bottleneck in high‑concurrency scenarios.

Stringconcurrencygc
0 likes · 44 min read
Choosing Between String, StringBuilder, and StringBuffer for Concatenating 100 Million Strings in a JD Interview
Code Mala Tang
Code Mala Tang
Dec 28, 2025 · Fundamentals

How to Find the Longest Substring Without Repeating Characters in O(n)

This article explains the problem of finding the longest substring without repeating characters, demonstrates a brute‑force O(n³) solution with code, then introduces an optimized sliding‑window approach that runs in linear time O(n), including detailed implementation, complexity analysis, and key insights.

Sliding WindowStringalgorithm
0 likes · 5 min read
How to Find the Longest Substring Without Repeating Characters in O(n)
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 22, 2025 · Fundamentals

Why Is StringBuilder Faster Than StringBuffer? Understanding Java’s Mutable vs Immutable Strings

This article explains the fundamental differences between Java's String, StringBuilder, and StringBuffer—covering immutability, thread‑safety, internal caching mechanisms, and performance characteristics—while providing concrete code examples that illustrate how each class behaves in single‑threaded and multi‑threaded scenarios.

Stringjavastringbuffer
0 likes · 6 min read
Why Is StringBuilder Faster Than StringBuffer? Understanding Java’s Mutable vs Immutable Strings
IT Services Circle
IT Services Circle
Dec 20, 2025 · Fundamentals

10 Common Python String Pitfalls Every Developer Should Avoid

This article enumerates ten classic mistakes when handling Python strings—covering immutability, identity vs equality, truthiness of empty values, misuse of strip and split, Unicode length, performance of concatenation, encoding issues, and trailing backslashes—to help developers write safer, more efficient code.

ComparisonImmutablePitfalls
0 likes · 7 min read
10 Common Python String Pitfalls Every Developer Should Avoid
php Courses
php Courses
Dec 4, 2025 · Backend Development

Master PHP’s implode(): Syntax, Examples, and Real‑World Use Cases

This guide explains PHP’s implode() function, covering its syntax, parameters, return value, basic examples, and practical scenarios such as constructing SQL IN clauses and joining user‑selected options, helping developers efficiently convert arrays into strings.

ArrayPHPString
0 likes · 3 min read
Master PHP’s implode(): Syntax, Examples, and Real‑World Use Cases
php Courses
php Courses
Nov 28, 2025 · Backend Development

Master PHP’s implode(): Combine Arrays into Strings Efficiently

This guide explains how PHP's implode() function joins array elements into a string, covering its syntax, handling of nested arrays, and the special case of omitting the separator to produce concatenated output without delimiters.

ArrayBackendString
0 likes · 4 min read
Master PHP’s implode(): Combine Arrays into Strings Efficiently
Top Architect
Top Architect
Nov 24, 2025 · Fundamentals

How Many Objects Does a Java String Create? Literal vs new String Explained

This article breaks down the exact number of objects created when using a string literal versus the new String constructor in Java, detailing interactions with the constant pool, stack, and heap, and demonstrates the resulting reference comparisons with concrete code examples.

JVMMemory ManagementObject Creation
0 likes · 5 min read
How Many Objects Does a Java String Create? Literal vs new String Explained
php Courses
php Courses
Nov 12, 2025 · Backend Development

Master PHP’s implode(): Syntax, Examples, and Real-World Uses

This guide explains PHP’s implode() function, covering its syntax, parameters, return value, basic usage with code examples, and practical scenarios such as constructing SQL IN clauses and merging user‑selected options, helping developers efficiently convert arrays into formatted strings.

ArrayPHPString
0 likes · 4 min read
Master PHP’s implode(): Syntax, Examples, and Real-World Uses
Java Companion
Java Companion
Nov 9, 2025 · Databases

Why Big Companies Avoid SET for User Data: A Redis Storage Guide

The article compares storing user objects in Redis using plain SET with JSON versus using HASH fields, providing code demos, benchmark results, memory and concurrency analysis, and practical guidelines on when to choose each approach for optimal performance and safety.

HashStringdata modeling
0 likes · 9 min read
Why Big Companies Avoid SET for User Data: A Redis Storage Guide
php Courses
php Courses
Oct 29, 2025 · Backend Development

Master PHP’s implode(): Combine Arrays into Strings Efficiently

This guide explains how PHP’s implode() function joins array elements into strings, covering its syntax, basic and advanced usage with separators, handling of nested arrays, and the special case of omitting the glue parameter, illustrated with clear code examples.

ArrayPHPString
0 likes · 4 min read
Master PHP’s implode(): Combine Arrays into Strings Efficiently
php Courses
php Courses
Sep 28, 2025 · Backend Development

Mastering PHP’s addcslashes(): Escape Characters Made Easy

This article explains the PHP addcslashes() function, its syntax, parameters, and practical examples for escaping specific characters—including letters, quotes, and backslashes—while also highlighting differences from addslashes() and providing clear code demonstrations.

BackendPHPString
0 likes · 3 min read
Mastering PHP’s addcslashes(): Escape Characters Made Easy
php Courses
php Courses
Sep 12, 2025 · Backend Development

Master PHP’s implode(): Combine Arrays into Strings Efficiently

This article explains how PHP's implode() function joins array elements into a string, covering basic usage with separators, handling of nested arrays, and the special case of omitting the separator, all illustrated with clear code examples.

ArrayStringTutorial
0 likes · 4 min read
Master PHP’s implode(): Combine Arrays into Strings Efficiently
php Courses
php Courses
Sep 10, 2025 · Backend Development

Master Multibyte String Cutting in PHP with mb_substr – Tips & Examples

This article explains how PHP's mb_substr() function safely extracts portions of multibyte strings, details its syntax, parameters, and provides clear code examples demonstrating correct usage, edge cases, and its importance for multilingual web development.

BackendStringmb_substr
0 likes · 3 min read
Master Multibyte String Cutting in PHP with mb_substr – Tips & Examples
AndroidPub
AndroidPub
Jun 13, 2025 · Fundamentals

Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap

This article explains how Kotlin's standard library provides concise builder functions such as buildList, buildSet, buildMap, and buildString to create immutable collections and strings efficiently, reducing boilerplate and eliminating lambda overhead while offering specialized variants for primitive types.

CollectionsKotlinList
0 likes · 7 min read
Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap
php Courses
php Courses
Mar 4, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates simple replacement, multiple replacements, and character deletion through clear code examples, helping developers efficiently manipulate strings in backend applications.

Stringphp-functionsreplace
0 likes · 5 min read
Using PHP str_replace for String Replacement and Deletion
Java Tech Enthusiast
Java Tech Enthusiast
Mar 3, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

Because phone numbers are identifiers that can contain symbols and exceed the numeric range of an int, storing them as a String—despite higher memory use—is semantically correct, avoids overflow, preserves formatting, and benefits from JVM string pooling, making String the preferred type in most Java applications.

Data TypesJVMString
0 likes · 7 min read
Choosing Between int and String for Storing Phone Numbers in Java
Java Backend Technology
Java Backend Technology
Feb 25, 2025 · Fundamentals

Why Storing Phone Numbers as Strings Beats Ints in Java

This article analyzes the trade‑offs between using int and String to store phone numbers in Java, covering type characteristics, the semantic nature of phone numbers, JVM bytecode implications, performance considerations, and practical case studies to guide developers toward the optimal choice.

Data TypesJVMPhone Number
0 likes · 8 min read
Why Storing Phone Numbers as Strings Beats Ints in Java
macrozheng
macrozheng
Feb 21, 2025 · Fundamentals

Why Storing Phone Numbers as Strings Beats Ints in Java

This article explains why using Java's String type for phone numbers is more memory‑efficient, semantically correct, and performant than using primitive int, covering JVM bytecode, memory layout, string pool optimization, and real‑world case studies.

Data TypesJVMPhone Numbers
0 likes · 8 min read
Why Storing Phone Numbers as Strings Beats Ints in Java
php Courses
php Courses
Feb 11, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function joins array elements into a string, demonstrates basic and advanced usage with examples—including handling sub‑arrays and omitting the separator—and highlights important considerations for effective string manipulation in backend development.

ArrayBackendString
0 likes · 4 min read
Using PHP implode() to Join Array Elements into a String
php Courses
php Courses
Jan 20, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains the PHP implode() function, detailing its syntax, parameters, and usage examples for joining array elements—including handling nested arrays and omitting delimiters—to efficiently convert arrays into strings in backend development.

ArrayBackendPHP
0 likes · 6 min read
Using PHP implode() to Join Array Elements into a String
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jan 18, 2025 · Backend Development

How Java’s String.intern() Boosts Memory Efficiency and Performance

Java’s String.intern() method adds a string to the constant pool, enabling memory sharing and faster reference comparisons; this article explains its behavior, demonstrates usage with code examples, and discusses performance benefits and cautions for optimal use in real‑world applications.

Memory OptimizationStringintern
0 likes · 5 min read
How Java’s String.intern() Boosts Memory Efficiency and Performance
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 10, 2025 · Backend Development

Java String Tricks: replace vs replaceAll, Integer Caching, BigDecimal Precision

This article explains the differences between replace and replaceAll, how Integer caching affects equality checks, why constructing BigDecimal with double can cause precision loss, the nuances of string concatenation, the distinction between isEmpty and isBlank, when to check for null in MyBatis mapper results, and the correct way to use indexOf in Java.

BigDecimalSpring BootString
0 likes · 13 min read
Java String Tricks: replace vs replaceAll, Integer Caching, BigDecimal Precision
php Courses
php Courses
Jan 9, 2025 · Backend Development

10 Essential PHP Functions to Boost Development Efficiency

This article introduces ten essential PHP built‑in functions—including array_map, array_filter, array_reduce, json_encode/decode, and string utilities—explaining their purpose and providing clear code examples to help developers write more concise and efficient backend code.

ArrayBackendPHP
0 likes · 5 min read
10 Essential PHP Functions to Boost Development Efficiency
Lobster Programming
Lobster Programming
Dec 16, 2024 · Fundamentals

How Many Objects Does Java Create for Different String Initializations?

This article explains how Java creates objects for various String assignments—using new String("long"), a literal "long", or concatenated literals "lo" + "ng"—detailing when one or two objects are allocated based on the presence of the literal in the string constant pool.

Constant PoolMemory ManagementObject Creation
0 likes · 3 min read
How Many Objects Does Java Create for Different String Initializations?
php Courses
php Courses
Nov 25, 2024 · Backend Development

How to Use PHP trim() to Remove Whitespace and Specified Characters

This article explains the PHP trim() function, detailing its default behavior of removing whitespace from both ends of a string, how to use the optional character mask to strip specific characters, and provides clear code examples with expected output for each case.

.trimBackendString
0 likes · 5 min read
How to Use PHP trim() to Remove Whitespace and Specified Characters
php Courses
php Courses
Nov 14, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, its syntax, and demonstrates three examples—simple replacement, multiple replacements using arrays, and character deletion—showing how to modify strings efficiently in backend development, including sample code and expected output for each case.

BackendStringTutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
Java Tech Enthusiast
Java Tech Enthusiast
Oct 28, 2024 · Databases

Choosing Between int and string for Storing QQ Numbers

While storing early five‑ and six‑digit QQ IDs as int32 or int64 offers memory efficiency and fast queries, the later expansion to eleven‑digit numbers and potential inclusion of non‑numeric symbols makes a string representation preferable to ensure flexible, future‑proof handling of QQ numbers.

QQStringdata type
0 likes · 3 min read
Choosing Between int and string for Storing QQ Numbers
php Courses
php Courses
May 9, 2024 · Backend Development

Using PHP's substr() Function for String Manipulation

This article explains how to use PHP's substr() function to extract portions of a string, covering its syntax, parameters, and practical examples including specifying start positions, lengths, and negative offsets for flexible substring extraction.

BackendPHPString
0 likes · 4 min read
Using PHP's substr() Function for String Manipulation
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Zigzag Conversion Algorithm (LeetCode 6)

The Zigzag Conversion algorithm rearranges an input string into a Z‑shaped pattern across a specified number of rows, tracks the current row while toggling direction at the top and bottom, stores characters per row, and finally concatenates the rows to produce the transformed string, with reference implementations in C++, Java, and Python.

LeetCodePythonString
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)
php Courses
php Courses
Apr 22, 2024 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how PHP's implode() function joins array elements into a string, covering its syntax, basic usage with custom delimiters, handling of nested arrays, and the special case of omitting the glue parameter, illustrated with clear code examples.

ArrayBackendPHP
0 likes · 4 min read
Using PHP implode() to Join Array Elements into a String
Ops Development & AI Practice
Ops Development & AI Practice
Apr 19, 2024 · Backend Development

How to Handle Mixed Quotes in Go Strings Without Errors

This guide explains four practical ways to embed both double quotes and backticks in Go strings—using backticks, double‑quoted literals with escaping, concatenation, and fmt.Sprintf—so developers can choose the most readable solution for their specific scenario.

BackendStringbackticks
0 likes · 4 min read
How to Handle Mixed Quotes in Go Strings Without Errors
php Courses
php Courses
Apr 19, 2024 · Backend Development

Using PHP strpos() to Find Character and Substring Positions

This article explains the PHP strpos() function, its syntax, parameters, and demonstrates how to locate characters or substrings within a string using various examples, including offset handling, with complete code snippets for practical reference.

StringTutorialsearch
0 likes · 5 min read
Using PHP strpos() to Find Character and Substring Positions
php Courses
php Courses
Apr 3, 2024 · Backend Development

Using PHP's strval Function to Convert Variables to Strings

This article explains PHP's built‑in strval function, showing how it converts integers, floats, booleans, arrays, and objects into string representations, provides sample code, and highlights important considerations such as the default “Array” and “Object” outputs and alternative methods like json_encode.

PHPStringstrval
0 likes · 4 min read
Using PHP's strval Function to Convert Variables to Strings
Java Captain
Java Captain
Mar 25, 2024 · Fundamentals

Understanding the Underlying Implementation of Java String Immutability

This article explains why Java's String class is immutable, detailing the benefits such as thread safety, cached hash codes, and string pooling, and describes the internal mechanisms—including a private final char array, creation of new objects on concatenation, and the intern method—that enforce this immutability.

Memory ManagementStringString pool
0 likes · 5 min read
Understanding the Underlying Implementation of Java String Immutability
php Courses
php Courses
Mar 18, 2024 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode function concatenates array elements into a single string, demonstrates its default behavior and custom separator usage with clear code examples, and shows the resulting output for both comma‑separated and hyphen‑separated strings.

ArrayPHPString
0 likes · 3 min read
Using PHP implode() to Join Array Elements into a String
Java Captain
Java Captain
Mar 7, 2024 · Fundamentals

Understanding Java's String Class: Immutability, Methods, and Best Practices

This article reflects on the author's journey with Java, explaining the immutable nature of the String class, its rich set of methods—including substring, indexOf, replace, and regex support—while also discussing its limitations and alternatives like StringBuilder.

RegularExpressionsStringfundamentals
0 likes · 5 min read
Understanding Java's String Class: Immutability, Methods, and Best Practices
Architect's Guide
Architect's Guide
Feb 20, 2024 · Backend Development

Null Checks and Optional Usage in Java

This article explains common null‑checking techniques for objects, Lists, and Strings in Java, introduces the Optional class with its creation methods and typical usage scenarios, and compares various utility libraries to help avoid NullPointerException in real‑world projects.

ListStringbest-practices
0 likes · 6 min read
Null Checks and Optional Usage in Java
php Courses
php Courses
Jan 18, 2024 · Backend Development

Using PHP str_word_count() Function to Count Words in a String

This article explains the PHP str_word_count() function, detailing its syntax, parameters, and multiple code examples that demonstrate counting words, retrieving word lists, obtaining word positions, customizing ignored characters, and using regular expressions for word matching.

BackendStringexample
0 likes · 4 min read
Using PHP str_word_count() Function to Count Words in a String
php Courses
php Courses
Jan 17, 2024 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function concatenates array elements into a string, demonstrates basic and advanced usages including handling nested arrays and omitting the separator, and provides clear code examples for each scenario.

ArrayBackendPHP
0 likes · 4 min read
Using PHP implode() to Join Array Elements into a String
php Courses
php Courses
Jan 15, 2024 · Backend Development

Using PHP mb_substr() for Multibyte String Truncation

The article explains the PHP mb_substr() function, its syntax, parameter meanings, and provides multiple code examples demonstrating how to correctly truncate multibyte strings such as Chinese or Japanese without causing garbled output, along with important usage notes.

BackendPHPString
0 likes · 4 min read
Using PHP mb_substr() for Multibyte String Truncation
php Courses
php Courses
Nov 16, 2023 · Backend Development

Using PHP str_ends_with() Function: Syntax, Usage, and Case Sensitivity

This article explains PHP's str_ends_with() function, detailing its syntax, parameters, return values, usage examples, case‑sensitivity considerations, and how to combine it with strtolower() for case‑insensitive checks, while also noting its limitation to end‑string matching.

PHPStringTutorial
0 likes · 4 min read
Using PHP str_ends_with() Function: Syntax, Usage, and Case Sensitivity
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 13, 2023 · Backend Development

What’s New in Java? Key JDK Changes from String to Private Interface Methods

This article reviews the major updates introduced in recent JDK releases, covering the shift from char[] to byte[] in String, expanded pattern‑matching in switch, removal of biased locking, G1 garbage‑collector evolution, JDK/JRE consolidation, generics specialization, and the addition of private methods in interfaces.

Garbage CollectionGenericsJDK
0 likes · 9 min read
What’s New in Java? Key JDK Changes from String to Private Interface Methods
php Courses
php Courses
Sep 22, 2023 · Backend Development

Using PHP ord() Function to Retrieve ASCII Values of Characters

This article explains PHP's built-in ord() function, detailing its syntax, parameters, return values, and usage examples—including single character, string, and looped character processing—while noting its limitations with multibyte characters and providing guidance on handling such cases.

ASCIIStringord()
0 likes · 4 min read
Using PHP ord() Function to Retrieve ASCII Values of Characters
Java Architecture Diary
Java Architecture Diary
Sep 18, 2023 · Fundamentals

What’s New in Java 21? Explore Updated String, Collections, and More

This article walks through the latest Java 21 additions—including enhanced String search methods, new Emoji utilities in Character, repeat() for StringBuilder and StringBuffer, updated Charset factories, named regex groups, SequencedCollection interfaces, localized DateTimeFormatter patterns, extended Math and BigInteger operations, and improved Thread and Future APIs—providing code examples and usage guidance.

APICollectionsString
0 likes · 13 min read
What’s New in Java 21? Explore Updated String, Collections, and More
php Courses
php Courses
Sep 14, 2023 · Backend Development

Understanding and Using the PHP trim() Function

This article explains the PHP trim() function, its syntax, default character list, and provides clear examples of removing whitespace and specific characters, while also noting related functions ltrim() and rtrim() for targeted trimming.

.trimStringphp-functions
0 likes · 4 min read
Understanding and Using the PHP trim() Function
php Courses
php Courses
Sep 12, 2023 · Backend Development

Using PHP's wordwrap() Function for String Wrapping

This article explains PHP's wordwrap() function, detailing its syntax, parameters, and providing multiple practical code examples demonstrating how to wrap long strings, customize break characters, handle word cutting, and process multi-line or special-character strings.

StringTutorialwordwrap
0 likes · 5 min read
Using PHP's wordwrap() Function for String Wrapping
php Courses
php Courses
Sep 7, 2023 · Backend Development

PHP strtoupper() Function: Syntax, Parameters, Return Value, Usage Examples, and Important Notes

This article explains PHP's strtoupper() function, covering its syntax, required string parameter, return value, multiple usage examples—including full string conversion, partial conversion, word capitalization, regex-based conversion, and multibyte handling—along with key considerations such as case sensitivity and non‑letter character behavior.

PHPStringstrtoupper
0 likes · 5 min read
PHP strtoupper() Function: Syntax, Parameters, Return Value, Usage Examples, and Important Notes
php Courses
php Courses
Aug 23, 2023 · Backend Development

Using PHP substr_count() to Count Substring Occurrences

This article explains the PHP substr_count() function, its syntax, parameters, and demonstrates how to count substring occurrences with optional offset, length, and case‑sensitivity options through clear code examples.

OFFSETString_count
0 likes · 4 min read
Using PHP substr_count() to Count Substring Occurrences
Architecture Digest
Architecture Digest
May 23, 2023 · Databases

Redis Data Types: Overview, Use Cases, and Internal Implementations

This article provides a comprehensive English guide to Redis’s ten core data types—including strings, hashes, lists, sets, sorted sets, streams, hyperloglog, bitmap, and bitfield—detailing their definitions, typical application scenarios, underlying storage mechanisms, conversion rules, and sample Redis commands with code examples.

Data TypesListSet
0 likes · 31 min read
Redis Data Types: Overview, Use Cases, and Internal Implementations
Laravel Tech Community
Laravel Tech Community
May 9, 2023 · Backend Development

Common PHP String Manipulation Functions and Examples

This article explains several essential PHP string functions—including substr, mb_substr, stripos with substr, and direct character indexing—providing clear code examples and output demonstrations for handling both ASCII and multibyte characters.

BackendStringmb_substr
0 likes · 3 min read
Common PHP String Manipulation Functions and Examples
Selected Java Interview Questions
Selected Java Interview Questions
Apr 7, 2023 · Backend Development

Understanding Object Creation in Java: How Many Objects Are Created by `String s = new String("xyz")`?

This article explains the evolution of the Java method area, analyzes bytecode generated by `String s = new String("xyz")` and `String s = "xyz"`, and clarifies why the expression creates one or two objects depending on whether the literal already exists in the constant pool.

BackendConstant PoolObject Creation
0 likes · 7 min read
Understanding Object Creation in Java: How Many Objects Are Created by `String s = new String("xyz")`?
NiuNiu MaTe
NiuNiu MaTe
Feb 22, 2023 · Databases

Master Redis String Internals: Common Interview Questions & Answers

This article reviews essential Redis string concepts, covering typical interview questions, encoding types, the EMBSTR threshold, SDS structure, and memory allocation details to help readers solidify their understanding of Redis string implementation.

BackendMemory ManagementSDS
0 likes · 8 min read
Master Redis String Internals: Common Interview Questions & Answers
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 29, 2022 · Fundamentals

How to Achieve Zero‑Copy String Construction Across JDK Versions

This article explains the internal differences of Java's String implementation from JDK 8 to JDK 9+, demonstrates how to use sun.misc.Unsafe and trusted MethodHandles.Lookup to build zero‑copy String objects, and provides practical code examples for high‑performance string handling.

MethodHandlesStringZeroCopy
0 likes · 12 min read
How to Achieve Zero‑Copy String Construction Across JDK Versions
Top Architect
Top Architect
Nov 17, 2022 · Fundamentals

Understanding Java String Object Creation and Memory Allocation

This article explains how Java handles string literals and new String objects, detailing the creation of objects in the constant pool and heap, the resulting memory layout, and the outcomes of reference comparisons, while also providing code examples and additional resources.

Constant PoolMemory ManagementObject Creation
0 likes · 5 min read
Understanding Java String Object Creation and Memory Allocation
Java Backend Technology
Java Backend Technology
Sep 25, 2022 · Fundamentals

6 Common Java Pitfalls Every Developer Should Avoid

This article highlights six frequent Java pitfalls—including misuse of == with Integer, Objects.equals quirks, BigDecimal precision loss, Stream filter side‑effects, auto‑unboxing null errors, and String replace nuances—providing code examples and best‑practice recommendations to help developers write safer, more reliable code.

Auto-unboxingBigDecimalPitfalls
0 likes · 12 min read
6 Common Java Pitfalls Every Developer Should Avoid