ES6 Chapter 6 Other API

ES6 Chapter 6 API Additions # Other API Note: 5 primitive type (1) Undefined, (2)Null(Object), (3)Boolean (4)Number, (5)String 3.Math (1) Trigonometry: cosh(..) - hyperbolic cosine acosh(..) - hyperbolic arccosine sinh(..) - hyperbolic sine asinh(..) - hyperbolic arcsine tanh(..) - hyperbolic...

ES6 Chapter 6 Object API

ES6 Chapter 6 API Additions # Object API Traditionally, functions of Object have been seen as focused on the behaviors/capabilities of object values. However, starting with ES6, Object static functions will also be for general purpose global APIs of any...

ES6 Chapter 6 Array API

ES6 Chapter 6 API Additions # Array API ES6 adds many static properties and methods to various built-in natives and objects to help with common tasks. 1.Array (1) [Static Function] Array.of(..) [Purpose 1] to resolve the quirky “empty slots” behavior...

Effective Java - Item 16 Favor composition over inheritance

Chapeter 4 Classes and Interfaces To summarize, inheritance is powerful, but it is problematic because it violates encapsulation. Inheriting from ordinary concrete classes across package boundaries is dangerous. Item 16: Favor composition over inheritance 1.Unlike method invocation, inheritance violates encapsulation...

Effective Java - Item 15 Minimize mutability

Chapeter 4 Classes and Interfaces Immutable classes are easier to design, implement, and use than mutable classes. They are less prone to error and are more secure. no methods may modify the object and that all its fields must be...