 Google C++ Style Guidethrough our codebase lets us focus on other (more important) issues. Consistency also allows for automation: tools that format your code or adjust your #includes only work properly when your code is consistent cc: #include "b.h" void f(B*); void f(void*); void test(D* x) { f(x); } // calls f(B*) If the #include was replaced with forward decls for B and D, test() would call f(void*). • Forward declaring multiple should be included as: #include "base/logging.h" In dir/foo.cc or dir/foo_test.cc, whose main purpose is to implement or test the stuff in dir2/foo2.h, order your includes as follows: 1. dir2/foo2.h.0 码力 | 83 页 | 238.71 KB | 1 年前3 Google C++ Style Guidethrough our codebase lets us focus on other (more important) issues. Consistency also allows for automation: tools that format your code or adjust your #includes only work properly when your code is consistent cc: #include "b.h" void f(B*); void f(void*); void test(D* x) { f(x); } // calls f(B*) If the #include was replaced with forward decls for B and D, test() would call f(void*). • Forward declaring multiple should be included as: #include "base/logging.h" In dir/foo.cc or dir/foo_test.cc, whose main purpose is to implement or test the stuff in dir2/foo2.h, order your includes as follows: 1. dir2/foo2.h.0 码力 | 83 页 | 238.71 KB | 1 年前3
 03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22Experiments & Reproducibility Matthias Boehm, Graz University of Technology, WS 2021/22 Tools for Automation  Motivation  Tooling for running artifacts in a self-contained manner  Metadata storage in0 码力 | 31 页 | 1.38 MB | 1 年前3 03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22Experiments & Reproducibility Matthias Boehm, Graz University of Technology, WS 2021/22 Tools for Automation  Motivation  Tooling for running artifacts in a self-contained manner  Metadata storage in0 码力 | 31 页 | 1.38 MB | 1 年前3
 Google Java Style Guidewell-established conventions for naming an- notation types. Test classes are named starting with the name of the class they are testing, and ending with Test. For example, HashTest or HashIntegrationTest. 5.2 JUnit test method names to separate logical compo- nents of the name. One typical pattern is test Google Java Style Guidewell-established conventions for naming an- notation types. Test classes are named starting with the name of the class they are testing, and ending with Test. For example, HashTest or HashIntegrationTest. 5.2 JUnit test method names to separate logical compo- nents of the name. One typical pattern is test- _ - , for example testPop_emptyStack. There is no One Correct Way to name test methods is or begins with expected. The following is a very common idiom for ensuring that the code under test does throw an exception of the expected type, so a comment is unnecessary here. try { emptyStack 0 码力 | 19 页 | 84.76 KB | 1 年前3
 Google Python Style GuideDefinition: Container types, like dictionaries and lists, define default iterators and membership test operators (“in” and “not in”). Pros: The default iterators and operators are simple and efficient link Generally only one statement per line. However, you may put the result of a test on the same line as the test only if the entire statement fits on one line. In particular, you can never do so with0 码力 | 30 页 | 94.81 KB | 1 年前3 Google Python Style GuideDefinition: Container types, like dictionaries and lists, define default iterators and membership test operators (“in” and “not in”). Pros: The default iterators and operators are simple and efficient link Generally only one statement per line. However, you may put the result of a test on the same line as the test only if the entire statement fits on one line. In particular, you can never do so with0 码力 | 30 页 | 94.81 KB | 1 年前3
 Google's R Style Guideif applicable (e.g., print, plot) Unit tests should go in a separate file named originalfilename_test.R. Commenting Guidelines Comment your code. Entire commented lines should begin with # and one space0 码力 | 8 页 | 47.42 KB | 1 年前3 Google's R Style Guideif applicable (e.g., print, plot) Unit tests should go in a separate file named originalfilename_test.R. Commenting Guidelines Comment your code. Entire commented lines should begin with # and one space0 码力 | 8 页 | 47.42 KB | 1 年前3
 02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22Generates random CS research papers, incl graphs and figures  Uses hand-written context-free grammar  Test for low-submission standards of conferences  Two Examples [Jeremy Stribling, Daniel Aguayo and0 码力 | 26 页 | 613.57 KB | 1 年前3 02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22Generates random CS research papers, incl graphs and figures  Uses hand-written context-free grammar  Test for low-submission standards of conferences  Two Examples [Jeremy Stribling, Daniel Aguayo and0 码力 | 26 页 | 613.57 KB | 1 年前3
共 6 条
- 1













