图书标签: Matlab 编程 Programming 风格 计算机 计算机科学 使用手册 matlab
发表于2024-12-25
The Elements of MATLAB Style pdf epub mobi txt 电子书 下载 2024
The Elements of MATLAB Style is a guide for both new and experienced MATLAB programmers. It provides a comprehensive collection of standards and guidelines for creating solid MATLAB code that will be easy to understand, enhance, and maintain. It is written for both individuals and those working in teams in which consistency is critical. This is the only book devoted to MATLAB style and best programming practices, focusing on how MATLAB code can be written in order to maximize its effectiveness. Just as Strunk and White's The Elements of Style provides rules for writing in the English language, this book provides conventions for formatting, naming, documentation, programming and testing. It includes many concise examples of correct and incorrect usage, as well as coverage of the latest language features. The author also provides recommendations on use of the integrated development environment features that help produce better, more consistent software.
没经过专业的规范多年,感觉自己是个新手。
评分草草的花了一天看完了,感觉比较有用的几点:1. 变量命名用lowerCamelCase,函数用lowercase,Class用UpperCamelCase. 2. 新版的matlab不一定非要vectorization,JIT的速度也很快. 3. 多写test,多用assertion,少嵌套,少break/continue等等一些比较general的建议 4. 初始化用nan而不是zeros 5. 变量名不要太隐晦 6. 一句代码一行 7. 先文档后实现 8. 新版本的oo也慢不到哪去。 个人感觉对初学者帮助会很大。
评分一般
评分草草的花了一天看完了,感觉比较有用的几点:1. 变量命名用lowerCamelCase,函数用lowercase,Class用UpperCamelCase. 2. 新版的matlab不一定非要vectorization,JIT的速度也很快. 3. 多写test,多用assertion,少嵌套,少break/continue等等一些比较general的建议 4. 初始化用nan而不是zeros 5. 变量名不要太隐晦 6. 一句代码一行 7. 先文档后实现 8. 新版本的oo也慢不到哪去。 个人感觉对初学者帮助会很大。
评分尽管本书所讲的大部分规则平时基本都是遵守的,但是看完书中一条一条的的规则,总结起来,就是:自己的规则一定要有一致性,并且能够让机器看懂,容易让别人看明白。
评分
评分
评分
评分
The Elements of MATLAB Style pdf epub mobi txt 电子书 下载 2024