Skip to content

Instantly share code, notes, and snippets.

@yoanad
yoanad / nodejssession.md
Last active June 10, 2020 17:32
Node.js session notes

JS

  • is an interpreted language
  • nowadays it's just in time compiled

NodeJS

  • Node.js will continously compile the program and optimize
  • Engine (e.g. V8) written in C++
    • JS > V8 > Machine Code
    • we can augument Nodejs applications with C++ code if needed
  • JS is event-driven (built-in event loop)
  • Similar in design to system like Ruby's Event Machine
# -*- coding: utf-8 -*-
#--------------------------------------------------------------
#Imports
#--------------------------------------------------------------
# #The ToneAnalyzer class from WDC
from ibm_watson import ToneAnalyzerV3
from ibm_watson.tone_analyzer_v3 import ToneInput
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator

GDG Edinburgh / Community Group is dedicated to providing a harassment-free and inclusive event experience for everyone regardless of gender identity and expression, sexual orientation, disabilities, neurodiversity, physical appearance, body size, ethnicity, nationality, race, age, religion, or other protected category. We do not tolerate harassment of event participants in any form. GDG Edinburgh / Community Group takes violations of our policy seriously and will respond appropriately.

All participants of GDG Edinburgh / Community Group events must abide by the following policy:

Be excellent to each other. We want the event to be an excellent experience for everyone regardless of gender identity and expression, sexual orientation, disabilities, neurodiversity, physical appearance, body size, ethnicity, nationality, race, age, religion, or other protected category. Treat everyone with respect. Participate while acknowledging that everyone deserves to be here -- and each of us has the right to enjoy our expe