A JavaScript Fancier

伟大的javascript技术研究中...

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  304 随笔 :: 0 文章 :: 479 评论 :: 0 Trackbacks


There is not a single interpreted language used today that causes more excitement, confusion, disdain, and conflict than JavaScript. The language is so incredibly flexible that it is difficult to separate a developer’s choice of coding style from JavaScript best practices. If you are an absolute beginner (as we all once were), this can be an incredibly frustrating experience.
The immensity of information available today is also adversely focused on AJAX, frameworks and APIs. I wonder how designers and developers manage to wade through the cruft to even begin learning the basics. If you are like me, and have evolved along with JavaScript, then the state of the language makes a little more sense. However, if you are in the first steps of your journey, it might seem like a long and winding road ahead.
This concept and resource guide is a way to deal with these issues. Instead of listing a compendium of resources too vast to matter to anyone, I have listed only those that I feel truly contribute to the process of mastering JavaScript. Preceding the list is an outline of advanced JavaScript concepts that will help “light the master’s path”.

JavaScript Concepts

Access Control
A JavaScript design pattern that prohibits another script from accessing portions of functionality in your JavaScript is enforcing “access control”. In a language like C# or Java, access control is explicitly declared with access control keywords such as private, public or protected. With JavaScript, achieving access control is a bit more work.


Accessible JavaScript
The term “accessible JavaScript” refers to movements that support RIAs in conjunction with accessibility. The most notable methodology is Hijax, a term coined by Jeremy Keith, the author of DOM Scripting. Roger Johansson is a successful Web developer who also promotes accessible JavaScript techniques on his popular blog 456 Berea Street.


Closures
Arguably the most difficult concept in JavaScript to understand, closures are complicated, and can have harmful consequences if not implemented correctly. Closures in JavaScript are essentially a design pattern that allows an inner (nested) function to access the variables associated with an outer function, even after that function has been executed (returned).


Classical OOP
In several technical circles, JavaScript is often referred to as a prototype-based or object-based language, as it lacks some features available in full-blown object oriented programming. Regardless, in order to be a successful Web developer, you must understand the details surrounding classical object oriented programming with JavaScript.


Concepts in AJAX
AJAX is conceptually quite simple. Hundreds of examples are available, and the number of tutorials is too numerous to count these days. However, within an intricate RIA, several complicated problems can arise for the budding architect. Performance issues play center stage, and it is important to explore alternative methods of implementing AJAX solutions.


Memory Leaks
One of the most difficult issues plaguing JavaScript programmers today is memory leaks brought on by a combination of browser bugs and poor coding practices. Even though memory leaks are often identified with Internet Explorer, Web applications in several browsers have been known to freeze up the client interface and cause excessive memory leakage.


Namespaces and Self-invoking Functions
At the forefront of every JavaScript library is a namespace. Although the style of execution can vary slightly, the concept is incredibly important if you are considering the release of an API or framework. Creating a non-conflicting namespace (which typically involves self-invoking functions), is both friendly and unobtrusive, and it should be a part of your repertoire.


JSON and Object Literal Notation
JavaScript Object Literal Notation and JSON both rely completely on JavaScript’s implementation of the hash object. Although a subset of object oriented programming with JavaScript, object literal notation is becoming a widely accepted alternative to functions as constructors for objects. I suggest first reading the classical OOP articles, and then move on to these articles.


Security
While security continues to be a major concern among Web developers, much of the hype surrounding XSS (cross-site scripting) has diminished. However, techniques for overcoming security flaws in JavaScript should be well known by all JavaScript programmers, new and old. Exploits are discovered often, and keeping up with hacker trends is important.



JavaScript Topics, Articles & Tutorials (Publications)
JavaScript Topics, Articles & Tutorials (Personal)

JavaScript Development Tools

JavaScript Frameworks

posted on 2007-11-04 01:09 Yemoo'S JS Blog 阅读(1936) 评论(20)  编辑 收藏 引用 所属分类: Web开发相关知识

评论

# re: Mastering JavaScript — concept and resource guide 2010-01-09 18:12 SARAHAI19
I want order essay for sale about this post, using the help of the custom writing service. You definately will need use <a href="http://www.plagiarismsearch.com">plagiarism check</a>. Now, you don’t have to worry about getting a failing mark simply because you have been accused of plagiarizing someone else’s work.  回复  更多评论
  

# re: Mastering JavaScript — concept and resource guide 2010-02-26 00:18 DODSON21LEILA
Performing the <a href="http://www.essaysprofessors.com">term paper</a> university students can spoil their academic career. Thus, they should buy custom essays from the brilliant term papers writing service to prevent that.   回复  更多评论
  

# re: Mastering JavaScript — concept and resource guide 2010-07-21 19:43 home loans
Buildings are not cheap and not everybody is able to buy it. But, home loans are created to support different people in such hard situations.   回复  更多评论
  

# re: Mastering JavaScript — concept and resource guide 2010-08-05 20:46 essay writing
Do you have troubles with your analysis essays writing task? Do not worry, explore and determine distinguished writing service to solve your essays writing issues and feel free.   回复  更多评论
  

# re: Mastering JavaScript — concept and resource guide 2010-08-11 16:12 buy essay
Hot data referring to this good post! In fact, that’s worth to buy essays to have the great success!   回复  更多评论
  

# re: Mastering JavaScript — concept and resource guide 2012-05-23 19:34 customized writing
In fact, university students require an assistance writing term papers. Terefore I will suggest to buy research paper online, that seems to be a right way to successful academic career.   回复  更多评论
  

只有注册用户登录后才能发表评论。