Contents tagged with HTML5
-
Code and Slides: Getting Started Building Windows 8 HTML/JavaScript Metro Apps
-
Call for Speakers – Fall 2012 ClientDev Connections
-
New Pluralsight Course: Building ASP.NET MVC Apps with EF Code First, HTML5, and jQuery
-
Video: Structuring JavaScript with the Revealing Module Pattern
This sample video from Pluralsight’s Structuring JavaScript Code course provides an introduction to the Revealing Module Pattern and demonstrates how it can be used to convert “function spaghetti code” to more structured code that’s re-useable and easier to maintain. If you’d like additional details about using the Revealing Module Pattern as well as other patterns that can be used to structure your JavaScript code view my post here.
-
jQuery Tip #5: Using jQuery’s end() Function to Work with Sets
Previous Tips:
-
jQuery Tip #4 – Use the on() Function for Event Handling
Previous Tips:
-
Upcoming Pluralsight Course - Web Development with ASP.NET MVC, EF Code First, jQuery, and HTML5
Update: This course is now available here!
-
Upcoming ASP.NET, HTML5 and Windows 8 Talks and Workshops at DevConnections 2012
It’s that time of the year again! DevConnections 2012 is right around the corner and we have a lot of great new workshops and sessions planned for the ASP.NET and Client-Dev (HTML5, Windows 8 Metro, JavaScript, jQuery, etc.) tracks.
-
Working with the JavaScript “this” Keyword
JavaScript's "this" keyword can be a bit tricky to work with depending on the context in which it's used. When it's used with patterns such as the Prototype or Revealing Prototype patterns working with "this" can be challenging in some cases. Unlike languages such as C# or Java, "this" can change context. For example, if a Calculator object named calc calls an add() function then "this" represents the Calculator object which means you can easily access any variables defined in the object such as a variable named tax by simply using this.tax.
-
Using the JavaScript Prototype Property to Structure and Extend Code
There are several different patterns that can be used in JavaScript to structure code and make it more re-useable, more maintainable, and less subject to naming collisions. Patterns like the Revealing Module Pattern, Prototype Pattern, Revealing Prototype Pattern, and others can be used to structure code and avoid what I call “function spaghetti code”. One of my favorite features offered by both the Prototype and the Revealing Prototype patterns is the extensibility they provide. They’re quite flexible especially compared to the Module or Revealing Module patterns out there.