自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 创建型设计模式Prototype伪码

1 // Base prototype. 2 abstract class Shape is 3 field X: int 4 field Y: int 5 field color: string 6 7 // A regular constructor. 8 constructor Shape() is 9 // ... 10 11 // The prototype constructor. A fresh object is initialized 12 // with values fro

2020-12-07 11:09:07 106 1

原创 the-go-programming c5 函数

5 函数 函数使我们可以将一个语句序列包装为一个单元,可以在程序中的其他地方调用它,可能调用多次。 函数对用户隐藏了其实现细节。由于所有这些原因,函数是任何编程语言的重要组成部分。 我们已经看到了许多函数。 现在,我们花时间进行更深入的讨论。本章的运行示例是一个Web爬虫,即,该Web搜索引擎的组件负责获取网页,发现其中的链接,获取由这些链接标识的页面,以及 网络爬虫为我们提供了充分的机会来探索递归,匿名函数,错误处理以及Go独有的函数方面。 5.1 函数声明 函数声明具有名称,参数列表,结果的可选列表和函

2020-12-03 15:56:27 105

原创 创建型设计模式Builder伪码

1 // Using the Builder pattern makes sense only when your products 2 // are quite complex and require extensive configuration. The 3 // following two products are related, although they don't have 4 // a common interface. 5 class Car is 6 // A car can have

2020-12-03 14:23:40 99 1

原创 计算机是怎样跑起来的c1摘要

计算机的三大原则 计算机是执行输入、运算、输出的机器 (函数,小时候见过的古老的稻谷机,这么看来,很多事物都可以看作遵循这一模式的机器了,优雅又和谐!) 程序是指令和数据的集合(硬件完了就是软件了) 计算机的处理方式有时与人们的思维习惯不同(比较倔强,只认二进制数字,本质上只会处理数字嘛) 软件是指令和数据的集合 int a, b, c; a = 10; b = 20; c = Average(a, b); 虽然程序就是这样,但是那些稍微有些编程经验的人也许会说:代码清单所示的程序逻辑简单,而真正的程

2020-12-03 13:01:15 106

原创 C6 Methods: A Deeper LOOK p1

Answer me in one word - 莎士比亚 Objectives: How static methods and fields are associated with classes rather than objects. How the method-call/return mechanism is supported by the method-call stack. Abo...

2020-04-14 11:01:03 188

原创 Back to basics:Java How To Program 0 (early objects 10th e)

Menus: c0 Before you begin c1 Introduction to computers, the Internet and Java c2 Introduction to Java Applications;Input/Output and Operators c3 Introduction to Classes, Objects,Methods and Strings...

2020-04-14 09:28:37 76

空空如也

空空如也

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

TA关注的人

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