Tagged articles
NULL
63 articles · Page 1 of 1
This article explains why SQL NULL represents an unknown state rather than a value, how three-valued logic (TRUE, FALSE, UNKNOWN) breaks equality comparisons, and demonstrates practical pitfalls with WHERE clauses, NOT IN subqueries, aggregate functions, and MySQL's NULL-safe operator.
MySQLNOT IN pitfallNULL
0 likes · 9 min read


ITPUBAug 14, 2026 · Databases
This article explains why MySQL discourages using NULL as a default column value, demonstrates how NULL affects indexing, comparisons, and aggregate functions, and shows through concrete examples that improper NULL handling can lead to unexpected query results and performance degradation.
AggregateBest PracticesIFNULL
0 likes · 13 min read

The article explains that IN is fine for small constant lists, but NOT IN can produce unexpected empty results when NULL values appear, while EXISTS (or NOT EXISTS) often better expresses existence checks; it also stresses the decisive role of proper indexing and using EXPLAIN to verify performance.
NOT INNULLSQL
0 likes · 10 min read

The article explains that NULL is a macro equal to integer 0, which can cause type‑mixing errors in overload resolution and template deduction, while the C++11 keyword nullptr has its own std::nullptr_t type, providing strict pointer semantics, eliminating overload ambiguities, improving safety, readability, and integration with modern C++ features.
C++NULLfunction overload
0 likes · 24 min read

The article explains why major tech companies discourage using NULL in MySQL, covering its meaning as an unknown state, three-valued logic pitfalls such as NOT IN subqueries, index inefficiencies, aggregate function quirks, storage overhead, Java handling issues, and offers practical alternatives like NOT NULL constraints with sensible defaults.
Database DesignIndex OptimizationMySQL
0 likes · 11 min read


ITPUBJan 19, 2026 · Databases
The article explains how using IN and NOT IN in SQL can dramatically hurt performance and produce incorrect results, especially with large tables or NULL values, and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOIN with concrete code examples.
NOT INNULLSQL
0 likes · 6 min read

This article explains how improper use of NULL in MySQL columns can lead to serious production incidents, outlines official recommendations against NULL, demonstrates its impact on queries, indexes, and storage, and provides practical guidelines for when to use or avoid NULL values.
Database DesignIndexingMySQL
0 likes · 13 min read


ITPUBDec 8, 2025 · Databases
This article examines MySQL’s handling of nullable columns, comparing the storage implications of saving NULL versus assigning default values, explains InnoDB row formats (REDUNDANT, COMPACT, DYNAMIC, COMPRESSED), and outlines the effects on storage space, indexing, and query behavior.
Database DesignInnoDBMySQL
0 likes · 6 min read

The article explains why using IN and NOT IN in SQL queries can lead to poor performance and incorrect results, especially with large tables or NULL values, and demonstrates how replacing them with EXISTS, NOT EXISTS, or appropriate JOINs yields faster, reliable outcomes.
NOT INNULLSQL
0 likes · 6 min read

Using the literal string "null" as a username can silently bypass null checks, create phantom users, pollute databases, and cause debugging nightmares, so this article explains the pitfalls, shows real‑world examples, and provides concrete backend, frontend, and database validation techniques to avoid such bugs.
BackendNULLfrontend
0 likes · 6 min read

The article examines whether a nullable MySQL column should store NULL or a business default, detailing InnoDB row formats, storage overhead, record headers, hidden columns, and the trade‑offs of NOT NULL versus NULL definitions.
Database DesignInnoDBMySQL
0 likes · 7 min read

This article explains how MySQL stores rows, compares the four InnoDB row formats, and evaluates the trade‑offs of using NULL versus explicit default values for nullable columns, covering storage overhead, indexing behavior, and best‑practice design recommendations.
Database DesignInnoDBMySQL
0 likes · 7 min read

This article examines how MySQL stores rows in InnoDB, compares the four row formats, shows how NULL and default values affect storage, hidden columns, and record headers, and discusses the trade‑offs of defining columns as NOT NULL or allowing NULL values.
InnoDBMySQLNULL
0 likes · 8 min read

This article explains how MySQL stores rows using different InnoDB row formats, illustrates the internal layout of variable‑length columns and hidden fields, and compares the trade‑offs of defining columns as NOT NULL versus allowing NULL values, offering practical guidance for database design.
Database DesignInnoDBMySQL
0 likes · 8 min read

This article explains why using IN and NOT IN in SQL queries often leads to poor performance and incorrect results, demonstrates common pitfalls with examples—including NULL handling—and shows safer alternatives such as EXISTS, NOT EXISTS, and JOINs.
NOT INNULLSQL
0 likes · 5 min read

