Refactor demo apps: standardize naming and improve code organization#590
Merged
oblomov-dev merged 4 commits intostandardfrom Mar 15, 2026
Merged
Refactor demo apps: standardize naming and improve code organization#590oblomov-dev merged 4 commits intostandardfrom
oblomov-dev merged 4 commits intostandardfrom
Conversation
- app002: rename TYPES to ty_s_ prefix (ty_s_suggestion_item, ty_s_combobox_item) - app004: move view_main (non-bound) from PUBLIC to PROTECTED section - app006: move check_ui5 and key (non-bound) from PUBLIC to PROTECTED section - app008: restructure with on_init/on_event/view_display; fix single quotes → backticks; fix && concatenation → string templates; fix shownavbutton → check_app_prev_stack(); move check_strip_active/strip_type to PROTECTED section - app009: lowercase class name in IMPLEMENTATION; rename methods to canonical names (on_init, on_event, view_display, popup_f4_suggestion, popup_f4_employee); rename types to ty_s_/ty_t_ prefix; rename attributes (s_screen, t_suggestion etc.); move popup methods and non-bound t_employees to PROTECTED; remove dead mv_view_popup code; fix single quotes → backticks; fix CLEAR → VALUE #(); fix view->stringify() - app010: lowercase class name; extract on_init/view_display; fix single quotes → backticks; fix blank lines; use check_app_prev_stack() for shownavbutton https://claude.ai/code/session_015wbHyKFwZgLaodzg7BdXoq
Remove trivial on_init that only delegated to view_display. https://claude.ai/code/session_015wbHyKFwZgLaodzg7BdXoq
- CLAUDE.md: add rule that a method with only one statement must not be extracted — call that statement directly from the dispatcher instead - app008: remove trivial on_init that only called view_display(); call view_display() directly from main https://claude.ai/code/session_015wbHyKFwZgLaodzg7BdXoq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactored multiple demo application classes to improve code consistency, naming conventions, and overall structure. The changes focus on standardizing type naming, reorganizing method visibility, and improving code readability.
Key Changes
Type Naming Standardization
ty_s_*(struct) andty_t_*(table) naming conventions_suggestion_items→ty_s_suggestions_suggestion_items_city→ty_s_citys_employee→ty_s_employeesuggestion_item→ty_s_suggestion_itemcombobox_item→ty_s_combobox_itemData Member Reorganization
clientreference to PROTECTED section for consistent access across methodsscreentos_screenfor clarityt_*prefix (e.g.,mt_suggestion→t_suggestion)_seltable variants where possibleMethod Refactoring
z2ui5_prefix for cleaner code:z2ui5_on_init→on_initz2ui5_on_event→on_eventz2ui5_on_rendering→view_displaypopup_value_suggestion,popup_value_employee)Code Quality Improvements
on_initon_eventAffected Classes
z2ui5_cl_demo_app_009(major refactoring)z2ui5_cl_demo_app_008(method reorganization)z2ui5_cl_demo_app_010(structure improvements)z2ui5_cl_demo_app_002(type naming)z2ui5_cl_demo_app_004(data organization)z2ui5_cl_demo_app_006(data organization)Implementation Details
ty_prefix patternmainand reused across methodshttps://claude.ai/code/session_015wbHyKFwZgLaodzg7BdXoq