Google Python Style GuideOkay to use for simple cases. Definition: List comprehensions and generator expressions provide a concise and efficient way to create lists and iterators without resorting to the use of map(), filter() other list creation techniques. Generator expressions can be very efficient, since they avoid the creation of a list entirely. Cons: Complicated list comprehensions or generator expressions can be hard to z in xrange(5): if y != z: yield (x, y, z) return ((x, complicated_transform(x)) for x in long_generator_function(parameter) if x is not None) squares = [x * x for x in range(10)] eat(jelly_bean for0 码力 | 30 页 | 94.81 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22Reputation of website, authors, etc Recap: Give Credit Cite broadly, give credit to inspiring ideas, create connections Honestly acknowledge limitations of your approach Scientific Reading 8 706.015 Introduction Writing Matthias Boehm, Graz University of Technology, WS 2021/22 Excursus: An Automatic CS Paper Generator SCIgen: https://pdos.csail.mit.edu/archive/scigen Generates random CS research papers, incl previous papers) #2 Figure Plagiarism (Bad Idea) Never copy figures from other papers, web, etc Create all figures yourself, even for surveys (can be based on ideas of existing papers) Exceptions0 码力 | 26 页 | 613.57 KB | 1 年前3
Google C++ Style Guidenot required to end with Interface. Operator Overloading Overload operators judiciously. Do not create user-defined literals. C++ permits user code to declare overloaded versions of the built-in operators . MSVC offers #pragma pack() and __declspec(align()). • Use the LL or ULL suffixes as needed to create 64-bit constants. For exam- ple: int64_t my_value = 0x123456789LL; uint64_t my_mask = 3ULL << 48; for the benefit of an API’s user, and should be clearly docu- mented. There are several ways to create names that are aliases of other entities: typedef Foo Bar; using Bar = Foo; using other_namespace::Foo;0 码力 | 83 页 | 238.71 KB | 1 年前3
01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22PVLDB submission: 12 pages (+ more figures, experiments, etc) Solid, Reproducible Experiments Create, use, and share dedicated benchmarks / datasets Avoid weak baselines, start early w/ baseline comparisons Section n-1 Throughout the paper Give Credit Cite broadly, give credit to inspiring ideas, create connections Honestly acknowledge limitations of your approach Structure of Scientific Papers0 码力 | 36 页 | 1.12 MB | 1 年前3
Google's R Style Guidespace. Short comments can be placed after code preceded by two spaces, #, and then one space. # Create histogram of frequency of campaigns by pct budget spent. hist(df$pct.spent, breaks = "scott", # method0 码力 | 8 页 | 47.42 KB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22problem: “All code and data was on the student’s laptop and the student left / the laptop crashed.” Create value for others (compare, reuse, understand, extend) EU Projects: Mandatory proposal section &0 码力 | 31 页 | 1.38 MB | 1 年前3
Google Java Style Guideconsecutive fields (having no other code between them) is optional. Such blank lines are used as needed to create logical groupings of fields. • Exception: Blank lines between enum constants are covered in Sec-0 码力 | 19 页 | 84.76 KB | 1 年前3
共 7 条
- 1













