 Google C++ Style Guidein turn can make code more bug-prone and harder to read and maintain. The goal of this guide is to manage this complexity by describing in detail the dos and don’ts of writing C++ code. These rules exist keep the code base manageable while still allowing coders to use C++ language features produc- tively. Style, also known as readability, is what we call the conventions that govern our C++ code. The term spent reading most of our code than writing it. We explicitly choose to optimize for the experience of our av- erage software engineer reading, maintaining, and debugging code in our codebase rather than0 码力 | 83 页 | 238.71 KB | 1 年前3 Google C++ Style Guidein turn can make code more bug-prone and harder to read and maintain. The goal of this guide is to manage this complexity by describing in detail the dos and don’ts of writing C++ code. These rules exist keep the code base manageable while still allowing coders to use C++ language features produc- tively. Style, also known as readability, is what we call the conventions that govern our C++ code. The term spent reading most of our code than writing it. We explicitly choose to optimize for the experience of our av- erage software engineer reading, maintaining, and debugging code in our codebase rather than0 码力 | 83 页 | 238.71 KB | 1 年前3
 Google Python Style GuideTo help you format code correctly, we’ve created a settings file for Vim. For Emacs, the default settings should be fine. Python Language Rules Lint link Run pylint over your code. Definition: pylint pylint is a tool for finding bugs and style problems in Python source code. It finds problems that are typically caught by a compiler for less dynamic languages like C and C++. Because of the dynamic nature Write around it b) Suppress its warnings or c) Improve it. Decision: Make sure you run pylint on your code. Suppress warnings if they are inappropriate so that other issues are not hidden. To suppress warnings0 码力 | 30 页 | 94.81 KB | 1 年前3 Google Python Style GuideTo help you format code correctly, we’ve created a settings file for Vim. For Emacs, the default settings should be fine. Python Language Rules Lint link Run pylint over your code. Definition: pylint pylint is a tool for finding bugs and style problems in Python source code. It finds problems that are typically caught by a compiler for less dynamic languages like C and C++. Because of the dynamic nature Write around it b) Suppress its warnings or c) Improve it. Decision: Make sure you run pylint on your code. Suppress warnings if they are inappropriate so that other issues are not hidden. To suppress warnings0 码力 | 30 页 | 94.81 KB | 1 年前3
 Google Java Style GuideIntroduction This document serves as the complete definition of Google’s coding standards for source code in the Java™ Programming Language. A Java source file is described as being in Google Style if and 2 Guide notes Example code in this document is non-normative. That is, while the examples are in Google Style, they may not illustrate the only stylish way to represent the code. Optional formatting choices or the equivalent Unicode escape (e.g. \u221e) is used. The choice depends only on which makes the code easier to read and understand, although Unicode escapes outside string literals and comments are strongly0 码力 | 19 页 | 84.76 KB | 1 年前3 Google Java Style GuideIntroduction This document serves as the complete definition of Google’s coding standards for source code in the Java™ Programming Language. A Java source file is described as being in Google Style if and 2 Guide notes Example code in this document is non-normative. That is, while the examples are in Google Style, they may not illustrate the only stylish way to represent the code. Optional formatting choices or the equivalent Unicode escape (e.g. \u221e) is used. The choice depends only on which makes the code easier to read and understand, although Unicode escapes outside string literals and comments are strongly0 码力 | 19 页 | 84.76 KB | 1 年前3
 Google's R Style Guidefor statistical computing and graphics. The goal of the R Programming Style Guide is to make our R code easier to read, share, and verify. The rules below were designed in collaboration with the entire Syntax Line Length The maximum line length is 80 characters. Indentation When indenting your code, use two spaces. Never use tabs or mix tabs and spaces. Exception: When a line break occurs inside "dates", ylab = metric, main = (paste(metric, " for 3 samples ", sep = ""))) Do not place spaces around code in parentheses or square brackets. Exception: Always place a space after a comma. GOOD: if (debug)0 码力 | 8 页 | 47.42 KB | 1 年前3 Google's R Style Guidefor statistical computing and graphics. The goal of the R Programming Style Guide is to make our R code easier to read, share, and verify. The rules below were designed in collaboration with the entire Syntax Line Length The maximum line length is 80 characters. Indentation When indenting your code, use two spaces. Never use tabs or mix tabs and spaces. Exception: When a line break occurs inside "dates", ylab = metric, main = (paste(metric, " for 3 samples ", sep = ""))) Do not place spaces around code in parentheses or square brackets. Exception: Always place a space after a comma. GOOD: if (debug)0 码力 | 8 页 | 47.42 KB | 1 年前3
 02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22quality, constructive feedback and recommendations, widen own horizon  Lots of similarities to code reviews in OSS  Learning by What NOT to Do  Accept if no time to review  The Goldilocks Method top-tier conferences/journals (act as filter)  Make the paper useful for others (ideas, evidence, code)  #4 Easily Readable: Quality ∝ Time  Make it easy to skim the paper  paragraph labels, self-explanatory begin{enumerate} … \end{enumerate}  Figures and Tables  Captions below figures, above tables  Code  \begin{verbatim} … \end{verbatim}  Theorem, Definition, Examples  Refine theorem environments0 码力 | 26 页 | 613.57 KB | 1 年前3 02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22quality, constructive feedback and recommendations, widen own horizon  Lots of similarities to code reviews in OSS  Learning by What NOT to Do  Accept if no time to review  The Goldilocks Method top-tier conferences/journals (act as filter)  Make the paper useful for others (ideas, evidence, code)  #4 Easily Readable: Quality ∝ Time  Make it easy to skim the paper  paragraph labels, self-explanatory begin{enumerate} … \end{enumerate}  Figures and Tables  Captions below figures, above tables  Code  \begin{verbatim} … \end{verbatim}  Theorem, Definition, Examples  Refine theorem environments0 码力 | 26 页 | 613.57 KB | 1 年前3
 03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22 Overview  Ensure reproducibility of research results and conclusions  Common problem: “All code and data was on the student’s laptop and the student left / the laptop crashed.”  Create value 12/2019, towards faculty-specific RDM policies Reproducibility and RDM “Ensure that research data, code and any other materials needed to reproduce research findings are appropriately documented, stored Technology, WS 2021/22 RDM in Practice @DAMSLab  Code and Artifacts  Apache SystemDS: https://github.com/apache/systemds (OSS)  Complete code history, src/bin releases (SystemDS 2.2.0 in Oct 2021)0 码力 | 31 页 | 1.38 MB | 1 年前3 03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22 Overview  Ensure reproducibility of research results and conclusions  Common problem: “All code and data was on the student’s laptop and the student left / the laptop crashed.”  Create value 12/2019, towards faculty-specific RDM policies Reproducibility and RDM “Ensure that research data, code and any other materials needed to reproduce research findings are appropriately documented, stored Technology, WS 2021/22 RDM in Practice @DAMSLab  Code and Artifacts  Apache SystemDS: https://github.com/apache/systemds (OSS)  Complete code history, src/bin releases (SystemDS 2.2.0 in Oct 2021)0 码力 | 31 页 | 1.38 MB | 1 年前3
 01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22top-tier conferences/journals (act as filter)  Make the paper useful for others (ideas, evidence, code)  Example (my own theses/books)  Seminar (~bachelor), 5 months, 446 pages  Diploma (~master),0 码力 | 36 页 | 1.12 MB | 1 年前3 01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22top-tier conferences/journals (act as filter)  Make the paper useful for others (ideas, evidence, code)  Example (my own theses/books)  Seminar (~bachelor), 5 months, 446 pages  Diploma (~master),0 码力 | 36 页 | 1.12 MB | 1 年前3
共 7 条
- 1













