The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.
Usually, if a function contained too many lines and complex logic,this function will be hard to understand and maintain. so that, someone introduces theory to guide on how to split these statements of long lines function into smaller functions. So that the program will be easier to understand and maintain. This theory is called “Extract Method”, which is a very important part of refactoring theory. To better support this theory, some of IDE provide the “Extract Method” feature for programmers to extract method automatically, like JDT for Java language. In RBD 9.0, we will also provide the “Extract EGL Function” feature, which is similar to JDT for Java language.
Step 3>Input the function name and select Access modifier in the pop-up wizard
Scope for “Extract EGL Function”:
Copy