{"id":645,"date":"2025-02-23T06:50:13","date_gmt":"2025-02-23T06:50:13","guid":{"rendered":"https:\/\/datadandies.nl\/?p=645"},"modified":"2025-02-23T06:50:13","modified_gmt":"2025-02-23T06:50:13","slug":"rule-of-least-power","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2025\/02\/23\/rule-of-least-power\/","title":{"rendered":"Rule of Least Power"},"content":{"rendered":"\n<p>Recently came across the Rule of Tw\u2026. I mean the Rule of Unlimited Pow\u2026 I mean the Rule of Least Power!<\/p>\n\n\n\n<p>Within the framework of choosing a programming language to accomplish a certain goal: pick the language that has the least power and will still get the job done.<\/p>\n\n\n\n<p>In other words, don\u2019t use a amphibious crawler excavator when you want to dig a small hole in your garden. Use a shovel instead.<\/p>\n\n\n\n<p>Another computer-related example might be to pick .ini instead of .py when the goal is storing configuration data.<\/p>\n\n\n\n<p>The .py extension means that the file is a Python module that runs code. The .ini extension means that the file is a configuration file that contains plain text with configuration data. The .ini file can be used by more applications than the .py file and still serves the purpose of containing the necessary configuration data.<\/p>\n\n\n\n<p>As an example, when the goal is storing configuration data you could create a .py file like below:<\/p>\n\n\n\n<p>host = dunnoifthissiteexists.com<\/p>\n\n\n\n<p>port = 80<\/p>\n\n\n\n<p>However, due to the reasons listed above, you could increase the applicability by saving the data in a .ini file like below:<\/p>\n\n\n\n<p>[parameters]<\/p>\n\n\n\n<p># Host<\/p>\n\n\n\n<p>host = dunnoifthissiteexists.com<\/p>\n\n\n\n<p>port = 80 Wiki: https:\/\/en.wikipedia.org\/wiki\/Rule_of_least_power<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently came across the Rule of Tw\u2026. I mean the Rule of Unlimited Pow\u2026 I mean the Rule of Least Power! Within the framework of choosing a programming language to accomplish a certain goal: pick the language that has the least power and will still get the job done. In other words, don\u2019t use a&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/datadandies.nl\/index.php\/2025\/02\/23\/rule-of-least-power\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-blog","tag-computerscience"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=645"}],"version-history":[{"count":1,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions\/646"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}