JavaScript for the C# Developer Part 8 – WTF is this?

Previous: JavaScript for the C# Developer Part 7 – Prototypal Inheritance In JavaScript for the C# Developer Part 6 – Objects I promised to cover JavaScript’s very confusing treatment of the this keyword.     The this keyword Many languages use the this keyword or something similar, e.g. Me in Visual Basic, to represent the … Continue reading JavaScript for the C# Developer Part 8 – WTF is this?

JavaScript for the C# Developer Part 7 – Prototypal Inheritance

Previous: JavaScript for the C# Developer Part 6 – Objects In the previous post you learned that JavaScript has objects but not classes. The post demonstrates the use of a simple factory method to create a closure that contains an object’s private state and an object created via an object literal (http://jsfiddle.net/DougWare/3Z9M6/). I like this … Continue reading JavaScript for the C# Developer Part 7 – Prototypal Inheritance

JavaScript for the C# Developer Part 6 – Objects

Previous: JavaScript for the C# Developer Part 5 – Closures are Simple In the posts on functions and closures the demonstrations illustrated procedural and functional programming techniques. JavaScript supports both of these styles, but JavaScript is an object oriented language. In fact unless a variable is undefined, null, boolean, string, or number it is an … Continue reading JavaScript for the C# Developer Part 6 – Objects

JavaScript for the C# Developer Part 5 – Closures are Simple

Previous: JavaScript for the C# Developer Part 4 – JavaScript’s Dangerous and Wild Type System One of the problems C# developers have wrapping their brains around JavaScript is that there are a few concepts that don’t clearly map to what they already understand; concepts with scary names. Closures are one of those concepts. Wikipedia has … Continue reading JavaScript for the C# Developer Part 5 – Closures are Simple

JavaScript for the C# Developer Part 4 – JavaScript’s Dangerous and Wild Type System

In the previous posts about variables and functions I wrote extensively about how to manage scope and protect your variables from colliding with other scripts. The ease with which you can accidently create or affect global variables is one way JavaScript is like a long sharp piece of metal to be handled with care. This … Continue reading JavaScript for the C# Developer Part 4 – JavaScript’s Dangerous and Wild Type System

JavaScript for the C# Developer Part 3 – Functions

Next: JavaScript Types In the previous post I wrote about the basic scoping rules in JavaScript. There is more to say on that subject but first you need to understand the basics of functions. The way JavaScript uses functions is very different from the way C# uses functions. JavaScript is a multi-purpose language that allows … Continue reading JavaScript for the C# Developer Part 3 – Functions

JavaScript for the C# Developer Part 2 – Variables and Scoping Rules

Next: JavaScript for the C# Developer Part 3 – Functions If you are reading this post I probably don’t need to tell you what a variable is, but the chances are good that you misuse variables in JavaScript because as you learned in the first lesson, JavaScript is not C#! Implied Global Variables In JavaScript … Continue reading JavaScript for the C# Developer Part 2 – Variables and Scoping Rules

Global Office 365 Developer Bootcamp Atlanta is Saturday Nov 3, 2018

The Global Office 365 Developer Bootcamp Atlanta is this Saturday! It’s not too late to register as there are a few slots left before we sell out. You can register here: https://www.eventbrite.com/e/global-office-365-developer-bootcamp-atlanta-registration-48832908544 The Global Office 365 Developer Bootcamp is a free, one-day, hands-on training event led by Microsoft MVPs with support from Microsoft and local … Continue reading Global Office 365 Developer Bootcamp Atlanta is Saturday Nov 3, 2018

Monkey Patched Hacking of SharePoint’s UI JavaScript

I need a little break from the JavaScript tutorials, so today I’m going to write something fun you can file under ‘necessity is the mother of invention’. Understand that what follows is not future proof and that it behaves differently in different versions of SharePoint. However, it is mostly the same between SharePoint 2010 and … Continue reading Monkey Patched Hacking of SharePoint’s UI JavaScript