{"id":270,"date":"2018-11-16T14:20:07","date_gmt":"2018-11-16T14:20:07","guid":{"rendered":"http:\/\/fip.r-a-w.org\/?p=270"},"modified":"2018-11-16T14:23:30","modified_gmt":"2018-11-16T14:23:30","slug":"refactoring-interface-segregation-principle-isp-applied-to-jobman","status":"publish","type":"post","link":"https:\/\/fip.r-a-w.org\/?p=270","title":{"rendered":"Refactoring &#8211; Interface Segregation Principle (ISP) Applied To JobMan"},"content":{"rendered":"<p>This could be applied to the Database class. In particular the replication storage may not be required of later a multi user interface may be required instead of an embedded database. There is also a benefit to extracting the database out to an interface as it will allow other databases to be developed. e.g mysql.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"272\" data-permalink=\"https:\/\/fip.r-a-w.org\/?attachment_id=272\" data-orig-file=\"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?fit=1941%2C1739&amp;ssl=1\" data-orig-size=\"1941,1739\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"jobman16-11-18\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?fit=700%2C627&amp;ssl=1\" class=\"alignnone size-large wp-image-272\" src=\"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=700%2C627&#038;ssl=1\" alt=\"\" width=\"700\" height=\"627\" srcset=\"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=1024%2C917&amp;ssl=1 1024w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=300%2C269&amp;ssl=1 300w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=768%2C688&amp;ssl=1 768w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=700%2C627&amp;ssl=1 700w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?resize=446%2C400&amp;ssl=1 446w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?w=1941&amp;ssl=1 1941w, https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/jobman16-11-18.png?w=1400&amp;ssl=1 1400w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This could be applied to the Database class. In particular the replication storage may not be required of later a multi user interface may be required instead of an embedded database. There is also a benefit to extracting the database out to an interface as it will allow other databases to be developed. e.g mysql.<\/p>\n","protected":false},"author":2,"featured_media":237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,6,3,5],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-decisions","category-implementation","category-oop-design","category-project"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/fip.r-a-w.org\/wp-content\/uploads\/2018\/11\/ANMC0003.jpg?fit=960%2C1200&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NvWe-4m","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":2,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fip.r-a-w.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}