Custom Views for the Rest of Us
1Custom Views for the Rest of Us — Jacob Rice jacob.rice.cpp@gmail.com 2🎉🎆🎊 using namespace std::views; for (int i : iota(2) | filter(even) | transform(square)) std::cout << i << ' '; 1 singleForceOnThisBody); 15 } 16 12131415What is a view? 17Easy to access: namespace std { namespace views = ranges::views; } 1 2 3 18Range View Semantically: a collection of "things". Has begin and end functions using namespace std::views; 1 2 std::cout << i << ' '; 3 21Range Adaptor Range Factory A view that takes a range as input. Represents the range in a different way. Most views are adaptors. A view0 码力 | 187 页 | 13.25 MB | 5 月前3Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views
Other names and brands may be claimed as the property of others.Human Readable Disclaimer - The views in this talk are mine, not necessarily those of my employer. - This is a speculative, academic-style float dot_product(vector& x, vector & y) { auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return Distributed Data Structures) - Distributed Ranges (Concepts) - Implementation (Algorithms and views) - Complex Data Structures (Dense and sparse matrices) - Lessons learnedOutline - Background 0 码力 | 127 页 | 2.06 MB | 5 月前3Taming the C++ Filter View
Josuttis C++ Filter View @cppcon 2024-09-17 1©2024 by josuttis.com 3 C++ Views C++20 ©2024 by josuttis.com 4 C++ C++20: Views void print(const T& coll) { for (const auto& elem : coll) { std::cout templateNico Josuttis C++ Filter View @cppcon 2024-09-17 2©2024 by josuttis.com 5 C++ C++20: Views void print(const auto& coll) { for (const auto& elem : coll) { std::cout << elem << ' '; } std::cout 42, 1}; Output: 0 8 15 47 11 42 1 0 1 8 11 15 42 47 C++20 ©2024 by josuttis.com 6 C++ C++20: Views void print(const std::ranges::input_range auto& coll) { for (const auto& elem : coll) { std::cout 0 码力 | 43 页 | 2.77 MB | 5 月前3Django 2.2.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a simple form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic testing0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 2.1.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a simple form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic testing0 码力 | 2790 页 | 2.71 MB | 1 年前3Django 2.1.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 3.6 Class-based views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 3.7 Migrations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647 6.4 Clickjacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1414 6.28 Built-in Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14180 码力 | 1910 页 | 6.49 MB | 1 年前3Django 2.0.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a simple form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic0 码力 | 2746 页 | 2.67 MB | 1 年前3Django 4.2.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a minimal form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic testing0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 4.1.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a minimal form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic testing0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 1.11.x Documentation
dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your views Design your templates This is just the surface Quick install guide Install Python Set up a database Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write views that actually do something Raising a 404 error Use the template system Removing hardcoded URLs templates Namespacing URL names Writing your first Django app, part 4 Write a simple form Use generic views: Less code is better Writing your first Django app, part 5 Introducing automated testing Basic0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100