From a943cee45d9e6088a7e84acc9e6d98e8d4f504b1 Mon Sep 17 00:00:00 2001 From: DongJin Jeong Date: Fri, 27 Jun 2025 19:31:42 +0900 Subject: [PATCH] Fix typos and formatting issues (#1480) --- GEMINI.md | 3 ++- scripts/build.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GEMINI.md b/GEMINI.md index ec9a0857..0deec351 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -71,7 +71,8 @@ JavaScript classes, by their nature, are designed to encapsulate internal state - Reduced Boilerplate and Increased Conciseness: Classes often promote the use of constructors, this binding, getters, setters, and other boilerplate that can unnecessarily bloat code. TypeScript interface and type declarations provide powerful static type checking without the runtime overhead or verbosity of class definitions. This allows for more succinct and readable code, aligning with JavaScript's strengths in functional programming. - Enhanced Readability and Predictability: Plain objects, especially when their structure is clearly defined by TypeScript interfaces, are often easier to read and understand. Their properties are directly accessible, and there's no hidden internal state or complex inheritance chains to navigate. This predictability leads to fewer bugs and a more maintainable codebase. - Simplified Immutability: While not strictly enforced, plain objects encourage an immutable approach to data. When you need to modify an object, you typically create a new one with the desired changes, rather than mutating the original. This pattern aligns perfectly with React's reconciliation process and helps prevent subtle bugs related to shared mutable state. + +- Simplified Immutability: While not strictly enforced, plain objects encourage an immutable approach to data. When you need to modify an object, you typically create a new one with the desired changes, rather than mutating the original. This pattern aligns perfectly with React's reconciliation process and helps prevent subtle bugs related to shared mutable state. - Better Serialization and Deserialization: Plain JavaScript objects are naturally easy to serialize to JSON and deserialize back, which is a common requirement in web development (e.g., for API communication or local storage). Classes, with their methods and prototypes, can complicate this process. diff --git a/scripts/build.js b/scripts/build.js index f43a0645..2555a750 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -7,7 +7,6 @@ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0