ZhangZhihui's Blog |
|
||
2024年2月13日
摘要:
The SOLID principles are a set of design guidelines that help developers write more maintainable, scalable, and testable code. First introduced by Rob 阅读全文
摘要:
An interface should live on the consumer side in most cases. However, in particular contexts (for example, when we know—not foresee—that an abstractio 阅读全文
摘要:
Code and project organization: #1: Unintended variable shadowing #2: Unnecessary nested code #3: Misusing init functions #4: Overusing getters and set 阅读全文
摘要:
Common behavior Decoupling Restricting behavior Common behavior: Restricting behavior:The last use case we will discuss can be pretty counterintuitive 阅读全文
2024年2月11日
摘要:
zzh@ZZHPC:~$ VBoxManage modifyvm zwin10 --vram 256 zzh@ZZHPC:~$ VBoxManage modifyvm zwin10 --vram 512 VBoxManage: error: Invalid VRAM size: 512 MB (mu 阅读全文
2024年1月19日
摘要:
func main() { counter := 0 var str string for _, i := range []byte("foobar") { letterBin := fmt.Sprintf("%08b", i) fmt.Println(letterBin) str = str + 阅读全文
2024年1月17日2024年1月16日 |
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |