A collection of tech notes, personal reflections, and evolving thoughts about whatever’s caught my curiosity.

essay

ഓർമ്മകളിലേക്ക്

19 February 2022
ഓർമ്മകളിലേക്ക് വീണ്ടും വീണ്ടും തിരികെപ്പോക്കുന്ന മനുഷ്യരുണ്ട്. രാവിലെയെണ്ണീറ്റ് ഒറ്റക്ക്...
notes

Primitive Data types in JS

18 February 2022

In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods or properties. There are 7 primitive data types:

  • string
  • number
  • bigint
  • boolean
  • undefined
  • symbol
  • null

All primitives are immutable; that is, they cannot be altered. It is important not to confuse a primitive itself with a variable assigned a primitive value. The variable may be reassigned to a new value, but the existing value can not be changed in the ways that objects, arrays, and functions can be altered.

References

MDN

notes

Shortest Program in JS

10 February 2022
  1. Shortest Program in JS: Empty file. Still, browsers make global Execution context and global space along with Window object.
  2. Global scope: Anything that is not in a function, is in the global space.
  3. Variables present in a global space can be accessed by a “window” object. (like window.a)
  4. In global scope, (this === window) object. For example refer the below,
var a = 10;

Console.log(windows.a) // 10
Console.log(a)  // 10
Console.log(this.a) // 10
notes

Class and Function Hoisting in JS

2 February 2022

An important difference between function declarations and class declarations is that while functions can be called in code that appears before they are defined, classes must be defined before they can be constructed.

class hoisting

Classes defined using a class declaration are hoisted, which means that JavaScript has a reference to the class. However the class is not initialized by default, so any code that uses it before the line in which it is initialized is executed will throw a ReferenceError.

const p = new Rectangle(); // ReferenceError
class Rectangle {}

This occurs because while the class is hoisted its values are not initialized.

Function and class expression hoisting

Function expressions and class expressions are not hoisted.

References

w3schools

essay

PL/SQL - Explicit Cursors

31 January 2022
As discussed earlier, there are two types of cursors: Implicit cursors and explicit cursors. In this section, we will focus on explicit cursors and their functionality...
notes

Make it Green

29 January 2022
essay

PL/SQL - Implicit Cursors

28 January 2022
Oracle creates a memory area, known as the context area for processing an SQL statements, which contain all the informations needed for procesing the SQL statements...
essay

പ്രിയപ്പെട്ടവർ

22 January 2022
പ്രിയപ്പെട്ടവരുടെ കൂടെയുള്ള നീണ്ട ഒത്ത്ചേരലുകൾക്ക് ശേഷമുള്ള, ഹ്രസ്വമായ വിട പറച്ചിലിന്റെ...
essay

ആരവങ്ങൾ

8 January 2022
എൻ്റെ മൗനാഴങ്ങളിൽ പോലും ഞാൻ ആഘോഷതിമിർപ്പിലാണ്. പോയ രാവുകളെ ഓർത്ത് വേദനിക്കുവാൻ...