Errata

AI-Assisted Programming

Errata for AI-Assisted Programming

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 154
Entire page

I enjoyed this book very much!

I just wanted to point out, though, that the example on page 154 is probably not the best. There, the author shows how the AI-generated code is "verbose" - and that a human might generate a better approach such as the code sample on the top of page 155.

However, the AI-generated code - while longer - is actually more efficient than the shorter version. This is because the AI-generated version has a time complexity of O(N), as it doesn't have to do any sorting. (It takes advantage of the fact that each list is already sorted.) The shorter version, though, takes O(N log N) time since sorting is required.

Best,
Jay

Jay Wengrow  Jan 08, 2025