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