it’s normal to initialize instance with class, then the instance hold status
but we may want the “fs” be in other FS, like s3, google drive.
so we can say
but in many cases, backend will not change.
so in oop, we need a class to generate class, we call it Factory / Manager
well, looks familiar, right?
this is high order function!
so we can have
and we can easily have very deep nest.
 
Loading...
Steven Lynn
Steven Lynn
喂马、劈柴、周游世界
最新发布
我与 Dify 的半年
2025-3-9
我的2022年终小结
2024-11-9
记录雅思考试经历与一点学习心得
2024-11-9
Hackergame 2024 思路小结
2024-11-9
黑客松、日本、入职:我的2024下半年的总结
2024-11-9
NotionNext:基于Notion和NextJS的开源博客
2024-11-9