MSAMM
Back to course

Oracle Visual Builder: Applications That Outlive Their First Release · Module 4 · Variables, types and where state lives

Types that mirror a service

Lesson 37 of 176 · 3 min

GENERATING A TYPE FROM AN ENDPOINT, and what happens to it when THE ENDPOINT CHANGES SHAPE — which MODULE 6 MAKES CONCRETE. The tool can read a service and build a type from what it returned, which saves real work and creates one specific hazard worth understanding before you use it. WHAT IT DOES IS TAKE A SAMPLE RESPONSE AND WRITE A TYPE THAT MATCHES IT. Every field, its shape, nested objects and all. For an endpoint returning forty fields that is minutes saved and a type more accurate than one written by hand. THE HAZARD IS THAT THE TYPE IS A SNAPSHOT AND THE SERVICE IS NOT. It records what that endpoint returned ON THE DAY YOU GENERATED IT. It does not track the service, it is not re-checked, and nothing tells you when the two have diverged. SO A FIELD RENAMED ON THE SERVER LEAVES YOU WITH A

The full lesson is part of the course

The video, the complete written lesson and the module quiz are included in Oracle Visual Builder: Applications That Outlive Their First Release, with a certificate on completion and a fourteen-day refund window.

Get the free lessons by email

We will email you a link to every free lesson in this course. No account needed, and one message only.

In this module: Module 4 · Variables, types and where state lives

  1. 1What a variable is here
  2. 2The scopes, and what each one meansFree preview
  3. 3Choosing a scope, deliberately
  4. 4Types, and why you should declare them
  5. 5Types that mirror a service
  6. 6Computed values and expressions
  7. 7Variables that persist
  8. 8The event that fires when state changes
  9. 9State that four pages need
  10. 10Naming state so it is findable
  11. 11What breaks: four state failures
  12. 12Lab briefing · Move state and watch it break