自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 Foobar 是什么意思?

foobar   不同的字典对其解释相去甚远,一说来自中国“福”字的发音,又有解释为二战时期的一种武器。然而若把众多的解释放在编程领域,关于 foobar的说法是我认为最为贴切的解释。foobar又为foo-bar,其中bar是beyond all recognition的缩写,通俗点就是无法识别,一塌糊涂的意思。而foo是fu的变体,fu是英语习语fuck-up的缩写,同样是...

2011-03-26 10:44:22 1909

原创 High Performance JavaScript 读书笔记(五)

五.Strings and Regular Expressions   Practically all JavaScript programs are intimately tied to strings. For example, many applications use Ajax to fetch strings from a server, convert those strings in...

2011-02-27 21:24:05 487

原创 High Performance JavaScript 读书笔记(六)

六.Responsive Interfaces   There’s nothing more frustrating than clicking something on a web page and having nothing happen. This problem goes back to the origin of transactional web applications and r...

2011-02-27 20:49:51 263

原创 High Performance JavaScript 读书笔记(四)

四.Algorithms and Flow Control    The overall structure of your code is one of the main determinants as to how fast it will execute. Having a very small amount of code doesn’t necessarily mean that it ...

2011-02-27 19:50:22 215

原创 High Performance JavaScript 读书笔记(三)

三.DOM Scripting   DOM scripting is expensive, and it’s a common performance bottleneck in rich web applications. This chapter discusses the areas of DOM scripting that can have a negative effect on an...

2011-02-27 14:43:40 220

原创 High Performance JavaScript 读书笔记(一)

一.Loading and Execution   JavaScript performance in the browser is arguably the most important usability issue facing developers. The problem is complex because of the blocking nature of JavaScript, w...

2011-02-27 13:44:04 102

