当前位置:网站首页>六石编程学:以文字处理的位置,谈谈命名
六石编程学:以文字处理的位置,谈谈命名
2022-06-10 12:36:00 【柳鲲鹏】
以前在永中了解过文字处理(WP,WORD)。因为咱说话没人听(实际上也没有人原意听别人的),所以很多事情看在眼里,急在心里。
比如说WP中到处都要获取位置,一般使用offset。这当然没错。现实性中各种位置很多,然后就乱七八糟。六石管理学要求命名能够清楚表达意思,在此基础上长点也没问题。于是就有了以下情形:
既然offset太多,在命名的时候,就应该尽量避免使用offset。
mParaStartFromDoc
mLeafStartFromPara
mLeafStartFromLine
mMoverFromLine。这里的Mover,是在布局时使用的循环变量。这样就清清楚楚的表明,咱是移动的。
怎么样?听起来很容易吧。等你命名的时候就会发现,要清楚表达你的意思,其实是很难的。
边栏推荐
- 20-year technical veteran gives up his CTO title! Why did the startup attract him?
- In the era of digital economy, where should retail stores go
- Count the number and average value of natural numbers whose sum of bits within 100 is 7
- Driver.js - 开源无依赖的 web 新手交互引导工具库,功能强大、高度可定制
- SQL查询结果添加行号字段----sqlserver
- JTAG to Axi master debugging Axi Bram controller
- 日本版arXiv凉得一批:2个多月了,才收到37篇论文
- Vdo-slam source code reading notes [2] local optimization and global optimization
- Can qiniu open an account? Can qiniu directly open the security of securities companies on the app
- Ad-pcb schematic diagram learning (1)
猜你喜欢

Ad-pcb schematic diagram learning (1)

Mobile phone manufacturers "go back to their ancestors", only apple said no

Count the number and average value of natural numbers whose sum of bits within 100 is 7

CC2642R 蓝牙MCU芯片的学习

Give root password for maintenace (or press Control-D to continue): solution

【已解决】vagrant up下载box速度太慢的解决方法

(六)类和对象,对象初始化和拷贝构造函数(3)

JS translates Arabic numerals into Chinese capital figures, JS converts figures into capital amounts (sorting)

Use soapUI tool to generate SMS interface code

VDO-SLAM: A Visual Dynamic Object-aware SLAM System 论文阅读
随机推荐
(6) Classes and objects, object initialization and copy constructors (3)
(八)初始化列表
通过反射获取枚举值
Can chip learning of max3051
Can qiniu open an account? Can qiniu directly open the security of securities companies on the app
PCB学习笔记(2)-3D封装相关
Good article sharing | 48 hour agile development introduction
Minimalist random music player
JS translates Arabic numerals into Chinese capital figures, JS converts figures into capital amounts (sorting)
Stereo Vision-based Semantic 3D Object and Ego-motion Tracking for Autonomous Driving 论文阅读
JTAG to Axi master debugging Axi Bram controller
ShaderGraph——303摇曳的小草
Wei Lai: "pinches" the data and "pinches" the future
CMakeLists.txt 如何编写
Driver. JS - open source and independent interactive guidance tool library for web novices, powerful and highly customizable
技术分享| 快对讲,全球对讲
文档提升计划第二期|OceanBase 邀您一起进行文档共建
UML类图
ASP. Net using imagemap control to design navigation bar
极简随机音乐播放器