Google C++ Style Guideusage, and the cost in understanding the complexity does not need to be paid again when working with new portions of the codebase. When in doubt, waivers to rules of this type can be sought by asking your as widening a parameter type, adding a template parameter with a default value, or migrating to a new namespace. • Forward declaring symbols from namespace std:: yields undefined be- havior. • It can the global names- pace. Nonmember and static member functions may make more sense as members of a new class, especially if they access external resources or have significant dependencies. Sometimes it0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Java Style Guideorder its members in some logical order, which its maintainer could explain if asked. For example, new methods are not just habitually added to the end of the class, as that would yield “chronological by followed by else or a comma. Examples: return () -> { while (condition()) { method(); } }; return new MyClass() { @Override public void method() { if (condition()) { try { something(); } catch (ProblemException try/catch/finally). Example: void doNothing() {} 4.2 Block indentation: +2 spaces Each time a new block or block-like construct is opened, the indent increases by two spaces. When the block ends, the0 码力 | 19 页 | 84.76 KB | 1 年前3
Google Python Style Guidea alphanumeric code (C0112) and a sym- bolic name (empty-docstring). Prefer the symbolic names in new code or when updating existing code. If the reason for the suppression is not clear from the symbolic Makes it harder to deploy code because you have to replicate the package hierarchy. Decision: All new code should import each module by its full package name. Imports should be as follows: # Reference side-effects much like operator overloading. Can be confusing for subclasses. Decision: Use properties in new code to access or set data where you would normally have used simple, lightweight accessor or setter0 码力 | 30 页 | 94.81 KB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22plots, and finally, 5. recompiles the sources of the paper ... to produce a new PDF for the paper that contains the new graphs. “ Note: It takes time, plan from start We prepared for SIGMOD 20190 码力 | 31 页 | 1.38 MB | 1 年前3
Google's R Style Guidexor (but not both) if (is.null(ylim)) ylim <- c(0, 0.06) Always begin the body of a block on a new line. BAD: if (is.null(ylim)) ylim <- c(0, 0.06) if (is.null(ylim)) {ylim <- c(0, 0.06)} Surround0 码力 | 8 页 | 47.42 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22 Plural allows to drop articles Use guarded spaces for references that should not appear on a new line Clear References Make sure there are no unclear “it” or “this” references Add descriptive0 码力 | 26 页 | 613.57 KB | 1 年前3
01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22Practical. SIGMOD 2021 #14.2 Guido Moerkotte, Thomas Neumann: Analysis of Two Existing and One New Dynamic Programming Algorithm for the Generation of Optimal Bushy Join Trees without Cross Products0 码力 | 36 页 | 1.12 MB | 1 年前3
共 7 条
- 1













