Es6 Javascript

Iterables and Looping For looping over iterables, ES6 provides us with for of loop For looping over an object, Use Object.keys or .values in for of loop. Also, can use a for in loop where it iterates of enumarable properties. It will however iterate on keys not value of objects. Symbols New primitive added in ES6 Always unique Useful for keys with same names but different values Not enumarable Classes Just a wrapper around prototype inheritence.

Introduction to Javascript 2

Understanding Scope The scope of a variable controls where it can be accessed from in the program. It can be of Global Scope Function scope Block scope ( if / for etc ) Variable defination Variables can be defined with var, const and let keywords. var keyword is function scoped let and const keyword are block scoped. this keyword Different from how other languages use this.

Introduction to Javascript

Data Types Javascript has 6 primitive data types number string boolean undefined null Symbol Objects Objects can store a collection of data types, which are then called properties. Each property has a key and value key is of string data types value can be of any data type. If a value is a functon, its called as a method Equality in Objects == or === only tests if both operands are same objects.

Scala Data Types

Scala’s unified type system Any is the super type Defines methods like - equals, hashCode, toString AnyVal represents value types. Double Float Long Int Short Byte Char Unit - Only one instance can be there - () Boolean AnyRef represent refernce types like List Nothing is subclass for all value types. Null is subclass for all reference types. Should not be used in Scala code.

Scala Introduction - The Basics

Significant points of Scala Developed by Martin Odersky in 2004.  Is MultiParadigm - a blend of Functional and Object Oriented Paradigms Is statically typed Heavily uses Java libraries Encourages use of immutable data structures Basics Expressions are computable statements. For example 1+1 Values are names for results for expressions. Example val x = 1 + 1 These are immutable Variables are mutable names for expression results.

Building Unity Games

Learning to build unity games using different resources online like Oreilly. This is my first game - Click here

Video Editing and Animation

Animations Animations have always amazed me. Beautiful still images are brought to life, objects are set in motion, etc, all mainly depending how the animators imagined and implemented it, probably using a animation tool. While my wife was making illustrations (portfolio), I decided to try my hands on some animations using Adobe After Effects. You can check it out here Video Editing While this was fun, I also wanted to work on my Video Editing skills.

Postgres Indexes, PL/pgSQL and other learnings

Recently I had to do a bit of reading on building Indexes in Postgres. Intrestingly I found some striking features about indexing types in Postgres Extensions Postgres has a collection of extensions/modules. These are basically set of functions. One such module is pg_trgm. Quoting from the documentation- “pg_trgm provides functions and operators for determining the similarity of ASCII alphanumeric text based on trigram matching, as well as index operator classes that support fast searching for similar strings” Documentation