Google C++ Style Guidecode. The term Style is a bit of a misnomer, since these conventions cover far more than just source file formatting. Most open-source projects developed by Google conform to the requirements in this guide your project leads to get additional input. Header Files In general, every .cc file should have an associated .h file. There are some com- mon exceptions, such as unittests and small .cc files containing or inline function is declared in a .h file, that same header should provide its definition. The definitions of these constructs must be included into every .cc file that uses them, or the program may fail0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Python Style Guideof dos and don’ts for Python programs. To 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 or not an exception is raised in the try block. This is often useful for cleanup, i.e., closing a file. • When capturing an exception, use as rather than a comma. For example: try: raise Error except Error compilation, dy- namic inheritance, object reparenting, import hacks, reflection, modification of system internals, etc. Pros: These are powerful language features. They can make your code more compact0 码力 | 30 页 | 94.81 KB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22University of Technology, WS 2021/22 Baselines #1 Primary Baseline Existing algorithm or system infrastructure Main comparison point, usually with same runtime operations Beware: Avoid speedup-only Experiments and Result Presentation [Matthias Boehm et al: SystemDS: A Declarative Machine Learning System for the End-to-End Data Science Lifecycle. CIDR 2020] 17 706.015 Introduction to Scientific Writing University of Technology, WS 2021/22 Presentation – Result Interpretation Use the Right OS Tools System-specific tracing/statistics top / htop / iotop (looks CPU bound) perf -stat -d ./run.sh (no0 码力 | 31 页 | 1.38 MB | 1 年前3
01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22Data management from user/application perspective Distributed Data Management ML system internals DB system internals + prog. project Prog. projects in SystemDS [github.com/apache/systemds] Zesheng Wang, Karrie Karahalios, Aditya G. Parameswaran: ShapeSearch: A Flexible and Efficient System for Shape-based Exploration of Trendlines. SIGMOD 2020 #1.2 Uwe Jugel, Zbigniew Jerzak, Gregor Austern, Aart J. C. Bik, James C. Dehnert, Ilan Horn, Naty Leiser, Grzegorz Czajkowski: Pregel: a system for large-scale graph processing. SIGMOD 2010 Paper Project Proposals 29 706.015 Introduction0 码力 | 36 页 | 1.12 MB | 1 年前3
Google Java Style Guidedefinition 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 only if it adheres to the rules herein. Like other programming Source file basics 2.1 File name The source file name consists of the case-sensitive name of the top-level class it contains (of which there is exactly one), plus the .java extension. 2.2 File encoding: horizontal space char- acter (0x20) is the only whitespace character that appears anywhere in a source file. This implies that: 1. All other whitespace characters in string and character literals are escaped0 码力 | 19 页 | 84.76 KB | 1 年前3
Google's R Style Guidedesigned in collaboration with the entire R user community at Google. Summary: R Style Rules 1. File Names: end in .R 2. Identifiers: variable.name (or variableName), FunctionName, kConstantName 3. Methods: avoid S4 objects and methods when possible; never mix S3 and S4 1 Notation and Naming File Names File names should end in .R and, of course, be meaningful. GOOD: predict_ad_revenue.R BAD: foo.R each other’s scripts faster and more easily. 1. Copyright statement comment 2. Author comment 3. File description comment, including purpose of program, inputs, and out- puts 4. source() and library()0 码力 | 8 页 | 47.42 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22choice of words, sentence beginning) helps keeping the reader’s attention Scientific Writing The system of rational numbers is incomplete. This was discovered 2000 years ago by the Greeks. The problem discovery was a serious blow to the Greek mathematicians. The Greeks discovered 2000 years ago that the system of rational numbers is incomplete. The problem is that some quantities, such as the length of the0 码力 | 26 页 | 613.57 KB | 1 年前3
共 7 条
- 1













