{"id":5569,"date":"2021-01-04T21:11:22","date_gmt":"2021-01-04T21:41:22","guid":{"rendered":"https:\/\/ultering.com\/it4us\/?p=5569"},"modified":"2021-01-21T15:29:15","modified_gmt":"2021-01-21T15:59:15","slug":"refactoring-and-maintenance-rules-of-thumb-from-direct-experience","status":"publish","type":"post","link":"https:\/\/ultering.com\/it4us\/?p=5569","title":{"rendered":"Programming: Refactoring And Maintenance &#8211; Rules of Thumb From Direct Experience"},"content":{"rendered":"<p><strong>&nbsp;<\/strong><\/p>\n<p style=\"text-align: justify;\"><noscript><img decoding=\"async\" class=\"alignnone size-full wp-image-5572\" src=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2021\/01\/uninstall_complete.gif\" alt width=\"360\" height=\"240\"><\/noscript><img decoding=\"async\" class=\"alignnone size-full wp-image-5572 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20360%20240%22%3E%3C%2Fsvg%3E\" alt width=\"360\" height=\"240\" data-src=\"https:\/\/ultering.com\/it4us\/wp-content\/uploads\/2021\/01\/uninstall_complete.gif\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong><span data-preserver-spaces=\"true\">Before changing a complex code, consider these pieces of advice carefully.<\/span><\/strong><\/p>\n<p><strong><span data-preserver-spaces=\"true\">The code may look like a simple task.<\/span><\/strong><\/p>\n<p><strong><span data-preserver-spaces=\"true\">To get a better judgment, think about the dependencies related to it.<\/span><\/strong><\/p>\n<p><strong><span data-preserver-spaces=\"true\">If you are not sure, so make sure.<\/span><\/strong><\/p>\n<p><strong><span data-preserver-spaces=\"true\">Check the considerations below to save time and despair!<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<ol>\n<li><strong>Get acquainted about all the features related to that part of the code you intend to work on, most important variables and classes involved.<\/strong><br>\nIf it is the core, it is necessary to revise all features and dependencies.<br>\n&#8212;<br>\nDo a list, summarized about all features.<br>\n&#8212;<br>\nGet to know all main variables. What they do, what they control and which features they are involved in.<br>\n&#8212;<br>\nIf necessary, create a fast model to understand the dependencies between classes.<br>\nHow they collaborate to perform the tasks you are about to change.<br>\n&#8212;<br>\n&#8212;<\/li>\n<li><strong>Grow small.<\/strong><br>\nThe best approach is to create a sandbox to reproduce functionalities from the beginning as if you were creating the application from scratch.<br>\nOne by one feature or procedure.<br>\nWhen you created the first version of ESL, it was done by this process, and it was very successful. Attempts to start big resulted in failures.<br>\n&#8212;<br>\n&#8212;<\/li>\n<li><strong>Small changes and test planning.<\/strong><br>\nCreate the versioning structure &#8211; how are you supposed to handle each change?<br>\nCommitting, branching?<br>\nCreate the test planning &#8211; a checklist with all the features that must be tested.<br>\nDo just one change and apply the test planning.<br>\nDon&#8217;t skip the checklist. Just one item is enough to invalidate that change.<br>\n&#8212;<br>\n&#8212;<\/li>\n<li>Never underestimate a task.<br>\nDon&#8217;t start working thinking it is just a small thing to make the miracle.<br>\n<span data-preserver-spaces=\"true\">Usually, in the middle of the task, you may get lost about exactly what you&#8217;ve done,<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; Before changing a complex code, consider these pieces of advice carefully. The code may look like a simple task. To get a better judgment, think about the dependencies related to it. If you are not sure, so make sure. Check the considerations below to save time and despair! &nbsp; &nbsp; Get acquainted &#8230; <a href=\"https:\/\/ultering.com\/it4us\/?p=5569\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &#8220;Programming: Refactoring And Maintenance &#8211; Rules of Thumb From Direct Experience&#8221;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[151],"tags":[],"class_list":["post-5569","post","type-post","status-publish","format-standard","hentry","category-cs"],"_links":{"self":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/5569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5569"}],"version-history":[{"count":3,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/5569\/revisions"}],"predecessor-version":[{"id":5608,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/5569\/revisions\/5608"}],"wp:attachment":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}