---
title: "MervynZhang (@foreverzmyer) | Hashnode"
description: "Learning and Share. Read the latest articles by MervynZhang on Hashnode."
url: "https://hashnode.com/@foreverzmyer"
---

@foreverzmyer

# MervynZhang

@foreverzmyer · Joined April 2022

Learning and Share.

### [程序设计原则与代码设计模式](https://foreverz.cn/codedesign?utm_source=hashnode&utm_medium=feed)

程序设计原则 SOLID 原则 1. 单一职责原则（SRP：Single Responsibility Principle） 一个类或模块应该只包含单一的职责，有且只有一个原因使其变更。 如果一个类或模块承担了过多的职责，那么它将变得难以维护和修改。例如，一个负责展示用户信息的组件不应该同时负责处理用户信息的逻辑，因为这两个职责是不同的。 2. 开闭原则（OCP：Open Closed Principle） 实体（类、模块、函数等）应该对扩展是开放的，对修改是封闭的。即可扩展(extension...

25 min read · [foreverz.cn](https://foreverz.cn/codedesign?utm_source=hashnode&utm_medium=feed)

[Jul 14, 2023](https://hashnode.com/posts/codedesign/66726faa1ae3a39c43444de3)

### [ChatGPT 浅入浅出](https://foreverz.cn/chatgpt-guide?utm_source=hashnode&utm_medium=feed)

ChatGPT 最近非常火爆，我最近看到了大量的关于 ChatGPT 的讨论和项目，这里就作为一个简单的教程和总结。 ChatGPT 是什么，能做什么？ ChatGPT 本质上还是一个文本对话AI机器人，不过因为其知识库非常庞大(全网2021年前的公开内容)，而且可以不断的更新自己的知识库，所以其能力非常的强大，而且其非常的聪明，再也不是“人工智障”了，与传统的人工智能相比，ChatGPT已经贴近人类的智能水平，基于其知识库的能力可以帮助我们做到很多人类做不到的事情，有些比较简单的重复性劳动也...

2 min read · [foreverz.cn](https://foreverz.cn/chatgpt-guide?utm_source=hashnode&utm_medium=feed)

[Mar 6, 2023](https://hashnode.com/posts/chatgpt-guide/640616f43c9efd335013a544)

### [Qwik-前端性能问题的终极方案？](https://foreverz.cn/qwik?utm_source=hashnode&utm_medium=feed)

为什么前端框架层出不穷？现在的各种框架有什么问题？Qwik又解决了什么问题？

4 min read · [foreverz.cn](https://foreverz.cn/qwik?utm_source=hashnode&utm_medium=feed)

[Nov 15, 2022](https://hashnode.com/posts/qwik/63730cdb5540f6dbf294bf78)

### [理解 http 传输过程](https://foreverz.cn/http-transfer-process?utm_source=hashnode&utm_medium=feed)

通过TCP、Socket、HTTP 协议来理解 HTTP 传输的整个过程

2 min read · [foreverz.cn](https://foreverz.cn/http-transfer-process?utm_source=hashnode&utm_medium=feed)

[May 13, 2022](https://hashnode.com/posts/http-transfer-process/627de34b168c80d47f461f24)

### [如何让HTTP和HTTPs监听同一个端口？](https://foreverz.cn/http-s-listen-same-port?utm_source=hashnode&utm_medium=feed)

HTTP监听80端口，HTTPS监听443端口，大家都习以为常，那么让HTTPS和HTTP监听同一个端口呢？

2 min read · [foreverz.cn](https://foreverz.cn/http-s-listen-same-port?utm_source=hashnode&utm_medium=feed)

[May 6, 2022](https://hashnode.com/posts/http-s-listen-same-port/6274e85250c6035691e2a21e)
