Understanding JavaScript’s Function.prototype.bind

Function binding is probably your least concern when beginning with JavaScript, but when you realize that you need a solution to the problem of how to keep the context of this within another function, then you might not realize that what you actually need is Function.prototype.bind().

render: function () {

    this.getAsyncData(function () {

        this.specialFunction();

        this.anotherSpecialFunction();

    }.bind(this));

}

The first time you hit upon the problem, you might be inclined to set this to a variable that you can reference when you change context. Many people opt for self, _this or sometimes context as a variable name. They’re all usable and nothing is wrong with doing that, but there is a better, dedicated way.

Read more...

Upcoming Web Design Events (Jan. 2014 – Jun. 2014)

2013 has come and gone, delighting us with a plethora of inspirational, educational and fun conferences. You should start planning 2014 right now to make sure that you don't miss your chance to get away from your desk and meet some brilliant minds and peers — face to face!

Upcoming Web Design Events (Jan. 2014 – Jun. 2014)

In this roundup of conferences, we are happy to present you all of the upcoming Web-related conferences, starting from January. This might be just the time to get a ticket to conferences in warmer climes! For now, we've included conferences up to June, so make sure you don’t miss your favorite one.

Read more...
Advertisement Advertise with us!

Dealing With Workaholism On Web Teams

Workaholism is often confused with hard work. Some people who work on the Web seem not only to disregard its dangers, but to actively promote it. They see it as a badge of honor—but is it really? On the contrary, it’s a serious issue that can damage Web teams.

Dealing With Workaholism On Web Teams

Before we get started, let’s make one thing clear: A "workaholic" is someone who is addicted to work, someone who is out of balance and out of control. Their addiction can make them work for 12, 14 or even more hours a day, every day. No weekends, no vacations, just work. Soon, they neglect their family, friends, health, sometimes damaging them all irrevocably.

Read more...

How I Work: Meetup’s Andres Glusman On The Power Of UX And Lean Startup Methods

Welcome to another interview in the “How I Work” series. These interviews reveal how leading thinkers and creators on the Web design, code and create. The goal is not to get into the nuances of their craft (that information exists elsewhere online), but rather to step back and learn a bit about their habits, philosophies and workflow for producing great work.

How I Work: Meetup's Andres Glusman On The Power Of UX And Lean Startup Methods

This time, we’re speaking with Andres Glusman, of Meetup, a company that uses the efficiency of the Internet to conveniently connect people offline. Andres works as the VP of Strategy, Product and Community in Meetup’s New York City office. In this piece, he shares with us how the company uses User Experience (UX), Lean Startup methods and innovative ways of organizing interdisciplinary teams to fuel the company’s consistent growth.

Read more...

How To Use Data And Research To Build A Better Mobile Web

The value you bring to any project as a designer or user experience professional isn’t only your ability to execute a series of tasks. Good clients will recognize and appreciate the guidance, recommendations and opinions that come with your experience.

How To Use Data And Research To Build A Better Mobile Web

It’s up to you to be forthcoming and to position yourself as a valuable thinker from the start. It’s also up to you to base your recommendations on more than subjective opinion. This is especially true in the rapidly evolving world of mobile, where clients typically require as much education as they do execution.

Read more...

Creating Custom Shipping Methods In Magento

In this tutorial, we will use Magento’s powerful shipping-method code abstraction to create a shipping carrier. We will create two shipping methods that provide a fixed shipping price, allow for free shipping promotions, define logic based on an item’s weight and, finally, make it all configurable in the admin panel.

Creating Custom Shipping Methods In Magento

This tutorial assumes that you are familiar with how to create a Magento module. If you are not, please first refer to an earlier tutorial in this series, “The Basics of Creating a Magento Module.” To begin, you will need a Community or Enterprise installation of Magento, either locally or on a server that you are able to access.

Read more...

Editing Tips For Business Web Content

The Web is awash in content. A recent Moz article reports that 92,000 new articles are posted online every day. Companies are spending billions on content marketing to enhance credibility, build brand awareness and, especially of late, improve SEO.

Editing Tips For Business Web Content

Google has always tried to reward great content with high rankings, but today, thanks to vast improvements in its algorithm, Google is better able to actually do it. Its content quality guidelines are perfectly aligned with what every writer and marketer should aspire to.

Read more...

↑ Back to top