JavaScript 数据访问(翻译自High Performance Javascript 第二章)

    计算机科学中一个经典的问题是决定如何存储数据,以便进行快速的读取和写入操作。 在代码执行期间,数据如何存储将会关系到它们的检索速度。在Javascript中,由于只存在少数的操作来进行数据存储, 这个问题似乎 变得简单了。但是,与其他语言一样,Javascript中数据的存储方式将决定它们访问速度。下面是Javascript中可以进行数据存储的四种基本方式:    字面量值(Li...

2011-02-27 13:21:33 114

原创 JavaScript Patterns 读书笔记(七)

7.Client PatternDOM Access   DOM access is expensive; it’s the most common bottleneck when it comes to JavaScript performance. This is because the DOM is usually implemented separately from the Jav...

2011-02-15 20:32:43 415

原创 JavaScript Patterns 读书笔记(六)

6.Design PatternSingleton    The idea of the singleton pattern is to have only one instance of a specific class. This means that the second time you use the same class to create a new object, you s...

2011-02-15 19:38:34 116

原创 JavaScript Patterns 读书笔记(五)

5.Inheritance PatternClassical Pattern #1—The Default Pattern    The default method most commonly used is to create an object using the Parent() constructor and assign this object to the Child()’...

2011-02-15 19:08:07 106

原创 JavaScript Patterns 读书笔记(四)

4.Function PatternNamespace Pattern   Namespaces help reduce the number of globals required by our programs and at the same time also help avoid naming collisions or excessive name prefixing. Jav...

2011-02-15 18:19:08 182

原创 JavaScript Patterns 读书笔记(二)

二.ObjectObject Constructor Catch   You have no reason to use the new Object() constructor when you can use an object literal, but you might be inheriting legacy code written by others, so you shoul...

2011-02-14 21:20:08 101

原创 JavaScript Patterns 读书笔记(三)

三.FunctionBackground     There are two main features of the functions in JavaScript that make them special—the first is that functions are first-class objects and the second is that they provide sc...

2011-02-14 21:19:58 169

原创 JavaScript Patterns 读书笔记(一)

一.Global全局域中的this = window.myglobal = "hello"; // antipatternconsole.log(myglobal); // "hello"console.log(window.myglobal); // "hello"console.log(window["myglobal"]); // "hello"console.log(...

2011-02-14 20:09:36 115

原创 开源软件授权协议详解(GPL/MPL/LGPL/BSD/Apache Licence/Creative Commons/MIT)

开源在今天的软件业已经很普遍,但开源是否意味着使用者可以对开源后的代码为所欲为呢? 答案是否定的。开源运动同样有自己的游戏规则和道德准则。不遵行这些规则不但损害开源运动的健康发展,也会对违规者造成名誉和市场上的损失,更可能陷入法律纠纷和赔偿。现今存在的开源协议很多,而经过Open Source Initiative组织通过批准的开源协议目前有58种。我们在常见的开源协议如BSD, ...

2011-02-14 14:05:58 368

原创 JavaScript: The Good Parts 读书笔记(五)

五.Javascript 总结 语言精华:函数是头等对象, 函数是有词法作用域的闭包(Lambda).基于原型继承的动态对象, 对象是无类别的,可以通过普通的复制给任何对象添加一个新成员.一个对象可以从另一个对象继承成员元素.对象字面变量和数组字面变量, 这对创建新的对象和数组来说是一种非常方便的表示法.语言糟粕:全局变量    Javascript中最糟糕的特性...

2011-01-27 12:56:05 93

原创 JavaScript: The Good Parts 读书笔记(四)

四.数组与正则表达式  数组:    在一般的编程语言中,数组表示的是一段线性分配的内存 . 它通过整数去计算偏移并访问其中的元素。在这种情况下,数组是很快的数据结构。 不幸的是, Javascript 并没有像数组这样的数据结构。反而, Javascript 提供了一种类似数组的对象 ,这些对象包含了一些拥有数组特征的方法。它把数组的下标转变成字符串 ,用其作为属性 。它明显地比一个...

2011-01-27 11:37:41 97

原创 JavaScript: The Good Parts 读书笔记(三)

三.继承概述   Javascript 是一门弱类型语言,对象的起源是无关紧要的。对于一个对象来说重要的是它能做什么,而不是它从哪里来。Javascript 提供了一套丰富的代码重用模式。它可以模拟那些基于类的模式,同时它也可以支持其他更具表现力的模式. 在JS中可能的继承模式有很多。在这里,我们将研究几种最为直接的模式.   在基于类的语言中,对象是类的实例,并且类可以从另一个类继承。而J...

2011-01-26 23:38:02 98

原创 JavaScript: The Good Parts 读书笔记(二)

二.函数JS 中函数亦是对象      使用字面变量表面法产生的对象被链接到Object.prototype.而函数对象将会链接到 Function.prototype.(该原型对象本身也是连接到 Object.prototype).      每个函数在创建时将会附有个隐藏属性: 函数的执行上下文(function context) 和 实现函数行为的代码(!).每个函数对象在创建时也随带...

2011-01-26 23:01:14 136

原创 JavaScript: The Good Parts 读书笔记(一)

一.基础特性在浏览器中,每个<script> 块都被解释成一个编译单元,因为缺少链接器。Javascript 把它们一起抛入一个公共的全局名称空间中(window).进行布尔判断时: false, null, undefined, 空串(""), 数字0, 数字NaN 均被看做 不成立javascript 的switch 语句允许case 字符串for in 语句会枚...

2011-01-26 21:44:29 147

Java事务设计策略

最近阅读了InfoQ上的电子书之后受益匪浅, 单独花了两周时间将其翻译了一下. 由于英语只是四级水准, 所以翻译内容中的不足之处也请见谅.附件里第一份是翻译后的文档, 第二份是英文原文.原文地址:http://www.infoq.com/minibooks/JTDS 下面列出文中映象深刻的几点:事务模型的分类:[list][*]本地事务模式, 管理连接[*]编程式事...

2010-11-29 23:01:25 161

现vc 6.0中位图对话框类

可以使用这个类实现vc 6.0中位图 异型的位图对话框

2008-12-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除