2021,优雅永不过时

0x00 前言

“萧瑟秋风今又是,换了人间”。

0x01 碎碎碎碎碎碎念念

算了算,已经是打工的第五个年头。18,19,20,21,22…….

image

今年总算有些闲钱,还是热情重燃。第一把客制化键盘已经是16年5月的事情了,整整五年半过去了……好快啊

那把键盘是焊接,还是混轴,混灯,杀马特元素拉满,凯酷的84,最后搞下来6 7百块钱…….

那个焊点,焊得我想吐,个个焊得跟s一样,搞得我再也不想碰焊接的了,还是热插拔香。去年(2021)下单了三把,一把期货,估计得2022年中才收得到了

我要有大桌,我肯定得买个键盘展示架,亚克力的,罩起来,对!

我还得换把电竞椅,傲风那个,现在这个300块的太便宜了,一动就吵,最关键的是,没有防爆肛板!!那个奇葩新闻给我看的,吓得我一阵一阵的……

image

image

image

我心心念念的pcjr已经没了,希望能抢到capluse65%

0x02 优雅永不过时

技术的建设,算算,一个基于语法解析的DOM-XSS检测工具,一个资产收集工具,再就是Golang,还行。

image

368次提交,平均一下,一天一次,差不多了

我的资产收集工具,还在建设中,核心差不过了,剩下就是功能的补齐

这个项目花的时间最久,收获也最丰富,vue\css\gin\gorm等等都学了点。

image

当然,靠这个项目,也赚了几万块钱

我已经不想手工挖洞了,只想睡觉前发个任务,第二天就起来捡钱,谁不想呢?真香

所以,写了这么多代码,我越来越发现,实现一个东西很重要,对于一个有追求的程序员来说,怎么去优雅实现,更重要。

  • 项目结构
  • 命名规范
  • 日志记录、异常处理
  • 条件判断、循环嵌套、复杂度
  • 更简便的写法
  • 可读性
  • 对象设计的合理性、是否冗余
  • 性能问题、线程控制
  • 是否要使用接口、是否会导致依赖循环
  • ……

有好多需要去考虑的,当你接触一个你不熟悉语言时,建议先看编码规范

要实现什么功能时,带上“最佳实践” 等关键字……可能这就是ctrl+c ctrl+v工程师吧,那也是个有追求的工程师!

优雅永不过时。

附上 python之禅,import this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

0x03 2022

  • 赚钱
  • Popcorn
  • Java
  • 终章!
  • 有余力的话看点安卓吧

0x04 最后

“向道偶题人间世,一笛一剑一昆仑”。