{"id":48432,"date":"2024-12-02T19:54:59","date_gmt":"2024-12-02T19:54:59","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=48432"},"modified":"2024-12-02T19:54:59","modified_gmt":"2024-12-02T19:54:59","slug":"computer-science-what-is-a-stub","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/computer-science-what-is-a-stub\/","title":{"rendered":"Computer science: what is a stub?"},"content":{"rendered":"\n<h2>Self-tutoring about computer science: the tutor mentions the idea of a stub.<\/h2>\n<p>\nIn programming, a stub is a function that, when called, returns a value of the expected type so that the calling function can continue running. Being a stub suggests it may have no working internals except to return the same output regardless of input.<\/p>\n<p>\nDuring development of a larger system, stubs can be used to establish connectivity, proof-of-life, etc. Ideally, each stub will eventually be developed so its output depends on its input.<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/softwareengineering.stackexchange.com\/questions\/271720\/what-does-stubbing-mean-in-programming\">softwareengineering.stackexchange.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC. \n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about computer science: the tutor mentions the idea of a stub. In programming, a stub is a function that, when called, returns a value of the expected type so that the calling function can continue running. Being a stub &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/computer-science-what-is-a-stub\/\"> <span class=\"screen-reader-text\">Computer science: what is a stub?<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[106],"class_list":["post-48432","post","type-post","status-publish","format-standard","hentry","category-computer-science","tag-programming"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=48432"}],"version-history":[{"count":3,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48432\/revisions"}],"predecessor-version":[{"id":48436,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48432\/revisions\/48436"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=48432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=48432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=48432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}