8. Introduction to Functions15. Exercise Summary

15 - Exercise Summary

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

Solution

What you built

  • A set of Functions that map individual flight alerts in your object table to their associated departure and arrival delays.
  • Custom, Function-backed columns in your Workshop module.

What you learned

  • Workshop’s object table interface allows you to reference properties and aggregations from objects directly linked to the object set in the table, but if you need custom value concatenations or properties from transitively linked objects, you’ll need to write a function.
  • You can make your link traversals much more efficient by loading them using asynchronous APIs (getAsync() and allAsync()).
  • Function-backed properties are calculated on-the-fly in your Workshop module’s object table.

It will take some practice with TypeScript before you can intuit ways to optimize your code. One place to start is this documentation page, which reviews common optimization measures.