Back to Basics: Debugging Techniques
cases to fail • Verify that new code passes its own test cases • Practice defensive programming • Comments • It's much easier to find defects in modular, well-designed code with well-written and extensive with print statements • In more complex systems, take advantage of existing logging facilities • Comments • Great way to stay "on the path" when developing new code • An easy first step in narrowing down ) • Call tracers and domain-specific diagnostic tools (strace, wireshark, SQL analyzers...) • Comments • Very powerful tools for deterministic problems • Not always useful for non-deterministic problems0 码力 | 44 页 | 470.68 KB | 5 月前3Finding Your Codebases C++ Roots
CppCon 2023 - Finding Your Codebases C++ RootsDocumentation Changes • Source Control • Headers & Comments • External Documentation • Documentation Requirements 27 of 45 CppCon 2023 - Finding Your Codebases 29 of 45 CppCon 2023 - Finding Your Codebases C++ RootsANSI C Compiled with a C++ Compiler • C++ Comments • Less typedefs for structs 30 of 45 CppCon 2023 - Finding Your Codebases C++ RootsPre C++11 • the past (comments) • Increases confusion • Understand what you are documenting so it makes sense • Don’t just read the code, restate it and hope for the best • Document with your comments (commit messages)0 码力 | 45 页 | 1.35 MB | 5 月前31.3 Go practices in TiDB 姚维
freebsd.org/cgi/man.cgi?query=fail ● Define failpoints by comments ○ gofail enable converts comments to code ○ gofail disable converts code to comments Gofail in TiDB func (txn *tikvTxn) Commit(ctx context will use the same failpoint ● No tools to enable and disable the failpoint automatically ● Code in comments can’t be analyzed by static analysis tools https://github.com/pingcap/failpoint The ideal form0 码力 | 32 页 | 1.76 MB | 5 月前3Tornado 6.5 Documentation
Entry(tornado.web.UIModule): def render(self, entry, show_comments=False): return self.render_string( "module-entry.html", entry=entry, show_comments=show_comments) Tell Tornado to use uimodules.py using the ui_modules in entries %} {% module Entry(entry) %} {% end %} and entry.html: {% module Entry(entry, show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css margin-bottom: 1em; }" def render(self, entry, show_comments=False): return self.render_string( "module-entry.html", show_comments=show_comments) Module CSS and JavaScript will be included once no0 码力 | 272 页 | 1.12 MB | 2 月前3More Ranges Please
○ careers@istraresearch.com ● Always happy to learn and explore ○ Please - ask questions, make comments 2 Slidesroi.barkan@gmail.com Outline ● Libraries ○ What ○ Why ○ How ● Ranges ○ Introduction novel ways ● “Go catch rabbits” ● Thank you !! ○ Questions and comments are welcome ○ Thanks to Bryce Lelbach for review and comments 27 Slides0 码力 | 27 页 | 1.08 MB | 5 月前3Tornado 6.5 Documentation
UIModule): def render(self, entry, show_comments=False): return self.render_string( "module-entry.html", entry=entry, show_comments=show_comments) Tell Tornado to use uimodules.py using entries %} {% module Entry(entry) %} {% end %} and entry.html: {% module Entry(entry, show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css margin-bottom: 1em; }" def render(self, entry, show_comments=False): return self.render_string( "module-entry.html", show_comments=show_comments) Module CSS and JavaScript will be included0 码力 | 437 页 | 405.14 KB | 2 月前3A Multithreaded, Transaction-Based Locking Strategy for Containers
Transaction-Based Locking Strategy for ContainersCopyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Comments • These tools operate upon containers and with elements, but don’t require changing the containers Locking Strategy for Containers 139Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Comments • So far, only std::vector has been used • The maximum number of elements is pre-allocated and Locking Strategy for Containers 140Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Comments • Some threads could starve • Transactions might become stale • Other container types may be0 码力 | 142 页 | 474.78 KB | 5 月前3Django CMS 3.9.x Documentation
describing the feature, its usage and potentially backward incompatibilities. inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour appropriate test coverage and benefits. Bugs To be accepted, proposed bug fixes should have at least: inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour at least 1 regression valuable feedback and will be taken seriously. Formal approval Formal approval means “OK to merge” comments, following review, from at least one member of the core team who has expertise in the relevant areas0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.8.x Documentation
describing the feature, its usage and potentially backward incompatibilities. inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour appropriate test coverage and benefits. Bugs To be accepted, proposed bug fixes should have at least: inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour at least 1 regression valuable feedback and will be taken seriously. Formal approval Formal approval means “OK to merge” comments, following review, from at least one member of the core team who has expertise in the relevant areas0 码力 | 413 页 | 1.67 MB | 6 月前3Django CMS 4.0.x Documentation
describing the feature, its usage and potentially backward incompatibilities. • inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour • appropriate test coverage benefits. Bugs To be accepted, proposed bug fixes should have at least: • inline documentation (comments and docstrings) in the critical areas of the code explaining the behaviour • at least 1 regression 183 django cms Documentation, Release 3.9.0 Formal approval Formal approval means “OK to merge” comments, following review, from at least one member of the core team who has expertise in the relevant areas0 码力 | 296 页 | 1.79 MB | 6 月前3
共 66 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7