MSAMM
Back to course

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

Naming state so it is findable

Lesson 42 of 176 · 3 min

A visual tool HAS NO SEARCH ACROSS EVERYTHING. A convention is what stops THE FIFTEENTH VARIABLE BEING A MYSTERY. Module 3 Lesson 7 said this about pages; here it is about state, where it bites hardest, because a variable is the thing you go looking for when something is wrong. THE PROBLEM IS THAT VARIABLES ARE SCATTERED BY DESIGN. Some on this page, some on the flow, some on the application — three places, no combined list, and no way to ask "where is the customer id". You find it by knowing where to look, and knowing where to look is a convention or it is memory. SO THE FIRST THING A NAME SHOULD ENCODE IS WHAT KIND OF THING IT HOLDS. A service result, a user's input, a selection, a flag controlling display. Reading a binding then tells you where the value came from, which is the first question

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