Tagged articles
21 articles
Page 1 of 1
php Courses
php Courses
Oct 17, 2025 · Backend Development

How to Use PHP’s is_object Function to Detect Object Types

This article explains PHP's is_object function, its syntax, and provides clear code examples showing how to check whether a variable is an object or not, helping developers avoid type‑related errors in their backend code.

PHPis_objectobject
0 likes · 3 min read
How to Use PHP’s is_object Function to Detect Object Types
JavaScript
JavaScript
Feb 22, 2025 · Frontend Development

Why JavaScript’s Map Outshines Objects: 6 Powerful Advantages

This article explains six key reasons why the ES6 Map data structure is superior to traditional objects, covering flexible key types, order preservation, easy size retrieval, prototype isolation, performance benefits, and built‑in iteration methods, while also noting scenarios where objects remain useful.

JavaScriptKey-Valueiteration
0 likes · 5 min read
Why JavaScript’s Map Outshines Objects: 6 Powerful Advantages
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 5, 2023 · Frontend Development

Comprehensive Guide to JavaScript Object Methods and Their Usage

This article provides an in‑depth overview of JavaScript's Object methods—including defineProperty, defineProperties, assign, create, freeze, seal, preventExtensions, fromEntries, hasOwnProperty, hasOwn, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, setPrototypeOf, isPrototypeOf, getOwnPropertyDescriptor, getOwnPropertyDescriptors, propertyIsEnumerable, keys, values, entries, is, and groupBy—explaining their purpose, parameters, behavior, and offering practical code examples for each.

JavaScriptWeb Developmentmethods
0 likes · 24 min read
Comprehensive Guide to JavaScript Object Methods and Their Usage
Full-Stack Trendsetter
Full-Stack Trendsetter
Oct 20, 2021 · Frontend Development

Why Vue Component data Must Be a Function, Not an Object

The article explains that while a Vue root instance can define its data as an object or a function, a component's data must be a function to avoid shared memory between instances, illustrating the issue with code examples and detailing Vue's option‑merge validation.

@DataComponentJavaScript
0 likes · 4 min read
Why Vue Component data Must Be a Function, Not an Object
Senior Brother's Insights
Senior Brother's Insights
Mar 18, 2021 · Fundamentals

Why Overriding hashCode Is Required When You Override equals in Java

This article explains the relationship between Java's equals and hashCode methods, outlines their contractual requirements, shows how the default implementations work, demonstrates proper overrides with code examples, and provides practical guidelines for implementing robust hashCode functions to ensure correct behavior in hash‑based collections.

HashMapJavacoding guidelines
0 likes · 11 min read
Why Overriding hashCode Is Required When You Override equals in Java
Java Backend Technology
Java Backend Technology
Jun 11, 2019 · Backend Development

Why Overriding equals Without hashCode Breaks Java Collections

This article explains the contract of equals and hashCode in Java, shows what goes wrong when only equals is overridden, provides a vivid house‑ownership analogy, and offers practical guidelines and code examples for correctly overriding both methods.

Backend DevelopmentCollectionsJava
0 likes · 5 min read
Why Overriding equals Without hashCode Breaks Java Collections
Java Captain
Java Captain
Mar 31, 2018 · Fundamentals

Understanding Object Cloning in Java: Shallow vs Deep Copy

This article explains Java object cloning, detailing why cloning is needed, how to implement shallow and deep copies using the Cloneable interface and serialization, and provides comprehensive code examples illustrating the differences and pitfalls of reference copying.

CloneableJavacloning
0 likes · 15 min read
Understanding Object Cloning in Java: Shallow vs Deep Copy
Java Captain
Java Captain
Nov 11, 2017 · Fundamentals

Understanding Java's equals() and hashCode() Methods and How to Override Them

This article explains the default implementations of Java's Object.equals() and Object.hashCode(), the required contracts for overriding them, demonstrates their behavior in the String class, and provides practical guidelines and example code for correctly overriding these methods in custom classes.

HashingOverrideString
0 likes · 11 min read
Understanding Java's equals() and hashCode() Methods and How to Override Them