The article explains why the SQL IN and NOT IN operators often cause poor performance and incorrect results—especially with large tables or NULL values—and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOIN with clear code examples.
NOT INNULLSQL
0 likes · 5 min read

The article explains how using IN and NOT IN in SQL can lead to full‑table scans, ignore indexes, produce incorrect results when columns mismatch or contain NULLs, and shows safer alternatives like EXISTS, NOT EXISTS, and JOIN with concrete code examples and benchmark timings.
NOT INNULLSQL
0 likes · 6 min read

This article explains how treating the string "null" as a valid username can cause user‑experience glitches, log‑debugging nightmares, database contamination, security risks, and automation failures, and provides concrete backend, frontend, and database validation techniques to avoid these pitfalls.
NULLusername
0 likes · 5 min read

Developers often mistake the string "null" for an actual null value, leading to unexpected bugs such as phantom users, logging chaos, database contamination, and security risks; this article explains why this happens and provides practical backend, frontend, and database validation strategies to avoid the pitfalls.
BackendNULLSecurity
0 likes · 5 min read

The article explains the meaning of null in programming, why users registering with "null" can crash backend logic, and offers practical front‑end validation, back‑end safeguards, and logging strategies to prevent such human‑driven edge cases from breaking applications.
BackendNULLedge case
0 likes · 5 min read

This article explains why the SQL keywords IN and NOT IN often lead to poor performance and incorrect results—especially with large tables or NULL values—and shows how using EXISTS, NOT EXISTS or JOIN can provide faster, more reliable queries.
NOT INNULLSQL
0 likes · 6 min read

The article explains that using IN and NOT IN in SQL can lead to poor performance because they bypass indexes and cause incorrect results when NULL values are present, and it recommends replacing them with EXISTS, NOT EXISTS, or JOIN constructs for reliable and faster queries.
NOT INNULLSQL
0 likes · 4 min read

The article explains that using IN and NOT IN in SQL can lead to poor performance, index misuse, and incorrect results especially with NULL values, and recommends replacing them with EXISTS/NOT EXISTS or JOIN constructs for more reliable and efficient queries.
Database PerformanceNOT INNULL
0 likes · 5 min read

The article explains why the SQL keywords IN and NOT IN should be avoided due to poor performance, index usage issues, and unexpected results with NULL values, and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOIN with practical code examples.
NOT INNULLSQL
0 likes · 5 min read


ITPUBSep 1, 2024 · Databases
This article demonstrates how a non‑unique indexed column that allows NULL values behaves with the != operator in MySQL, showing why null rows are omitted from result sets, how index usage changes, and how to rewrite queries with OR or UNION to obtain correct results while preserving performance.
EXPLAINIndexMySQL
0 likes · 6 min read

ConcurrentHashMap forbids null keys and values because allowing nulls creates ambiguous results in concurrent environments, making it impossible to distinguish between a missing entry and an entry explicitly mapped to null, which could compromise thread safety, as explained by Doug Lea’s design rationale.
ConcurrentHashMapJavaNULL
0 likes · 4 min read

NULL, the ubiquitous placeholder for missing values, can silently introduce bugs, crashes, and data inconsistencies across languages and databases, but by understanding its pitfalls and applying strategies like optional types, default values, Null Object patterns, and proper database constraints, developers can significantly improve code reliability.
Best PracticesNULLOptional
0 likes · 10 min read

The article explains why using IN and NOT IN in SQL queries can lead to poor performance, index bypass, unexpected results with NULL values, and subtle bugs, and it recommends safer alternatives such as EXISTS, NOT EXISTS, and JOIN constructs.
NOT INNULLSQL
0 likes · 5 min read

This article explains why using IN and NOT IN in SQL queries often leads to poor performance and incorrect results, and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOINs with practical code examples.
NOT INNULLSQL
0 likes · 5 min read

The article explains that using IN and NOT IN in SQL can cause severe performance degradation and produce incorrect results, especially with large tables, missing indexes, or NULL values, and recommends using EXISTS, NOT EXISTS, or JOINs as safer alternatives.
NOT INNULLSQL
0 likes · 4 min read


21CTOFeb 18, 2024 · Databases
This article explains why setting NULL as a column's default in MySQL can lead to index inefficiencies, unpredictable query results, and performance issues, and demonstrates proper handling of NULL with examples, operators, functions, and indexing considerations.
Database DesignIndexMySQL
0 likes · 13 min read

