{"id":227,"date":"2022-05-24T12:13:51","date_gmt":"2022-05-24T11:13:51","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/?page_id=227"},"modified":"2024-09-03T10:28:33","modified_gmt":"2024-09-03T09:28:33","slug":"subprograms","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/subprograms\/","title":{"rendered":"Subprograms"},"content":{"rendered":"<p><strong>Modularity<\/strong> is all about breaking a software project down into clearly identifiable program components.\u00a0 The generic name given to such components is <strong>subroutines<\/strong> (or <strong>subprograms<\/strong>). They are the building blocks of software.\u00a0 Subroutines can generally be classified in most languages as either a <strong>Procedure<\/strong> or a <strong>Function.<\/strong><\/p>\n<h2 style=\"color: red\">Procedures<\/h2>\n<p>Procedures are named blocks of code used to group together a related sequence of commands or tasks into a single component.\u00a0 The Procedure can cause an effect or preform an operation.<\/p>\n<h2 style=\"color: red\">Functions<\/h2>\n<p>A function\u00a0<strong>returns one or more values<\/strong> which can be assigned to variables when the function is called.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-229\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/24122314\/Screenshot-2022-05-24-122301-300x163.png\" alt=\"\" width=\"735\" height=\"400\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/24122314\/Screenshot-2022-05-24-122301-300x163.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/24122314\/Screenshot-2022-05-24-122301.png 615w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modularity is all about breaking a software project down into clearly identifiable program components.\u00a0 The generic name given to such components is subroutines (or subprograms). They are the building blocks of software.\u00a0 Subroutines can generally be classified in most languages as either a Procedure or a Function. Procedures Procedures are named blocks of code used [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-227","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":5,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/227\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/227\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/media?parent=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}