良好编程实践的百科全书,完善编码聚焦于个人技能——所有的内容都来说明我们称之为“编写巧妙的代码”(write clean code,clean可以翻译多种意思,只能意会了,有些英语翻译成汉语会很痛苦的)。这本书就是那种用50页来谈论代码版式和留白的书。
转载
2011-05-29 23:42:00
242阅读
2评论
如何应对复杂度
1 把任何人在同一时间需要处理的本质复杂度的量减到最少
2 不要让偶然性的复杂度无谓地快速增长
理想的设计特征
XXX,XXXX,高扇入(让大量的类使用某个给定的类),低扇出(让一个类里少量或适中地使用其他的类),层次性
需要限制不同子系统之间相互通信的规则。如果所有的子系统都能与其他子系统通信,就失去了把它们分开所带来的好处。
类调用基本关系:无环图
&
原创
2012-07-15 18:16:30
367阅读
软件开发的工作内容问题定义需求分析实现计划总体设计详细设计创建即实现(编码和调试)系统集成单元测试校正性维护功能强化隐喻好比监听器看做是某单位的看门老大爷这里的类比: 通过把一个你所陌生的事务与你所熟知的事务比较, 你对它有进一步的认识, 从而形成你对它的独到的深刻理解, 这种叫做隐喻”模型化”.例...
转载
2014-06-05 09:12:00
99阅读
2评论
The component we test against: import {Component, OnInit} from '@angular/core'; import {Course} from "../model/course"; import {Observable} from "rxjs
转载
2020-02-25 19:55:00
57阅读
2评论
最近看完了《code complete 2》的第一部分。书中把第一部分叫做“打好基础”。在我看来,更像是对软件工程做了总体的介绍,和软件工程开始编码之前的准备。大多数人在第一次听到软件工程时,首先想到的可能就是编码。然而,这本书一开始便否决了人们的这种想法。软件工程绝不是单纯简单的编码,而是一系列工作。最后的到一个高质量,可维护,低成本,高满意度的软件交予客户。软件工程包含一系列的活动:&nb
转载
2024-08-27 11:53:31
31阅读
Developing computer software can be a complicated process, and in the last 25 years, researchers have identified numerous distinct activities that go into software development. They include Problem definition Requirements development Construction planning Software architecture, or high-level design
转载
2011-03-11 22:03:00
41阅读
2评论
第一章
Key Points
● Software construction the central activity in software development;
construction is the only activity that’s guaranteed to happen on every project.
● The main activities in
原创
2013-04-09 20:14:25
289阅读
Metaphors are heuristics, not algorithms. As such, they tend to be a little sloppy. Metaphors help you understand the software-development process by relating it to other activities you already know about. Some metaphors are better than others. Treating software construction as similar to building .
转载
2011-03-13 11:12:00
74阅读
2评论
In Linux, while typing a command if you press TAB twice, it would list all available commands that starts with typed characters.This is nothing new, probably you already know about this. This
functio
转载
2017-07-06 16:47:33
1859阅读
<script type="text/javascript" src="js/jquery/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery/jquery.autocomplete.css" />
<script type="te
转载
2024-01-15 12:10:00
32阅读
Look up Enum type data complete infomation with Jobs.Such as : Index,Name,EnumValue,Label,ConfigurationKey....Remark by Jimmy August 03th 2010 Read More
转载
2021-08-13 11:28:38
178阅读
ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists a substring (contiguous segment of letters) of it of length 2
转载
2017-10-14 20:51:00
221阅读
Complete the Sequence! 给定一个数列 P(n),这个数列的通项公式可表示为: P(n)=a_{i}i \cdot⋅ n^{i}n**i+a_{i-1}i−1 \cdot⋅ n^{i−1}n**i−1+ ... +a_{1}1 \cdot⋅ n+a_{0}0。 现在给出这个数列的 ...
转载
2021-10-01 23:10:00
188阅读
2评论
这是杂货铺的第444篇文章要说昨天国际足坛最轰动的比赛,当属欧冠淘汰赛,次回合,但是...
原创
2023-06-16 09:45:26
109阅读
"D Complete Tripartite" 思路:这个题是个染色问题。理解题意就差不多写
原创
2022-11-03 15:23:38
55阅读
"F1. Complete the Projects (easy version)" "F2. Complete the Projects (h
原创
2022-11-03 15:24:17
110阅读
When it comes to operating systems, Linux has long been a popular choice for tech enthusiasts, developers, and businesses alike. One distribution of Linux that has gained a significant following is Re
原创
2024-03-20 10:46:07
17阅读
# Java 完全指南:从入门到进阶
Java是一种广泛使用的编程语言,因其平台独立性、面向对象的特性和强大的库支持,成为了开发人员的首选。本文将介绍Java的基本特点、成功的示例代码和简单的项目案例,同时以可视化的旅行图帮助您理解学习路径。
## Java 简介
Java由Sun Microsystems于1995年首次发布,现由Oracle公司维护。它的核心理念是“一次编写,到处运行”,
##1.1 NP-complete NP-complete: A problem Y ∈ NP with the property that for every problem X ∈ NP, X ≤ P Y NPC问题指的是一个问题首先它是一个NP问题其次所有的NP问题都可以规约到这个问题。 Pr
原创
2022-01-08 17:24:44
498阅读
在[url]http://fsjoy.blog.51cto.com/318484/99823[/url]文中提到的这种情况:
可以使用auto complete插件来实现
这里还通过一个实例来说明:
说明:环境 rails 2.0.2, mysql, winxp
--有两个模型类:
Author:
#Class class Author <
原创
2008-10-28 13:12:42
1179阅读
1评论