JADE Environment Development Ideas

What's new in the JADE 2025 release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED INTEGRATIONS. NEW WEB DEVELOPMENT FRAMEWORK

The Jade 2025 release focuses on modernising the developer experience and helping you build faster, smarter, and more scalable applications.


Start your update to JADE's latest release

Enumeration (enums)

In Jade we often have integer constants that are merely used as a unique identifier. e.g.

CustomerType_Personal = 1; CustomerType_Prospect = 2; CustomerType_Business = 3.

 

If we have a value to add we require to sort constant values by number, then add 1 to the latest one. Which leaves a bit reliance on human eyes being fresh, especially when there is a class with hundreds of constants. I recall adding a  value of over 1100 the other day.

 

Most 3GLs handle this using enumerations. You specify a group and then add in the constant names without a value, or define the first value if required. Google search enum for more information.

 

Can enumerations be made available in Jade?

  • Guest
  • Aug 8 2019
  • Future consideration
  • Attach files
  • John Munro commented
    August 09, 2019 10:17

    This was suggested as JAD-I-81