Google C++ Style Guidedata and operations that the parent base class defines. In practice, inheritance is used in two major ways in C++: implementation inheritance, in which actual code is inherited by the child, and interface 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 you see elsewhere. Ownership and Smart Pointers Prefer to have objects, such as the polymorphic wrapper std::function. • Lambdas are much more concise than other ways of defining function objects to be passed to STL algorithms, which can be a readability im- provement0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Python Style Guidefirst line. Yes: # Aligned with opening delimiter foo = long_function_name(var_one, var_two, var_three, var_four) 17 # Aligned with opening delimiter in a dictionary foo = { long_dictionary_key: value1 # 4-space hanging indent; nothing on first line foo = long_function_name( var_one, var_two, var_three, var_four) # 4-space hanging indent in a dictionary foo = { long_dictionary_key: long_dictionary_value foo = long_function_name(var_one, var_two, var_three, var_four) # 2-space hanging indent forbidden foo = long_function_name( var_one, var_two, var_three, var_four) # No hanging indent in a dictionary0 码力 | 30 页 | 94.81 KB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22Repeatable experiments simplify your own work There is no single way how to do it right There are many ways how to do it wrong Basic Planning Which data / data sets should be used? Which workload /0 码力 | 31 页 | 1.38 MB | 1 年前3
Google Java Style Guidedeterministic formula showing exactly how to line- wrap in every situation. Very often there are several valid ways to line-wrap the same piece of code. Note: While the typical reason for line-wrapping is to avoid0 码力 | 19 页 | 84.76 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22Recommendations Avoid sections with only one subsection (e.g., 2 and 2.1) Avoid more than two or at most three nesting levels Clearly separate motivation/background from your own work Scientific Writing 170 码力 | 26 页 | 613.57 KB | 1 年前3
共 5 条
- 1













