Teaching Newbies since 2014

kauress

  • Home
  • Javascript ❤
    • JavaScript
    • Node.js
  • WebDev Tuts
  • screencasts
  • Resources
  • VR & AR
  • Contact
  • Github
  • Twitter
  • YouTube
  • RSS
  • C++
You are here: Home / Page Layouts / Sidebar/Content/Sidebar

May 19, 2014 by: Kauress

The Pre Wiki Primer for Object Oriented Programming (OOP)

Disclaimer: This article intends to be a primer so that you may gain insight in order to understand beginner OOP articles better (for example on wikipedia). In order to grasp more abstract concepts, suspend as much logic as you would when watching Star Trek. Message not sponsored by anyone I know. Some neurons dissipated during the writing of this.                

[ Read More ]

January 15, 2021 by: Kauress

VR Lesson #3: Grab items in VR with hands

Virtual Reality

The last tutorial focused on grabbing items in virtual reality using the raycaster with Unity3D’s new input system. In this tutorial we go over using hands prefab to grab objects in VR and throw them around. The full tutorial can be found here

[ Read More ]

December 26, 2020 by: Kauress

VR Lessons #2: Grab items in Virtual Reality

Virtual Reality

Here is another short tutorial from my VR lesson series here This tutorial uses the new input system to create an interactor. An XR interactor is an object in a scene that can select or move another object in the scene. For example the pointer or your hands in VR. Check out all the full tutorial with steps here

[ Read More ]

August 26, 2020 by: Kauress

Functions as objects

In JavaScript functions are a type of object known as function object. You can work with function objects as though they were objects. Functions may be assigned to objects, passed in as arguments to other functions, returned from other functions. Additionally a function can be passed into an array. And this gets me to earlier in my articles when I’ve stated “almost everything in JavaScript

[ Read More ]

August 25, 2020 by: Kauress

Getters & Setters in JavaScript – part 3

Setters in JavaScript. Check out parts 1 and  2 Setters in JavaScript There are three ways you can use  setters: 1. Default method syntax 2. get  keyword 3. Object.defineProperty() method We will now discuss the above three in detail. 1. Default method syntax The default method syntax can also be used for setters. Setters will set the property of the object to the value passed

[ Read More ]

August 21, 2020 by: Kauress

Getters & Setters in JavaScript – part 2

carrying on from part 1 .. Getters in JavaScript Getters are functions that retrieve a value from static properties from an external source. You can only access properties and cannot access methods as they are functions of an object or class and are not static. There are three ways you can use getters and setters: 1. Default method syntax 2. get  keyword 3. Object.defineProperty() method

[ Read More ]

August 20, 2020 by: Kauress

Classes in JavaScript – a newbie friendly introduction

Classes In object-oriented programming, class types are templates for creating objects. As we just learned that in prototypal inheritance, objects inherit properties and methods from a prototype. Classes build upon prototypal inheritance. Classes were introduced in ES6 to mimic the class data type found in Java and other object-oriented programming languages. Till now developers used constructor functions to mimic object-oriented design patterns. JavaScript does not

[ Read More ]

August 19, 2020 by: Kauress

Setters and Getters in JavaScript – part 1

Accessors: Getters and Setters This is part 1  of a brief introduction to getters and setters in JavaScript. Getters and Setters are ES5 features. Objects have two types of properties: Static data property Accessor property So far we have come across static data properties in the objects that we have been making. For example: let blackLivesMatter = { status: true, usecase: ‘daily’ } In this

[ Read More ]

August 19, 2020 by: Kauress

Playing with MRTK

Playing around with MRTK here It’s a nice succinct tutorial on setting up an XR project and manipulating objects with ObjectManipulator

[ Read More ]

August 18, 2020 by: Kauress

The break and continue statements in JavaScript

Break and continue statements The break statement is used to exit a loop completely once a condition has been met, or after x number of iterations. As such it is commonly used within an if conditional block. Take as an example the following code: for (let i = 0; i <= 5; i++){ console.log(i); } This will print out the value of variable i from

[ Read More ]

August 17, 2020 by: Kauress

Deep & shallow copying in JavaScript – part 3

Copying objects with deep copy The JSON.stringify and JSON.parse methods can be used to deep copy an object. In a deep copy, the source and target objects have different memory addresses and are not connected at all. The JSON.stringify() method will take a JavaScript object as an argument and transform it into a string. Then the JSON.parse() method will parse the JavaScript string and return

[ Read More ]
  • 1
  • 2
  • 3
  • …
  • 16
  • Next Page »

Copyright © 2021 ·Brian Gardner