摘要:
第一章 排序 1. 桶算法(简单): 缺点:太占空间,只能对数本身排序,无用。 C: int a[11], i,j,t; for (i= 0;i <= 0; i++){ ... } ruby: For ... In 本质上for...in是语法糖,ruby translates it into sh 阅读全文
摘要:
Object 也是一种数据类型,可以有属性,有method. 反之,在Ruby中,每一种数据类型都是Object。如String,Integer,Float,Array,Hash. IN Ruby everything is a object! http://chentianwei-blog.log 阅读全文
摘要:
Udacity: Intro to Relational Databases The syntax of the select statement with a where clause: select columns from tables where condition ; keyword + 阅读全文
摘要:
destroy_all and delete_all Destroy the records by instantiating each record and calling its #destroy method.在删除前实例化每条记录,并回调callback execution. ⚠️ :如果想 阅读全文