Google C++ Style Guideoverloaded versions of the built-in operators using the operator keyword, so long as one of the parameters is a user-defined type. The operator keyword also permits user code to define new kinds of liter- parameter order is: inputs, then outputs. 22 Parameters to C/C++ functions are either input to the function, output from the function, or both. Input parameters are usually values or const references, while input/output parameters will be non-const pointers. When ordering function parameters, put all input-only parameters before any output parameters. In particular, do not add new parameters to the end of0 码力 | 83 页 | 238.71 KB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22and configuration Use recent versions of baseline systems Data and workloads w/ data sizes, parameters, configurations Experiments and Result Presentation 13 706.015 Introduction to Scientific Boehm, Graz University of Technology, WS 2021/22 Presentation – Figures, cont. Fair Ranges of Parameters Evaluate common ranges of values Don’t hide important information Experiments and Result Result Presentation Don’t limit range to make you look good If there are multiple relevant parameters, show them all For log-scale you can’t start at 0 [J. Sommer, M. Boehm, A. V. Evfimievski, B. Reinwald0 码力 | 31 页 | 1.38 MB | 1 年前3
Google Python Style Guideruns (at import time, perhaps from pydoc or other tools). A decorator that is called with valid parameters should (as much as possible) be guaranteed to succeed in all cases. Decorators are a special case Strings link Use the format method or the % operator for formatting strings, even when the parameters are all strings. Use your best judgement to decide between + and % (or format) though. Yes: x lower_with_under() _lower_with_under() (protected) or __lower_with_under() (private) Function/Method Parameters lower_with_under Local Variables lower_with_under Main link Even a file meant to be used as0 码力 | 30 页 | 94.81 KB | 1 年前3
Google's R Style Guideall binary operators (=, +, -, <-, etc.). Exception: Spaces around =’s are optional when passing parameters in a function call. Do not place a space before a comma, but always place one after a comma.0 码力 | 8 页 | 47.42 KB | 1 年前3
01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22Automate your experiments as much as possible Keep repository of all scripts, results, and used parameters Structure of Scientific Papers 02 Scientific Reading and Writing 03 Experiments and Reproducibility0 码力 | 36 页 | 1.12 MB | 1 年前3
Google Java Style Guideexample: @Partial @Mock DataLoader loader; There are no specific rules for formatting annotations on parameters, local vari- ables, or types. 4.8.6 Comments This section addresses implementation comments.0 码力 | 19 页 | 84.76 KB | 1 年前3
共 6 条
- 1













