How to Learn Development
本文是近期为学弟学妹们演讲时用 Logseq 整理的大纲,在此记录一下,以备复用。
Intro
https://guzhongren.github.io/about/
Know yourself
Do you really like computer science??? 灵魂三问,你真的喜欢计算机科学吗?如果不喜欢早点放弃,不然你以后的每一刻都会感到无比的痛苦。
本文是近期为学弟学妹们演讲时用 Logseq 整理的大纲,在此记录一下,以备复用。
https://guzhongren.github.io/about/
Do you really like computer science??? 灵魂三问,你真的喜欢计算机科学吗?如果不喜欢早点放弃,不然你以后的每一刻都会感到无比的痛苦。
在工作中,邮件是我们经常要用到的工具;不管是内部还是外部,一个好的邮件签名不仅可以增强公司的品牌影响力,而且也会为你的客户留下"专业"影响,你可能会因此赢得商机,或者获得一份新工作等等。
最近上了一个Ops 的项目,此Ops 非彼Ops。 一般的Ops 都是直接在生产环境进行做一些维护升级等,而我们的Ops工作是一个类似客服的角色。需要在开发上线之后解决所有生产环境的问题,并且为客户方解决他们日常管理中的各种问题,还有为客户产品的使用者解决线上生产问题或着寻找他们提出的各种问题的原因。
Logging is structured or unstructured text information generated by the system during operation. Usually, it can be regarded as a record of an event by the application. Logging can often help us discover unexpected behaviors in systems, especially in some microservice architecture systems. As an important part of Observability, Logging plays an irreplaceable role in our system development and maintenance.
To understand why logging plays an important role in products or systems, we must understand its value. Currently, the most widely used logging forms are alerting, troubleshooting, and business data visualization.
有时候我们用 DrawIO 在线版或者 VSCode 插件画图的时候,需要使用自己公司的配色和字体要求来做图;如果一个一个图形的选择,然后输入对应的样式值,这样很浪费时间;作为高效能人士,肯定需要将其形成模板存起来,使用的时候自动读取即可。所谓“一劳永逸”。
日志(Log)是由系统在运行过程中产生的结构化或者非结构化的文字信息。通常情况,可以将其视为应用程序对某个事件(Event)的记录。日志通常可以帮助我们发现一些微服务架构系统的非预期或突发的行为。 Logging作为 Observability的重要组成部分,在我们的系统开发、维护中起到无法替代的作用。
勿以恶小而为之,勿以善小而不为 –《三国志·蜀志传》
最近在项目上搞代码质量方面的工作,发现项目代码运行测试后不能生成测试报告,导致 SonarQube 上没有关于测试覆盖率的Metric, 而且Pipeline 还可以正确运行,并没有因为不满足 SonarQube 的 Quality Gate 而 break Pipeline 的运行。
“调试程序是程序员最大的耻辱” – CTO
describe('multiple', () => {
it('should be send when invoke the method sendMessage', () => {
Object.defineProperty(window, 'top', {
value: window,
writable: true,
enumerable: true,
configurable: true,
})
Object.defineProperty(window, 'postMessage', {
writable: true,
value: jest.fn(),
})
console.log(window.top?.postMessage)
sendMessage('message')
console.log(window.top?.postMessage)
expect(window.parent.postMessage).toBeCalledTimes(2)
})
})
运行输出
Performance has directly impacted the company’s bottom line. – Pinterest
Since the development of the Internet, web page performance has always been an important issue. All major Internet companies are sparing no effort to optimize their web pages, in order to allow users to see the content that users want to see faster.
During the development of the Internet in recent decades, various indicators and terms for measuring web performance have stabilized, and the measurement methods of various products have tended to be consistent.
性能是留住用户的关键, 性能直接影响公司的命运。 – Pinterest
互联网发展至今,网页性能始终是一个重要的问题, 各大互联网公司都在不遗余力的优化自己的 Web 页面,为的就是更快的让用户更快的看到用户想看到的内容。