This article explains why defining columns with a default NULL in MySQL is misleading, demonstrates how NULL interacts with indexes, operators, aggregate functions, and sorting, and provides practical examples and recommendations to avoid performance and correctness issues.
IndexMySQLNULL
0 likes · 13 min read

This article explains why using NULL columns in MySQL can lead to extra storage, index complications, query errors, and performance degradation, and provides concrete reasons and code examples showing how to replace NULL with meaningful defaults for more reliable database design.
Database DesignMySQLNULL
0 likes · 8 min read

This article explains the nature of NULL in MySQL, demonstrates why comparisons with = or != fail, shows the correct IS NULL/IS NOT NULL syntax, and discusses how NULL behaves with DISTINCT, GROUP BY, ORDER BY, and aggregate functions.
MySQLNULLSQL
0 likes · 6 min read

This article examines why MySQL columns are often defined as NULL, debunks common myths, and presents several technical reasons—including storage overhead, index complications, query pitfalls, and timestamp issues—that justify using NOT NULL with meaningful default values for better performance and data integrity.
MySQLNULLSQL
0 likes · 9 min read

This article explains why using NULL in MySQL tables hurts storage, index size, query correctness, and update performance, and shows concrete examples, benchmark data, and official documentation that justify preferring NOT NULL with sensible default values.
Database DesignIndexingMySQL
0 likes · 9 min read

This article explains why using NULL columns in MySQL can hurt performance, complicate indexing and queries, and increase storage, while offering practical reasons and examples for preferring NOT NULL constraints and meaningful default values.
MySQLNULL
0 likes · 9 min read

The article examines the drawbacks of using NULL columns in MySQL, explaining how they increase storage space, complicate indexing and query optimization, and can cause performance issues, while providing examples and best practices for defining NOT NULL constraints and handling data correctly.
MySQLNULLindexes
0 likes · 9 min read

This article explains why a MySQL UNIQUE index does not prevent duplicate rows when indexed columns contain NULL, explores the complications of logical‑delete tables, and presents practical solutions such as incrementing delete status, adding timestamps, delete‑id keys, hash fields, and proper batch inserts.
Database DesignIndex OptimizationMySQL
0 likes · 15 min read

This article explains how using IN and NOT IN in SQL queries can lead to poor performance, index misuse, and incorrect results—especially with NULLs—and shows how EXISTS, NOT EXISTS, and JOINs provide more reliable and efficient solutions.
NOT INNULLSQL
0 likes · 5 min read

This article explains why the IN and NOT IN operators often lead to poor performance and incorrect results in SQL queries, demonstrates the issues with concrete examples involving large tables and NULL values, and recommends using EXISTS, NOT EXISTS or JOIN as more reliable alternatives.
Database PerformanceNULLSQL
0 likes · 6 min read

This article explains how MySQL treats NULL values, the behavior of IS NULL, IS NOT NULL, the spaceship operator, IFNULL, and demonstrates with practical examples how NULL affects indexing, query performance, aggregation functions, and sorting, while offering recommendations for schema design.
MySQLNULLSQL
0 likes · 12 min read


ByteFEJan 12, 2022 · Fundamentals
This article explains the conceptual and practical differences between JavaScript's null and undefined values, covering their definitions, type checking methods, comparison behavior, arithmetic conversion, JSON serialization, and best practices for usage.
JSONJavaScriptNULL
0 likes · 10 min read

This article explains how the MySQL system variable explicit_defaults_for_timestamp controls the default and NULL handling of TIMESTAMP columns, demonstrates the differences between OFF and ON settings with practical tests, and discusses why the parameter is being deprecated for stricter time‑data management.
Database MigrationMySQLNULL
0 likes · 10 min read

This article explains how MySQL treats NULL values, the operators and functions for handling them, demonstrates that IS NULL can still use indexes, shows the impact on aggregate functions, distinct, group by and order by, and recommends defining columns NOT NULL to avoid performance pitfalls.
IndexNULLSQL
0 likes · 15 min read

This article explains the special nature of NULL in SQL, how to correctly test for NULL using IS NULL, the three‑valued logic of true/false/unknown, and the pitfalls of NOT, NOT IN, and Oracle’s handling of empty strings versus NULL.
IS NULLNULLSQL
0 likes · 6 min read

This article explains the special nature of NULL in relational databases, demonstrates the correct use of IS NULL versus = NULL, explores three-valued logic, and clarifies how NULL interacts with NOT, NOT IN, and empty strings across different database systems.
IS NULLNOT INNULL
0 likes · 6 min read

