Reusable Code & Reusable Data Structures
0 码力 | 132 页 | 14.20 MB | 5 月前3Back To Basics Algorithms
table = /* ... */; // ... Hard to read Hard to understand Verbose Easy to get wrong Not reusable This comment is a clear indication that something is wrongMaggie Would Use An Algorithm 16 std::ranges::partition() 47 20 Easy to read Easy to understand Less verbose Easy to get right Reusable std:: { return isChild( p ); } ); // ... ranges::partition( table, []( Person = " << total_sum << '\n'; std::begin(values), std::end(values), 0 ); Cool! And it is perfectly reusable again. Let’s use this on a vector of floating-point values …auto const total_sum = std::accumulate(0 码力 | 99 页 | 19.12 MB | 5 月前3The Most Important Design Guideline is Testability
com/articles/article.aspx?p=119385650 Knuth on Extreme Programming and Reusable Code I also must confess to a strong bias against the fashion for reusable code. To me, "re-editable code" is much, much better than about this. If you’re totally convinced that reusable code is wonderful, I probably won’t be able to sway you anyway, but you’ll never convince me that reusable code isn’t mostly a menace. https://www0 码力 | 126 页 | 9.11 MB | 5 月前3Spring Framework 1.2.2 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 10.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 10.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 269 页 | 1.41 MB | 1 年前3Spring Framework 1.2.6 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 11.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 11.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 290 页 | 1.49 MB | 1 年前3Spring Framework 1.2.x Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 11.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 11.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 289 页 | 1.50 MB | 1 年前3Spring Framework 1.2.3 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 10.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 10.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 276 页 | 1.44 MB | 1 年前3Spring Framework 1.2.8 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 11.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 11.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 290 页 | 1.49 MB | 1 年前3Spring Framework 1.2.4 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 11.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 11.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 289 页 | 1.49 MB | 1 年前3Spring Framework 1.2.7 Reference
package contains classes that represent RDBMS queries, updates, and stored procedures as thread safe, reusable objects. This approach is modeled by JDO, although of course objects returned by queries are “disconnected” also execute stored procedures and run update, delete and insert statements. 11.4.1. SqlQuery Reusable thread safe object to represent an SQL query. Subclasses must implement the newResultReader() Data MappingSqlQueryWithParameters and UpdatableSqlQuery. 11.4.2. MappingSqlQuery MappingSqlQuery is a reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to0 码力 | 290 页 | 1.49 MB | 1 年前3
共 763 条
- 1
- 2
- 3
- 4
- 5
- 6
- 77