Google C++ Style Guide(and most individ- ual components submitted to it) is expected to continue for quite some time. As a result, more time will be spent reading most of our code than writing it. We explicitly choose to optimize “Just pick one and stop worrying about it”; the potential value of allowing flexibility on these points is outweighed by the cost of having people argue over them. Be consistent with the broader C++ community is specifically important for our codebase because code ownership and team membership changes over time: even if everyone that works with some piece of code currently understands it, such understanding0 码力 | 83 页 | 238.71 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22above) #2 Understanding (see above) + strengths and weaknesses #3 Write summary, strong/weak points, detailed comments (incl reading) Scientific Reading What? How? What’s Wrong? 6 706.015 Introduction horizon Lots of similarities to code reviews in OSS Learning by What NOT to Do Accept if no time to review The Goldilocks Method (examples, proofs, theoretical analysis, experiments) If you Graticule Optimization. It proposes the obvious approach of simply storing a set of reference points and calculating offsets. Such approaches are well known in this area. It goes on to propose some0 码力 | 26 页 | 613.57 KB | 1 年前3
Google Python Style Guideyour left. Click it now. You should see “Hooray” appear below. Hooray! Now you know you can expand points to get more details. Alternatively, there’s a “toggle all” at the top of this document. Background generators as needed. Definition: A generator function returns an iterator that yields a value each time it executes a yield statement. After it yields a value, the runtime state of the generator function way of “faking” the overloading behavior. Cons: Default arguments are evaluated once at module load time. This may cause problems if the argument is a mutable object such as a list or a dictionary. If the0 码力 | 30 页 | 94.81 KB | 1 年前3
01 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/222011 PhD TU Dresden, Germany Cost-based optimization of integration flows Systems support for time series forecasting In-memory indexing and query processing Data Management Group DB group https://github 4 years, 237 pages 1st book, 5+2 years, 157 pages Structure of Scientific Papers Your reader’s time is a scarce resource 15 706.015 Introduction to Scientific Writing – 01 Introduction and Overview with collaborators and friends Develop your taste for good research topics Topic selection needs time pipeline model Ex. Compressed Linear Algebra Problem: Iterative ML algorithms + memory-bandwidth-bound0 码力 | 36 页 | 1.12 MB | 1 年前3
03 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22 Postpone implementation and experiments till last before the deadline No feedback, no reaction time (experiments require many iterations) Karl Popper: falsifiability of scientific results refutable Presentation – Figures Axes Use Informative axes labels with units (e.g., Total Execution Time [ms]) Don’t cheat or mislead readers and reviewers Start y-axis at 0 for linear scale Experiments 1016330404 LLC-load-misses # 30.11% of all LL-cache hits (50.00%) 152.096000108 seconds time elapsed 12052.466691000 seconds user 674.704421000 seconds sys Don’t just report the results but try0 码力 | 31 页 | 1.38 MB | 1 年前3
Google Java Style Guideif/else-if/else or try/catch/finally). Example: void doNothing() {} 4.2 Block indentation: +2 spaces Each time a new block or block-like construct is opened, the indent increases by two spaces. When the block0 码力 | 19 页 | 84.76 KB | 1 年前3
共 6 条
- 1













