4 Matching Annotations
  1. Jun 2023
    1. Prefer composition over inheritance

      composition means making an interface inheritance means making a class

      single class can implement multiple interface but a single class cannot inherit multiple classes

  2. Mar 2021
    1. just-in-time (JIT) approaches

      in context of inventory management, it means only keep the stock as per need. Don't over pile things and re stock the inventory based on the demands

      In context of privileges access management, it just means to provide enough access that would do the job. More access can lead to zero-day attacks

  3. Jan 2021
    1. IANA Time Zone Database Main time zone database. This is where Moment TimeZone sources its data from.

      every place has a history of different Time Zones because of the geographical, economical, political, religious reasons .These rules are present in IANA Time Zone database. Also it contains rules for Daylight Saving Time (DST) . Checkout the map on this page: https://en.wikipedia.org/wiki/Daylight_saving_time

    1. Buffers and TypedArrays

      Mozilla TypedArray document

      Uint8Array is a type of TypedArray

      and Buffer is an instance of Uint8Array

      Creating TypedArrays from Buffer with or without sharing same memory.

      Creating a Buffer from the TypedArrays with or without sharing the same memory

      In order to share memory we use

      1. Buffer.buffer, Buffer.byteOffset, Buffer.length / TypedArray.BYTES_PER_ELEMENT
      2. TypedArray.buffer, offset, length