avatar

Coderek's blog

Live a more efficient life
Archived Posts for year 2011

In JavaScript, primitive types behave like objects. They use dot expression to access certain methods. For example var str = "abcd"; console.log(str.length); //4 But for object, every pr…

Read more ››

因为新工作的缘故这两天开始学习JavaScript。 一直在看David Flanagan的JavaScript: The Definitive Guide 6th Edition,收获颇丰。 以前在云风的博客上第一次看到closure这个词的时候就很好奇,但那篇介绍是以C作为例子,讲的也不是很清楚,所以一直都没搞懂closure这个东西。 现在读JavaScript,对这个closure算是有…

Read more ››

Computer science has some of the most colorful language of any field. In what other field can you walk into a sterile room, carefully controlled at 68°F, and find viruses, Trojan horses, worms, bugs…

Read more ››

Everybody should have a god in his heart. This god is not necessary to be Jesus or Buddha. Generally accepted idolism gave us an abstract interface, it’s up to us to implement our own God. Jesus and …

Read more ››

Seem like many people have encountered this daunting “data type mismatch in criteria expression” error, so do I. Some people have this when they wrote VB scripts in MS Access, but my case is not rela…

Read more ››

First off, welcome to the fraternity. There aren’t too many people who want to create stuff and solve problems. You are a hacker. You are one of those who wants to do something interesting. "When yo…

Read more ››

Joel on Software Things You Should Never Do, Part I by Joel Spolsky Thursday, April 06, 2000 Netscape 6.0 is finally going into its first public beta. There never was a version 5.0. The last major …

Read more ››

Some useful opinions about OOP. You can write structured programs in Fortran77 and object-oriented programs in C, but it is unnecessarily hard to do so because these languages do not directly suppor…

Read more ››

A few problems

今天一整天基本上都在 fix bugs. email graph的那个问题已经弄了好久了,将近一个月吧。昨天submit了我的第n个fix,但今天却还是被告知fail,真的有些不爽的。问题是这样的:用户可以通过前几个月的报告数据生成一个图表,这个图表是php生成的一个jpeg图片。它的地址是以绝对路径存储在数据库里的(这里先不说不该用绝对路径)。我们在给用户一个软件的安装程序的时候(一个tar.…

Read more ››

工作快两个月了。每天都埋着头写程序,但是一直觉得效率不高。尤其是当要同时处理好几个东西的时候,总感觉有些乱。 有时候在想我需要发展一套自己的工作习惯,这套习惯能够应对任何种类的工作,并能在处理好几个棘手的问题时候能有条不紊。最重要的是这个习惯要能很容易的遵循,应该有一些工具可供使用。比如我现在有一些简单的思路: 首先,邮件一定要归类,行政,项目1,项目2等等都要分得清楚。这样查找起来很方便。有时…

Read more ››