下标访问
1 | func TestStr(t *testing.T) { |
range
1 | const nihongo = "日本語" |
1 | func TestStr(t *testing.T) { |
1 | const nihongo = "日本語" |
康威定律: 设计系统的组织……受到约束,产生的设计是这些组织的沟通结构的副本
Organizations which design systems are constrained to produce designs which are copies of the communication structures of these organizations. - Melvin Conway(1967)
references:
阿里肥侠文章:”微服务架构的理论基础 - 康威定律” https://developer.aliyun.com/article/8611
康威定律详细介绍
1 | 第一定律 |
微服务
The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services , which may be written in different programming languages and use different data storage technologies.
– James Lewis and Martin Fowler
Martin Fowler是国际著名的OO专家,敏捷开发方法的创始人之一,现为ThoughtWorks公司的首席科学家.福勒(Martin Fowler),在面向对象分析设计、UML、模式、软件开发方法学、XP、重构等方面,都是世界顶级的专家,现为Thought Works公司的首席科学家。Thought Works是一家从事企业应用开发和集成的公司。早在20世纪80年代,Fowler就是使用对象技术构建多层企业应用的倡导者,他著有几本经典书籍:《企业应用架构模式》、《UML精粹》和《重构》等。—— 百度百科
微服务问题
微服务架构需要考虑的问题,包括
gen
1 |
|
1 | // 完整匹配: ^[A-HJ-NPR-Z\d]{8}[X\d][A-HJ-NPR-Z\d]{3}\d{5}$ |
高性能的HTTP和反向代理服务器,Nginx 的主要功能:
每个站点在 conf.d目录下新增一个类似ssl.conf的配置文件,这样做的好处是将每个站点的配置单独放在一个文件,方便区分和修改.
1 | ls -al /etc/nginx/conf.d/ |
[001]iota,有常量如下,second数值是?
1 | const ( |
[002]strings.ReplaceAll,代码如下,replace的值是?
1 | origin := " 特斯拉Model X " |
答: “ 特斯拉Model X “,即origin
[001]iota,有常量如下,second数值是?
1 | const ( |
[002]strings.ReplaceAll,代码如下,replace的值是?
1 | origin := " 特斯拉Model X " |
AdGuard 广告拦截器
uBlock Origin
屏蔽效果好,支持使用选择器手动添加,屏蔽页面上指定的各种广告
超级复制
Redirector 自动跳转,看一些有镜像站的文档,网页很方便
golang官方文档自动跳转设置(跳转到golang.google.cn)
1 | { |
彩云小译 翻译网页支持双语阅读