🌐 Public

JS

By Zach Sherman

Introduction

Hackers.

Zach Sherman — Hacking on http://t.co/1MP5DSgs. Econ/CS @VanderbiltU. New York native obsessed with programming, sushi & design. Former ...

1 JavaScript Promises ... In Wicked Detail

I've been using promises in my JavaScript code for a while now. They can be a little brain bending at first. I now use them pretty effectively, but when it came down to it, I didn't fully understand how they work. This article is my resolution to that. If you stick around until the end, you should understand promises well

2 Functional JavaScript, Part 4: Function Currying

K Leland Richardson In an earlier post we played around with function currying very briefly. Currying is absolutely essential to Functional Programming, and in this post we are going to take a deep dive. What is currying?Currying is the process of transforming a function that takes multiple arguments into a function that takes just a single argument and returns another

8 Code Organization Concepts

When you move beyond adding simple enhancements to your website with jQuery and start developing full-blown client-side applications, you need to consider how to organize your code. In this chapter, we'll take a look at various code organization patterns you can use in your jQuery application and explore the RequireJS dependency management and build system. Before we jump into code

9 Paul Irish

Last weekend was the incredible TXJS conference. It was a grand time in hot hot Texas. Joe Bartlett has a great conference roundup, rebecca's pix are quite pretty, and most of the speaker slides are on the official site. I've rerecorded my talk in screencast form. Here's what to expect from the 52 minute video: It's jQuery on the big

10 JavaScript Game Code Organization

At Bocoup, my colleagues and I often laze about in antique leather armchairs, sipping Mai Tais, waxing rhetoric about important issues-of-the-day including international politics and automatic semicolon insertion. One thing I find fascinating is how people working on different types of projects have different wisdom to share: best practices for jQuery plugins are different than those for Facebook apps, and

11 Adventures in JavaScript Development

This is a reprint of an article that originally appeared in the March 2009 issue of JSMag. When you move beyond simple snippets of jQuery and start developing more complex user interactions, your code can quickly become unwieldy and difficult to debug. This article shows you how to start thinking about these interactions in terms of the bits of behavior

14 Inheritance Patterns in JavaScript

var phone = function(spec) { var that = {}; that.getPhoneNumber = function() { return spec.phoneNumber; }; that.getDescription = function() { return "This is a phone that can make calls."; }; return that; }; var smartPhone = function(spec) { var that = phone(spec); spec.signature = spec.signature || "sent from " + that.getPhoneNumber(); that.sendEmail = function(emailAddress, message) { // Assume sendMessage() is ...

17 Why Prototypal Inheritance Matters

Published: 26 May 2013 | CommentsFive days ago I wrote Standardizing Harmony Classes. It showed how to simulate classes in current JavaScript implementations and how ECMAScript Harmony classes are just syntactic sugar for the same. My programming style has evolved since then, thanks to Om Shankar and the awesome members of the JavaScript Room; and like Douglas Crockford did back

19 OOP in JS, Part 1 : Public/Private Variables and Methods

This page shows how to create private variables and methods in "classes" in Javascript through the rather simple example of a person. (This is really a very rough approximation of the classical OOP pattern, and not necessarily a "best-practice" for JavaScript programming.) Part 2 covers inheritance. Summary private variables are declared with the 'var' keyword inside the object, and can

20 The Design of Code: Organizing JavaScript

Issue № 375by Published in Anthony ColangeloJavaScript · Great design is a product of care and attention applied to areas that matter, resulting in a useful, understandable, and hopefully beautiful user interface. But don't be fooled into thinking that design is left only for designers. There is a lot of design in code, and I don't mean code that builds

21 Code Organization Concepts

When you move beyond adding simple enhancements to your website with jQuery and start developing full-blown client-side applications, you need to consider how to organize your code. In this chapter, we'll take a look at various code organization patterns you can use in your jQuery application and explore the RequireJS dependency management and build system. Before we jump into code

22 JavaScript Game Code Organization

At Bocoup, my colleagues and I often laze about in antique leather armchairs, sipping Mai Tais, waxing rhetoric about important issues-of-the-day including international politics and automatic semicolon insertion. One thing I find fascinating is how people working on different types of projects have different wisdom to share: best practices for jQuery plugins are different than those for Facebook apps, and

23 JavaScript Inheritance Patterns

In this post, I am going to introduce to you 3 different ways of how you can implement inheritance in JavaScript. You will see inheritance implemented in languages such as Java by allowing a class to inherit state and behavior from a superclass, where each superclass can have many subclasses. This means that in Java an object is an instance

24 The Design of Code: Organizing JavaScript

Issue № 375by Published in Anthony ColangeloJavaScript · Great design is a product of care and attention applied to areas that matter, resulting in a useful, understandable, and hopefully beautiful user interface. But don't be fooled into thinking that design is left only for designers. There is a lot of design in code, and I don't mean code that builds

25 Code Organization Concepts

When you move beyond adding simple enhancements to your website with jQuery and start developing full-blown client-side applications, you need to consider how to organize your code. In this chapter, we'll take a look at various code organization patterns you can use in your jQuery application and explore the RequireJS dependency management and build system. Before we jump into code

26 JavaScript object creation: Learning to live without "new"

The problem is that because this structure looks so similar to real classes in other languages, people start expecting it to behave exactly like real classes behave in other languages. But the more you work with these types of "classes", the more you see that they don't behave that way at all. So people get upset with JavaScript, and start

Marwen Arfa

Freshman

  • 0 Playlists
  • 0 Followers

Vladimir Poluyan

Freshman

  • 2 Playlists
  • 0 Followers

inestestes

Freshman

  • 0 Playlists
  • 0 Followers

Jakub Dziedzic

Freshman

  • 0 Playlists
  • 0 Followers

Maxim Orlovsky

Project Manager, Front-end Developer and Designer

  • 0 Playlists
  • 0 Followers

glomikuz

Freshman

  • 0 Playlists
  • 0 Followers

abdallah alshaer

big ambition and crazy dream

  • 0 Playlists
  • 0 Followers

Flora Edwards

Freshman

  • 0 Playlists
  • 0 Followers

Alexis Lawson

Freshman

  • 0 Playlists
  • 0 Followers

Abu Hauri Asy-Syifa Falisha

Freshman

  • 0 Playlists
  • 0 Followers

Дмитрий Лапшин

Freshman

  • 0 Playlists
  • 0 Followers

Max Gonchar

Indie Web developer

  • 0 Playlists
  • 0 Followers

valishah

Freshman

  • 0 Playlists
  • 0 Followers

joseflores8082

Freshman

  • 0 Playlists
  • 0 Followers

jchan15

Freshman

  • 0 Playlists
  • 0 Followers

Tamuna Kapanadze

Freshman

  • 0 Playlists
  • 0 Followers

Mikołaj Kozakiewicz

Freshman

  • 0 Playlists
  • 0 Followers

bibhudash

Freshman

  • 0 Playlists
  • 0 Followers

Adriel Barrett-Johnson

Freshman

  • 0 Playlists
  • 0 Followers

Elizabeth Reynolds

Freshman

  • 0 Playlists
  • 0 Followers
Load more

Delete your comment

Are you sure you want to delete your comment?