Tagged articles
30 articles
Page 1 of 1
JavaScript
JavaScript
Nov 25, 2025 · Fundamentals

Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript

While the strict equality operator (===) works well for most cases, it fails with special values like NaN and distinguishes +0 and -0 incorrectly; JavaScript’s Object.is() method provides a more precise same‑value equality, correctly handling these edge cases and improving comparisons in Maps, Sets, and other structures.

+0 -0JavaScriptNaN
0 likes · 5 min read
Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript
Python Programming Learning Circle
Python Programming Learning Circle
Sep 1, 2025 · Fundamentals

Why Python Dictionary Keys Overwrite Each Other: Hashing, Equality & Identity

This article explores three Python quirks: how dictionary keys with equal numeric values overwrite each other due to hashing and equality rules, why a return statement inside a try block is superseded by a return in the finally clause, and how object identity and id values behave, including hash collisions and memory reuse.

Exception HandlingHashingPython
0 likes · 4 min read
Why Python Dictionary Keys Overwrite Each Other: Hashing, Equality & Identity
JavaScript
JavaScript
Aug 28, 2025 · Frontend Development

Why You Should Ban == in JavaScript: Mastering Implicit Type Coercion

This article explains why top tech companies forbid the loose equality operator (==) in JavaScript, detailing its unpredictable implicit type coercion, contrasting it with strict equality (===), and showing common pitfalls and safer alternatives for robust, maintainable code.

== vs ===Strict EqualityType Coercion
0 likes · 5 min read
Why You Should Ban == in JavaScript: Mastering Implicit Type Coercion
AndroidPub
AndroidPub
Jun 26, 2025 · Fundamentals

Why Kotlin Data Class Lambdas Break Equality and How to Fix It

This article explains how Kotlin treats lambda expressions as distinct objects, causing two data class instances with identical lambda bodies to be unequal, demonstrates the problem with code examples, and shows how extracting the lambda into a shared reference restores proper equality, highlighting implications for equals, hashCode, and Compose.

Code ExampleKotlindata class
0 likes · 3 min read
Why Kotlin Data Class Lambdas Break Equality and How to Fix It
JavaScript
JavaScript
Mar 9, 2025 · Frontend Development

Why Top Tech Companies Ban == in JavaScript: The Case for ===

Major tech firms such as Google, Airbnb, and Microsoft forbid the use of JavaScript’s == operator and advocate === because it avoids unpredictable type coercion, improves code readability and maintainability, offers better performance, reduces bugs, and enhances security, especially in critical applications.

JavaScriptType Coercionbest practices
0 likes · 3 min read
Why Top Tech Companies Ban == in JavaScript: The Case for ===
Model Perspective
Model Perspective
Nov 28, 2023 · Fundamentals

The 5 Greatest Mathematical Symbols and Why They Changed the World

This article explores five of the most iconic mathematical symbols—e, π, i, 0, and =—detailing their definitions, historical origins, and profound impact across calculus, physics, engineering, computer science, and beyond, illustrating how each symbol bridges abstract theory and real‑world applications.

ZeROe constantequality
0 likes · 7 min read
The 5 Greatest Mathematical Symbols and Why They Changed the World
Java High-Performance Architecture
Java High-Performance Architecture
Feb 20, 2023 · Backend Development

Why Objects.equals Beats a.equals in Java: Null Safety and Source Code Explained

This article explains how Java's Objects.equals differs from the traditional a.equals(b) method, covering null and empty‑string scenarios, demonstrating safe comparisons without NullPointerExceptions, and includes a concise analysis of the underlying source code and the distinction between a==b and a.equals(b).

Objects.equalsequalityjava
0 likes · 5 min read
Why Objects.equals Beats a.equals in Java: Null Safety and Source Code Explained
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Nov 4, 2022 · Game Development

Inclusive Language in Game Localization: Principles, Practices, and Multilingual Design

This article examines the importance of inclusive language in game localization, defines its principles, outlines common pitfalls such as gendered and racial terms, presents practical guidelines and multilingual strategies, and argues that adopting equitable language fosters a fairer, more welcoming gaming experience for diverse players worldwide.

