Constructing Generic Algorithms
CONSTRUCTING GENERIC CONSTRUCTING GENERIC ALGORITHMS ALGORITHMS BEN DEANE / BEN DEANE / 16TH SEPTEMBER 2020 16TH SEPTEMBER 2020 @ben_deane @ben_deane 1WHAT WE'LL COVER WHAT WE'LL COVER Preliminaries: puzzle pieces." "The algorithms fit together like puzzle pieces." 5 . 1WHY WRITE GENERIC ALGORITHMS? WHY WRITE GENERIC ALGORITHMS? Isn't the standard set good enough? Isn't the standard set good enough decoupling containers (with the iterator abstraction) allows us to write generic algorithms that work on allows us to write generic algorithms that work on all containers all containers.. So let's write0 码力 | 145 页 | 8.44 MB | 5 月前3generic graph libraries
to many different practical (concrete) problems -theory reuse *,Goes hand-in-glove with goals of generic software libraries Graphs Are Ubiduitous SS interfaces to generic algorithms (codified as concepts) *|Our claim: The standard library aljready provides sufficient capability to support generic graph algorithms and data structures *。Generic graph algorithms usability over expert-friendliness *。Genericity: Abstract from concrete, efficient algorithms to obtain generic algorithms that can be combined with different data representations to produce a wide variety of0 码力 | 76 页 | 6.59 MB | 5 月前3Back to Basics: Generic Programming
1 David Olsen – Generic Programming CppCon 20242 David Olsen – Generic Programming CppCon 2024 Back to Basics: Generic Programming David Olsen, Compiler Engineer, NVIDIA CppCon, 18 Sep 20243 David Olsen Olsen – Generic Programming CppCon 2024 Generic Programming4 David Olsen – Generic Programming CppCon 2024 Generic Programming5 David Olsen – Generic Programming CppCon 2024 Generic Programming Same Same code works on different, unrelated types6 David Olsen – Generic Programming CppCon 2024 Generic Programming Same code works on different, unrelated types T sum(C container) { T result = 0; for (T0 码力 | 175 页 | 1.16 MB | 5 月前3Java EE 企业应用系统开发 - HTTP 响应处理编程
响应对象 响应对象功能和方法 HTTP 响应的内容 在 Web 服务器接收请求处理后,向客户端发送 HTTP 响应 (Response)。 O 响应的内容 ▶ 响应状态(Status Code) ▶ 响应头(Response Header) ▶ 响应体(Response Body) 大纲 HTTP 响应的内容 HTTP 响应对象 响应对象功能和方法 HTTP 响应状态行 表明响应的状态信息,如成功、失败、错误。 向客户端发送指定的错误信息码,可以是任意定义的整数。 1 response.setCharacterEncoding("GBK"); 2 response.sendError(580); O public void sendError(int sc, String msg) throws IOException 向客户端发送指定的错误信息码和自定义状态消息。 1 response.setCharacterEncoding("GBK"); setCharacterEncoding("GBK"); 2 response.sendError(580, "自定义错误"); 大纲 HTTP 响应的内容 HTTP 响应对象 响应对象功能和方法 设置响应头 当客户端接收到响应状态为 200 时,浏览器会继续接收响应头信 息,来确定响应体的类型和大小。 O public void setHeader(String name, String value) 将指定名称和值的响应头发送到客户端。0 码力 | 26 页 | 575.28 KB | 1 年前3JAVA 应用与开发 - 泛型
0 码力 | 35 页 | 587.40 KB | 1 年前3firebird wire protocol
. 4 2.1. Generic response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2. SQL response . . . . . . 2.3. Fetch response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.4. Slice response . . . . . . deferring the read of the response. Chapter 1. Introduction 3 Chapter 2. Responses The wire protocol has a limited set of responses. Some operations have a specific response, which is described together0 码力 | 40 页 | 213.15 KB | 1 年前3Django 1.8.x Documentation
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 HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut functions Generic views Middleware How to use sessions Working with forms HTML forms Django’s role in forms Forms views Built-in class-based generic views Form handling with class-based views Using mixins with class-based views Basic examples Simple usage in your URLconf Subclassing generic views Migrations A Brief0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 2.2.x Documentation
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 HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut functions Generic views Middleware How to use sessions Working with forms HTML forms Django’s role in forms Forms views Built-in class-based generic views Form handling with class-based views Using mixins with class-based views Basic examples Simple usage in your URLconf Subclassing generic views Migrations The Commands0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 1.8.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1037 6.16 Request and response objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1147 6.17 SchemaEditor Tutorial: Part 1: Models | Part 2: The admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5: Testing | Part 6: Static files • Advanced Tutorials: How to write reusable apps returning the response. Find all you need to know about views via the links below: • The basics: URLconfs | View functions | Shortcuts | Decorators • Reference: Built-in Views | Request/response objects |0 码力 | 1685 页 | 6.01 MB | 1 年前3Django 2.1.x Documentation
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 HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut functions Generic views Middleware How to use sessions Working with forms HTML forms Django’s role in forms Forms views Built-in class-based generic views Form handling with class-based views Using mixins with class-based views Basic examples Simple usage in your URLconf Subclassing generic views Migrations The Commands0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100