- R Programming By Example
- Omar Trejo Navarro
- 230字
- 2021-07-02 21:30:42
Planning before programming
Often, people start programming before having a general idea of what they want to accomplish. If you're an experienced programmer, this may be a good way to get a feel for the problem, since you have already developed intuition, and you'll probably end up throwing away the first couple of attempts anyway. However, if you're a novice programmer, I recommend you make your objectives clear and explicit before writing any code (putting them into writing can help). It will help you make better decisions by asking yourself how a certain way of doing things will affect your objectives. So, before we set up anything, we need to understand and make our general objectives explicit:
- Understand the big picture of the analysis quickly.
- Reproduce our analysis automatically by executing a single file.
- Save all the resulting objects, text, and images for the analysis.
- Measure the amount of time it takes to perform the full analysis.
- When working on iterative processes, know the completed percentage.
- Be able to find and change each part of the analysis easily.
To fulfill these general objectives, we need to develop modular code with well-managed dependencies that are flexible (easy to change) and friendly to side-effects (saving objects, texts, and images). Even if your explicit objectives don't require it, you should make a habit of programming this way, even when just doing data analysis.
- 電力自動(dòng)化實(shí)用技術(shù)問答
- 腦動(dòng)力:C語言函數(shù)速查效率手冊(cè)
- 輕松學(xué)Java Web開發(fā)
- 控制與決策系統(tǒng)仿真
- 錯(cuò)覺:AI 如何通過數(shù)據(jù)挖掘誤導(dǎo)我們
- Hands-On Data Science with SQL Server 2017
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- Windows內(nèi)核原理與實(shí)現(xiàn)
- 人工智能與人工生命
- Supervised Machine Learning with Python
- Windows 7寶典
- Kubernetes for Developers
- The Python Workshop
- 電氣控制與PLC技術(shù)應(yīng)用
- 所羅門的密碼