DiversityGaming Industryequality
0 likes · 11 min read
Inclusive Language in Game Localization: Principles, Practices, and Multilingual Design
IT Services Circle
IT Services Circle
Jul 16, 2022 · Fundamentals

Common Java Pitfalls: Equality, Objects.equals, BigDecimal, Streams, Autoboxing, and String Replacement

This article explains six frequent Java pitfalls—including misuse of the == operator with Integer, subtle bugs in Objects.equals, precision loss with BigDecimal constructors, reference sharing in Stream.filter, NullPointerExceptions from autounboxing, and differences between replace, replaceAll, and replaceFirst—providing code examples and best‑practice recommendations.

AutoboxingBigDecimalPitfalls
0 likes · 12 min read
Common Java Pitfalls: Equality, Objects.equals, BigDecimal, Streams, Autoboxing, and String Replacement
Su San Talks Tech
Su San Talks Tech
Jul 15, 2022 · Fundamentals

6 Common Java Pitfalls Every Developer Should Avoid

This article walks Java developers through six frequent pitfalls—including misuse of the == operator, subtle bugs in Objects.equals, precision issues with BigDecimal, unexpected Stream filter behavior, autoboxing/unboxing surprises, and string replace quirks—offering clear explanations, code examples, and best‑practice solutions to help avoid costly bugs.

AutoboxingBigDecimalStreams
0 likes · 13 min read
6 Common Java Pitfalls Every Developer Should Avoid
政采云技术
政采云技术
Jun 21, 2022 · Frontend Development

How to Make the Expression x == 1 && x == 2 && x == 3 True in JavaScript

This article explains how to satisfy the JavaScript expression x == 1 && x == 2 && x == 3 by understanding the differences between loose (==) and strict (===) equality, type coercion rules, and implementing custom valueOf or toString methods on objects to increment a counter during each comparison.

Loose EqualityToPrimitiveequality
0 likes · 9 min read
How to Make the Expression x == 1 && x == 2 && x == 3 True in JavaScript
IT Services Circle
IT Services Circle
Mar 30, 2022 · Fundamentals

Understanding Objects.equals and Common Pitfalls in Java Equality Checks

This article explains how Java's Objects.equals works, compares it with the == operator and the equals method of primitive wrappers, demonstrates typical null‑pointer and type‑mismatch pitfalls, and provides practical code examples and solutions for reliable value comparison.

Objects.equalsTypeCastingequality
0 likes · 14 min read
Understanding Objects.equals and Common Pitfalls in Java Equality Checks
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2020 · Fundamentals

Five Common Java String Interview Questions with Detailed Answers

This article walks through five typical Java String interview questions, providing code examples, execution results, and in‑depth explanations of reference equality, the string constant pool, object creation, and compile‑time versus runtime concatenation to help readers master Java string behavior.

MemoryStringequality
0 likes · 8 min read
Five Common Java String Interview Questions with Detailed Answers
Python Programming Learning Circle
Python Programming Learning Circle
Jun 2, 2020 · Fundamentals

Understanding the Difference Between == and is in Python 3.6

This article examines the implementation details of Python's == and is operators, showing how both are compiled to COMPARE_OP bytecode with different opcodes, exploring the underlying C functions like cmp_outcome and object_richcompare, and explaining the rich comparison protocol and its default behavior.

ComparisonPythonbytecode
0 likes · 11 min read
Understanding the Difference Between == and is in Python 3.6
ITPUB
ITPUB
Mar 25, 2017 · Fundamentals

Why 5×3 ≠ 5+5+5: Understanding Equality vs Equivalence in Math and Code

The article explores why mathematically equal expressions like 5×3 and 5+5+5 are not necessarily equivalent, explains the distinction between equality and equivalence, illustrates with real‑world and programming examples such as JavaScript’s == versus === and matrix multiplication rules, and discusses teaching implications.

JavaScriptMatrix Multiplicationeducation
0 likes · 6 min read
Why 5×3 ≠ 5+5+5: Understanding Equality vs Equivalence in Math and Code