七月 25 号天气晴
七月 25 号天气晴 七月二十五号,天气晴。 阳光很好,透过窗户洒在桌面上,像一层薄薄的金箔。这样的天气总让人心情不自觉地轻快起来。 晴日随想 晴天是个好日子,适合做点一直想做却搁置的事: 出去走走,晒晒太阳 整理一下最近的思绪 读几页搁置已久的书 写点东西,记录当下 日拱一卒 就像博客首页写的那句话——Think. Code. Grow. 日拱一卒,功不唐捐。晴朗的日子,更要好好把握。 愿每个晴天,都不被辜负。☀️
Bad Smell
List 1 Uncle Bob Refactoring: Improving the Design of Existing Code https://learning.oreilly.com/library/view/refactoring-improving-the/9780134757681/toc.xhtml Chapter 3: Bad Smells in Code ## Bad Smell 1 Mysterious Name 2 Duplicated Code 3 Long Function 4 Long Parameter List 5 Global Data 6 Mutable Data 7 Divergent Change 8 Shotgun Surgery 9 Feature Envy 10 Data Clumps 11 Primitive Obsession 12 Repeated Switches 13 Loops 14 Lazy Element 15 Speculative Generality 16 Temporary Field 17 Message Chains 18 Middle Man 19 Insider Trading 20 Large Class 21 Alternative Classes with Different Interfaces 22 Data Class 23 Refused Bequest 24 Comments List 2 郑烨 ## 代码坏味道 1 命名不规范 2 乱用英语 3 重复代码 4 长函数 5 大类 6 长参数列表 7 滥用控制语句 8 缺乏封装 9 可变的数据 10 变量声明与赋值分离 11 依赖混乱 12 不一致的代码 13 落后的代码风格 命名 ...
How to set up Static Blog?
Dependencies Setup static blog Git https://git-scm.com/downloads Hugo https://github.com/gohugoio/hugo [optional] markdown editor: Typora Automatic Deploy GitHub Action https://docs.github.com/en/actions/quickstart How to set up Static Blog? Setup static blog(3 steps) Reuse the others framework https://github.com/xyming108/sulv-hugo-papermod preview : https://www.sulvblog.cn/ step 1 clone git clone https://github.com/xyming108/sulv-hugo-papermod.git step2 download theme git submodule update --init Step3 start the hugo server -D Deploy automatically( steps) Step create GitHub repo(must public) Step set up GitHub upstream git remote add origin git@github.com:huan11/huan11.github.io.git Step Add your notes and push the changes ...
国内 AI 工具集
LLM 智谱 官网体验平台 https://bigmodel.cn/ 文档 https://zhipu-ai.feishu.cn/wiki/YInmwPmyii67VRkzU3BchPNzncg Hugging Face 开源模型 https://huggingface.co/collections/THUDM/ 最新动态 官网 https://www.zhipuai.cn/news/
全面拥抱 AI
全面拥抱 AI 他山之石,可以攻玉(巨人肩膀) 阿里: 通义灵码 https://tongyi.aliyun.com/lingma/download