You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate dependency logic (use app settings to create objects) from action logic (use previously created objects) to perform page actions
Process (from MLAP, p. 144) :
Find a page script where action logic is still mixed in with the rest of the code.
In that page script, rearrange the code so that all action logic is in its own central block. Spot check the rearranged code to make sure it still works properly.
Extract the central block of action logic to a new Controller class, and modify the page script to use the new Controller. Spot check the page script with the Controller in place.
Write a unit test for the new Controller class and spot check again.
Commit the new code and tests, push them to the common repository, and notify QA.
Find another page script with embedded action logic and start again; when all page scripts use Controller objects, we are done.
The text was updated successfully, but these errors were encountered:
Separate dependency logic (use app settings to create objects) from action logic (use previously created objects) to perform page actions
Process (from MLAP, p. 144) :
The text was updated successfully, but these errors were encountered: