{"id":2329,"date":"2026-11-10T08:03:47","date_gmt":"2026-11-10T08:03:47","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=hard-coded"},"modified":"2026-11-10T08:03:47","modified_gmt":"2026-11-10T08:03:47","slug":"hard-coded","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=hard-coded","title":{"rendered":"Hard-Coded"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hard-coded means a value is written directly into a program instead of being kept as a setting that can be changed. If a price, phone number or password is hard-coded, only a developer editing the source can change it. It is the opposite of making something configurable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hard-coded values make updates slow and costly. Hard-coded passwords are also a serious security risk.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A website has the old M-Pesa till number hard-coded on 12 pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ask developers to keep prices, contacts and keys in settings.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Hard-coded means a value is written directly into the program instead of being a setting you can change.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[13],"dc_topic":[34],"class_list":["post-2329","dc_term","type-dc_term","status-publish","hentry","dc_letter-h","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":0,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2329\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2329"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=2329"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=2329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}