This article explains why concatenating a null String with another string in Java produces the unexpected "nullhello world" output, debunks common misconceptions, and details the compiler's StringBuilder optimization, bytecode behavior, and related null‑handling mechanisms.
CompilerJavaNULL
0 likes · 6 min read

The article explains why both equality and inequality comparisons with a NULL value in MySQL return no rows, illustrating common interview misconceptions and emphasizing the need to grasp NULL semantics for reliable database programming.
MySQLNULLSQL
0 likes · 4 min read

This article explains why setting MySQL columns to NOT NULL improves query optimization, reduces index complexity, saves storage space, and prevents unexpected behavior in calculations, while also detailing default values, handling of NULL in aggregates, and the internal row format differences between NULLable and NOT NULL columns.
Database DesignIndexingNOT NULL
0 likes · 12 min read

This article explains why defining columns as NOT NULL in MySQL improves query optimization, reduces index complexity and storage overhead, and avoids unexpected behavior in aggregates and calculations, while also covering default values, row formats, and practical testing results.
Database DesignIndex OptimizationMySQL
0 likes · 11 min read

This article explains how MySQL treats NULL values, why columns defined with NULL can invalidate indexes, demonstrates the behavior of IS NULL, IS NOT NULL, the spaceship operator, IFNULL, COUNT, DISTINCT, GROUP BY and ORDER BY with NULLs, and offers practical recommendations for schema design.
Database DesignMySQLNULL
0 likes · 13 min read

This article explains five common issues caused by NULL values in MySQL columns—data loss with COUNT, DISTINCT, and inequality queries, NULL‑induced NULL results in SUM leading to NPE, increased query complexity, and index behavior—while providing practical SQL solutions and best‑practice recommendations.
Best PracticesMySQLNULL
0 likes · 8 min read

The article explains why using NULL columns in MySQL can lead to extra storage, index complications, query errors, and performance degradation, and provides concrete examples and best‑practice recommendations to prefer NOT NULL constraints whenever possible.
Database DesignIndex OptimizationMySQL
0 likes · 8 min read

This article explains why using NULL columns in MySQL can hurt performance and increase storage, debunks common myths with official documentation, and provides practical reasons and code examples for preferring NOT NULL constraints in table design.
MySQLNULLSQL
0 likes · 9 min read

This article explains why some Map implementations reject null values, how using custom objects as keys can cause unexpected behavior, and why ConcurrentHashMap does not guarantee thread safety for compound operations, offering practical guidelines to prevent these frequent Java collection bugs.
ConcurrentHashMapHashMapJava
0 likes · 10 min read

This article examines MySQL column attributes—especially NULL vs NOT NULL handling, the impact of NULL on concatenation, COUNT and indexing, as well as AUTO_INCREMENT behaviors, lock modes, step/offset settings, and overflow scenarios—to help developers write more efficient and reliable SQL.
Database PerformanceMySQLNULL
0 likes · 10 min read

This guide explains the various special file types under Linux's /dev directory, shows how to identify them with ls, and demonstrates practical uses of /dev/null, /dev/full, /dev/zero, /dev/random, /dev/urandom, and /dev/pts through concrete command‑line examples.
LinuxNULLdev
0 likes · 5 min read

This article explains the meaning of NULL in SQL, distinguishes the two conceptual types of unknown and not‑applicable, describes three‑valued logic, shows why IS NULL must be used instead of = NULL, and warns about pitfalls such as NOT IN with NULL and improper CASE expressions.
IS NULLNOT EXISTSNOT IN
0 likes · 17 min read

This article explains the differences between NULL and empty strings in MySQL, covering how NULL is stored, its impact on numeric and string operations, ordering, grouping, aggregation functions, and provides practical code examples and recommendations for schema design.
Best PracticesMySQLNULL
0 likes · 8 min read

This article explains why using NULL columns in MySQL can lead to extra storage, complex indexing, and query pitfalls, and provides concrete reasons and examples showing how NOT NULL constraints improve data integrity and performance.
Database DesignIndexingMySQL
0 likes · 9 min read


ITPUBJun 2, 2016 · Fundamentals
The article examines why major languages like Java and C# still include null references, presenting expert insights from Eric Lippert and others on the complex trade‑offs—such as orthogonality, compatibility, interop, performance, and semantic consistency—that influence language designers despite known pitfalls.
C#JavaNULL
0 likes · 7 min read

This article explains the role of the null keyword in Java, its default value for reference types, common pitfalls such as NullPointerException caused by autoboxing, improper primitive assignments, instanceof checks, static method calls on null references, and safe handling techniques to write null‑safe code.
AutoboxingBest PracticesInstanceof
0 likes · 12 min read
