General

Meta Programming in Ruby

These below are the available scopes where you can evaluate your code: 1. Instance Scope : (instance_eval, instance_exec) 2. Class Scope / Module Scope: (class_eval, class_exec, module_eval, module_exec) Scopes in simple term is the area of visibility and accessibility. Out Read more…

General

Console in Node.js

Introduction If you start the Node.js binary without any arguments, you will see the REPL command prompt, the > character and from this prompt ( interactive shell ) you can execute raw JavaScript code you wish. Those who are familiar with browser-side Read more…

General

Event Emitter in Node.js

Event Emitter in Node.js Stability: 2 – Stable Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called “emitters”) emit named events that cause Function objects (“listeners”) to be called. For instance: Read more…