background preloader

Languages to Learn

Facebook Twitter

NCZOnline. Douglas Crockford's Javascript. ZFC_Study_Guide_v1.pdf (application/pdf Object) Java Exception Handling: Basic Try Catch Finally. Memory leak patterns in JavaScript. JavaScript is a powerful scripting language used to add dynamic content to Web pages.

Memory leak patterns in JavaScript

It is especially beneficial for everyday tasks such as password validation and creating dynamic menu components. While JavaScript is easy to learn and write, it is prone to memory leaks in certain browsers. In this introductory article we explain what causes memory leaks in JavaScript, demonstrate some of the common memory leak patterns to watch out for, and show you how to work around them. Note that the article assumes you are familiar with using JavaScript and DOM elements to develop Web applications. The article will be most useful to developers who use JavaScript for Web application development. Memory leaks in JavaScript JavaScript is a garbage collected language, meaning that memory is allocated to objects upon their creation and reclaimed by the browser when there are no more references to them. What's wrong with circular references?

Getting Out of Binding Situations in JavaScript. Most developers don’t know about—or don’t care enough about—binding in JavaScript.

Getting Out of Binding Situations in JavaScript

Yet this single issue is responsible for a sizeable portion of the questions on most JavaScript-related support channels, and thousands—if not millions—of hairs being tortured away from developer heads every single day. Yet with a little attention to this oft-overlooked subject, you can avoid wasting your time, energy, and patience and move on to more powerful, efficient scripting. Why should we care about binding? #section1 Almost no major object-oriented programming (OOP) languages force you to consider binding.

PHP and JavaScript do require you to explicitly state which object you’re accessing, even if it’s the current one. Of course, neither PHP nor JavaScript are actually object-oriented in the traditional sense. In JavaScript, binding is always explicit, and can easily be lost, so a method using this will not refer to the proper object in all situations, unless you force it to. Okay, that’s weird. RSS feeds. Here's a list of RSS feeds I'm subscribed to, I'm using the Google Reader thing and check these usually once a day, sometimes several times a day, if I feel I need a break and don't have anything in mind.

RSS feeds

These have become de facto the way I get informed of what's up, my pretty limited view of the world, if you wish. Sometimes I feel a bit guilty of using the feeds, for example I don't visit SitePoint as much as before I subscribed to its feeds, therefore I'm not so exposed to their ads and so on, feels a bit like stealing. Anyway, on to the list. The list is ordered as Google Reader orders it, seems like alphabetically, only the first ones had some spaces in the names. The list was produced from their OPML export feature. [RSS] The Net is Dead - Life Beyond the Buzz Marco is this cool guy, web dev from Netherlands. 3 ways to define a JavaScript class. Introduction JavaScript is a very flexible object-oriented language when it comes to syntax.

3 ways to define a JavaScript class

In this article you can find three ways of defining and instantiating an object. Even if you have already picked your favorite way of doing it, it helps to know some alternatives in order to read other people's code. It's important to note that there are no classes in JavaScript. Functions can be used to somewhat simulate classes, but in general JavaScript is a class-less language. Free Website Templates HTML/CSS web design templates, page 2. Facebook Interview Questions. Flag this {0} as inappropriate Would you like us to review something?

Facebook Interview Questions

Please describe the problem with this {0} and we will look into it. Thank you! Your feedback has been sent to the team and we'll look into it. Oops! We're sorry but your feedback didn't make it to the team. The difficulty rating is the average interview difficulty rating across all interview candidates. The interview experience is the percentage of all interview candidates that said their interview experience was positive, neutral, or negative. Your response will be removed from the review – this cannot be undone. 5. Data Structures — Python v2.7.2 documentation. This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1.

5. Data Structures — Python v2.7.2 documentation

More on Lists The list data type has some more methods. Here are all of the methods of list objects: list.append(x) Add an item to the end of the list; equivalent to a[len(a):] = [x]. list.extend(L) Extend the list by appending all the items in the given list; equivalent to a[len(a):] = L. list.insert(i, x) Insert an item at a given position. Top-Rated JavaScript Blogs. JavaScript Programmer. Programming Languages Weblog.

Teach Yourself Programming in Ten Years. Ruby Programming Language.