摘要:从前两课来看,我觉得,“古典心法”也就是把词根词缀记忆法、联想记忆法等一些单词记忆法融合在了一起,听一下可以多一个记单词的思路而已。
阅读全文
摘要:最近在看新东方多媒体学习库里面的词汇课程,《古典心法10000》;下载了一份课程笔记,不过发现其中有很多地方不完整,于是就边听边修正笔记。
我同意课程里面提到的关于许多英语学习遇到的问题归根结底是词汇问题,准备看一下视频课程,顺便整理一遍笔记。个人觉得,词汇最终还是需要在日常的听说读写中才能掌握,也并不认为20个课时就可以解决我的单词问题,但是看一遍总归没有什么坏处。
阅读全文
摘要:although 和 though 在用作连词的时候可以互换;though 还可以用作副词,这种情况下,不能用 although 替换。
阅读全文
摘要:Visual Studio 中 Build 和 Rebuild 的区别和快捷键
阅读全文
摘要:今天在网上看到了有 Sample of the Day 这样的栏目,其实每天看一个代码示例,也花费不了多少时间,如果能坚持下来,应该会有收获。今天看了一下 [Sample of Mar 12th] Check whether a file is in use or not,代码如下: 1 /// <summary> 2 /// This function checks whether the file is in use or not. 3 /// </summary> 4 /// <param name="filename">File
阅读全文
摘要:第三课原来死循环的英文名字不是“Dead Loop”,而是“Infinite Loop”。Mehran Sahami 讲了一个关于死循环的段子,说曾经有一个芯片公司(名称不可考)号称自己开发出了当时世界上最快的芯片,广告词里说:“……执行一个死循环只需要 2.5 秒……”而真实情况是,一旦执行死循环,那么芯片的温度会迅速的升高,以至于融掉……OBOE, off-by-one error/bug is a logic error involving the discrete equivalent of a boundary condition. It often occurs in comput
阅读全文
摘要:最近看了几集斯坦福大学的《编程方法学》公开课,感谢斯坦福,感谢网易,感谢人人字幕组。个人感觉这个课程比较适合编程入门,但是我看了之后也觉得挺有收获。第二课在上一课的最后和这一节课之中,见到了 Karel 机器人,这个应该是斯坦福为了编程教学专门开发的一个 Java教学程序,非常适合用来入门教学。我没有找到 Karel 机器人单独下载的页面,但是在课程主页上,有包括 Karel 机器人在内的 Stanford Eclipse 下载,还有使用说明。如果使用 Google 搜索的话可以发现更多的关于 Karel 机器人的内容,不过大部分是英文的,主要适用于 Java 的教学。如果早发现这个的话,也许
阅读全文
摘要:最近看了几集斯坦福大学的《编程方法学》公开课,感谢斯坦福,感谢网易,感谢人人字幕组。个人感觉这个课程比较适合编程入门,但是我看了之后也觉得挺有收获。第一课这一课的内容基本上是一个课程介绍,如果你没有编程经验,看过这一课之后应该可以放下顾虑了。课程中提到了关于“Honor code”的概念,要求学生们“don’t share code”。其实我觉得这个原则,在学习编程的时候非常重要,思路可以讨论交流,但是代码不可以。至于,开放源代码和分享知识,并不属于这个范围。另外一个引起我注意的地方就是,课程讲师说,差不多每课时需要课后三个小时左右的学习巩固。这个我心有戚戚,我现在也有课在上,但是课后 1:1
阅读全文
摘要:lParam 和 wParam 是宏定义,一般在消息函数中带这两个类型的参数,通常用来存储窗口消息的参数。 LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); wParam 通常用来存储小段信息,如,标志 lParam 通常用于存储消息所需的对象 LRESULT CALLBACK ...
阅读全文
摘要:SOLIDSingle Responsibility PrincipleSRP, the notion that an object should have only a single responsibility.… every object should have a single responsibility, and that responsibility should be entirely encapsulated by the class. All its services should be narrowly aligned with that responsibility.(
阅读全文
摘要:曾经专门买过一本《代码阅读方法与实践》,"If you make a habit of reading good code, you will write better code yourself.”,可惜没有看几页。晚上偶尔看到几篇关于阅读代码的文章,摘要如下: 《我为何爱读代码?你为何也应当爱?》,最早是从这篇文章开始的。如何阅读代码: 尝试亲自构建和运行程序。Try to build an...
阅读全文
摘要:6. Advanced mapping concept 6.1 Understanding the NHibernate type system Entities are the coarse-grained classes in a system. value types are the much more fine-grained classes in a system An entity i...
阅读全文
摘要:5. Transactions, concurrency, and caching 5.1 Understanding database transactions ACID - Atomicity, consistency, isolation and durability atomic: several operations are grouped together as a single in...
阅读全文
摘要:Part 2 NHibernate deep dive 4 Working with persistent objects lifecycle of objects - how an object becomes persistent, and how it stops being considered persistent - and the method calls and other ac...
阅读全文
摘要:Part 2 NHibernate deep dive 3 Writing and mapping classes business objects / entities domain model mapping metadata 3.1 The CaveatEmptor application 3.1.1 Analyzing the business domain A softwa...
阅读全文
摘要:NHibernate In Action Part 1 Discovering ORM with NHibernate 1 Object/relational persistence in .NET ORM object/relational mapping 1.1 What is persistence? 1.1.1 Relational database 1.1.2 Understandi...
阅读全文
摘要:AJAX basics with jQuery in ASP.NET What is AJAX ? AJAX - Asynchronous Javascript And XML Using the browser’s XMLHttpRequest object to transfer data asynchronously between the client and server....
阅读全文
摘要:[Mock Objects and Stubs: Introduction to Mocks and Stubs] One of the biggest challenges of using TDD is learning strategies for isolating the code that’s hard to test and writing code that is easy to...
阅读全文