Terms starting with "N"
NoSQL Injection
PHP 5.4+
2
Attacker-controlled input embedded into NoSQL queries (MongoDB, Redis, Couchbase) that subverts query intent — bypassing auth, exfiltrating data, or executing server-side code.
CWE-943 OWASP A3:2021
1mo ago
security intermediate
8.8
A performance anti-pattern where fetching N records triggers N additional queries — one per record — instead of a single JOIN.
2mo ago
database intermediate
Named Arguments (PHP 8.0)
PHP 8.0+
PHP 8.0 named arguments let you pass values by parameter name — skipping optional params, self-documenting calls, and enabling out-of-order argument passing.
2mo ago
php beginner
Named Arguments in Attributes
PHP 8.1+
PHP 8.1+ allows named arguments inside attribute constructors — #[Route(path: '/home', methods: ['GET'])] — making attribute usage self-documenting.
2mo ago
php intermediate
Naming Test Methods (Given/When/Then)
Test method names should describe behaviour, not implementation — test_calculateTotal_givenDiscountedItems_returnsReducedPrice beats test_calculateTotal().
2mo ago
testing beginner
new in Initializers (PHP 8.4)
PHP 8.4+
PHP 8.4 allows 'new ClassName()' expressions in default parameter values, attribute arguments, and static property initialisers — removing the need for null defaults combined with late assignment in constructors.
2mo ago
php intermediate
Null Byte in File Paths (Legacy PHP)
PHP 3.0+
Null bytes (%00) in file paths truncated strings at the C level in PHP < 5.3.4 — PHP 5.3.4+ throws a warning, PHP 7 throws ValueError for NUL in paths.
2mo ago
security advanced
Null Coalescing ?? Operator (PHP 7.0)
PHP 7.0+
PHP 7.0's ?? operator returns the left side if it exists and isn't null, otherwise the right — replacing isset($x) ? $x : $default with $x ?? $default.
2mo ago
php beginner
Null Reference Errors
PHP 5.0+
Errors caused by calling methods or accessing properties on null — PHP's 'Call to a member function X() on null' and JavaScript's 'Cannot read properties of null' are the most common runtime errors in both languages.
2mo ago
php beginner
number_format() & money_format()
PHP 4.0+
number_format() formats a number with grouped thousands and a specified number of decimal places — the correct way to display prices, statistics, and large integers in PHP. money_format() was deprecated in PHP 7.4 and removed in PHP 8.0.
2mo ago
php beginner
Namespaces Introduced in PHP 5.3
PHP 5.3+
PHP 5.3 (2009) introduced namespaces with the namespace keyword and backslash separator — enabling PSR-4 autoloading and modern package management with Composer.
2mo ago
php beginner
NaN — Detection & Avoiding Pitfalls
ES2015
NaN is the only JavaScript value not equal to itself — use Number.isNaN() (not isNaN()) to detect it, as isNaN() coerces its argument first.
2mo ago
javascript beginner
Nullish Coalescing (??) & Logical Assignment
ES2020
?? returns the right side only when the left is null or undefined — unlike ||, it does not trigger on 0 or empty string. Parallel to PHP's null coalescing operator.
3mo ago
javascript beginner
Named Capture Groups
PHP 5.3+
(?P<n>pattern) in PHP/PCRE for self-documenting regex — accessing matches by name instead of positional index.
3mo ago
regex intermediate
NAT & Port Forwarding
NAT maps multiple private IPs to one public IP — understanding NAT explains why ngrok is needed for local webhook testing and how Docker port mapping works.
3mo ago
networking intermediate
Native dialog Element
HTML5
The HTML dialog element provides accessible modals and non-modal dialogs natively — with built-in focus trapping, backdrop rendering, and the Escape key — without JavaScript libraries.
3mo ago
frontend beginner
Neural Networks — Conceptual Overview
Layers of connected neurons transforming input to output through learned weights — the foundation of deep learning and modern LLMs.
3mo ago
ai_ml intermediate
nginx + PHP-FPM Production Config
PHP 5.0+
The canonical nginx + PHP-FPM setup for PHP production — nginx handles static files and slow clients, PHP-FPM runs PHP via FastCGI, with proper timeout, buffer, and security settings.
3mo ago
devops intermediate
Null Coalescing Operator Not Used
PHP 7.0+
Using isset() + ternary or if/else chains when the null coalescing operator (??) or null coalescing assignment (??=) would be cleaner and more idiomatic.
3mo ago
style beginner
N+1 Problem in Doctrine & Eloquent
PHP 7.0+
Accidentally issuing one query per related entity instead of one JOIN — the most common ORM performance pitfall, solved by eager loading.
3mo ago
performance intermediate