Javascript ES6 Template Literals

Javascript ES6 Template Literals

Hello immersers, today I want to briefly cover Javascript’s Template Literals something the previous version ES5 was severely lacking when compared to other interpreted languages, PHP, Ruby and Python. But we can hardly compare Javascript with those, Javascript is fun, wild and deserves its own realm. Still though, template literals introduced in ES6 makes for cleaner code, readability, just easier on the eyes.

Continue reading “Javascript ES6 Template Literals”

An Intro to VueJS

VueJS looks good to me, yeah even better than ReactJS and AngularJS and friends. It just looks light and nimble and there’s a huge community behind this framework. My first post on this blog actually covers ReactJS – it was more than an attempt. VueJS documentation just looks cleaner to me, and I like that. I’m a bit late on the bandwagon here with VueJS, I’ve been spending quality time with PHP – I love PHP.

Here’s the documentation guide – VueJS Documentation

Continue reading “An Intro to VueJS”

Block Binding using Javascript – Functions in Loops

I wanted to go take a deep dive into using Javascript’s ‘let’ to declare variables and data objects. I’ve briefly covered ‘let’ on a previous post, but just barely scratched the surface on its features – especially using let as functions in loops. Yeah, I know that was a mouthful.

I found my self using this method once before – for getting around an API quota limit. But even if you haven’t used this method before to get around the scoping issue, these examples and comparisons (ES6) provide tidbits of useful concepts that may aid you as a developer when tackling complex data processing and manipulation.

Continue reading “Block Binding using Javascript – Functions in Loops”

Accordion Menu in Vanilla Javascript

Accordion Menu in Vanilla Javascript

I’m back in the mood for more Javascript, more specifically “vanilla javascript” – which is just a phrase for writing Javascript in it’s true form, free from any frameworks or libraries. I guess the only thing we would be dependent on would be the “Javascript Engine” itself and the available “API’s” available for our use. I think this is pretty cool, we can do a lot with just “vanilla javascript” alone.

Now don’t get me wrong, frameworks and libraries are great – they take care of all the nitty gritty cross browser stuff but often come with unnecessary bloat or extra features that aren’t even utilized. Frameworks like ReactJS and VueJS manage DOM manipulation for you so you can offload having to manage a bunch of selectors. There are some key concepts to be learned in writing plain Javascript though, as we shall see – we can achieve the same functionality with much less code.

Continue reading “Accordion Menu in Vanilla Javascript”

Top 10 Javascript Interview Questions

Javascript Top 10 Interview Questions

This is my very first post on anything interview related. I figure it would be helpful to cover common Javascript questions during an interview. As mentioned in a previous posts, Javascript is totally different beast. From my experience, my interviews have been pretty tame. They were mainly OOP related questions but this was before ES6, before Javascript classes and constructors were introduced. I remember having to write literal objects on a white board and explaining this object’s properties and methods.

Continue reading “Top 10 Javascript Interview Questions”

Using the Promise Object with Javascript

Using the Promise Object in Javascript

I haven’t had to use the Promise function constructor much, I think maybe I’ve used it a handful of times. I don’t know if this is a bad thing. To be honest, the concept of promises is still a bit fuzzy to me. I’d like to build more applications utilizing this construct but I haven’t had to write any programs that run too many asynchronous operations. Or, the need for it wasn’t necessary and I got away with writing a bunch of function callbacks. But that’s what Promises were made for – to eliminate what developers describe as “callback hell” – basically what you get is a chain of nested callbacks which makes for “unnecessary inefficient bloat”. Yeah that’s exactly what I called it.

Continue reading “Using the Promise Object with Javascript”

Using var in Javascript

Using var in javascript

So a little bit of history 101 when it comes to the ‘var’ keyword in Javascript. Back when Javascript was super weird, I mean Javascript is still weird don’t get me wrong. For this reason I started liking Javascript – I used to think it was just to messy of a language to write in. I had some major trust issues with it, my relationship with PHP was far better. Alright enough with relationships, let’s dive right in.

Continue reading “Using var in Javascript”

Javascript Closures

Javascript Closures

Yeah. Closures. I know I’m kind of late in getting to this. Closures have been widely discussed subject among developers and I feel like I should get a good handle on it myself. First things first though, it’s important to understand that closures in javascript are a feature not a built in construct. If you’ve been writing in Javascript you’ve already encountered closures you just weren’t aware of it. I think the concept of closures tends to intimidate or confuse a lot of beginners and even self proclaimed experts in javascript.

Continue reading “Javascript Closures”