Google C++ Style Guidecode, which is discouraged in most cases. Google-Specific Magic There are various tricks and utilities that we use to make C++ code more robust, and various ways we use C++ that may differ from what valuable tool. False positives can be ignored by putting // NOLINT at the end of the line or // NOLINTNEXTLINE in the previous line. Some projects have instructions on how to run cpplint.py from their project return lookup_table[a] < lookup_table[b]; }); Lambdas were introduced in C++11 along with a set of utilities for working with function objects, such as the polymorphic wrapper std::function. • Lambdas are0 码力 | 83 页 | 238.71 KB | 1 年前3
Google's R Style GuideFunctionName, kConstantName 3. Line Length: maximum 80 characters 4. Indentation: two spaces, no tabs 5. Spacing 6. Curly Braces: first on same line, last on own line 7. else: Surround else with braces kConstantName 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 inside parentheses, align the wrapped line with the first character inside the parenthesis. Spacing 2 Place spaces around all binary operators (=, +, -, <-, etc.). Exception: Spaces around =’s are optional0 码力 | 8 页 | 47.42 KB | 1 年前3
Google Java Style GuideSource files are encoded in UTF-8. 2.3 Special characters 2.3.1 Whitespace characters Aside from the line terminator sequence, the ASCII horizontal space char- acter (0x20) is the only whitespace character present 2. Package statement 3. Import statements 4. Exactly one top-level class Exactly one blank line separates each section that is present. 3.1 License or copyright information, if present If license information belongs in a file, it belongs here. 3.2 Package statement The package statement is not line-wrapped. The column limit (Section 4.4, Column limit: 100) does not apply to package statements.0 码力 | 19 页 | 84.76 KB | 1 年前3
Google Python Style GuideDecorators Threading Power Features 1 Python Style Rules Semicolons Line length Parentheses Indentation Blank Lines Whitespace Shebang Line Comments Classes Strings Files and Sockets TODO Comments Imports if they are inappropriate so that other issues are not hidden. To suppress warnings, you can set a line-level comment: dict = 'something awful' # Bad Idea... pylint: disable=redefined-builtin pylint warnings try/except block. The larger the body of the try, the more likely that an exception will be raised by a line of code that you didn’t expect to raise an exception. In those cases, the try/except block hides a0 码力 | 30 页 | 94.81 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22too aggressive colors Orphans and Widows Imprecise definition Avoid few words per line, single line at next page Highlighting Use \emph{} (emphasize) over underlining or bold Scientific 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
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22Technology, WS 2021/22 Presentation – Figures, cont. Plots Types Barplot for categories Plot + Line/linepoints for continuous parameters Visible font sizes (similar to text) Legends Order them0 码力 | 31 页 | 1.38 MB | 1 年前3
共 6 条
- 1













