{"id":364,"date":"2022-05-16T17:32:12","date_gmt":"2022-05-16T16:32:12","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/?page_id=364"},"modified":"2022-05-16T17:32:12","modified_gmt":"2022-05-16T16:32:12","slug":"evaluation","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/evaluation\/","title":{"rendered":"Evaluation"},"content":{"rendered":"<h2 style=\"color: red\">Fitness for Purpose<\/h2>\n<p>Once a software project has been completed, it should be evaluated to assess whether or not it solves the problem that its supposed to solve.<\/p>\n<p>Software is said to be fit for purpose if it fulfils the requirement which were identified at the analysis stage.<\/p>\n<h2 style=\"color: red\">Efficient Code<\/h2>\n<p>A program is efficient if the length of its code or speed of execution is proportional to the scale of the program.<\/p>\n<p><strong>Use of Loops<\/strong><\/p>\n<p>The use of repetition can improve the efficiency by repeating instructions in a loop rather than using a sequence of individual instructions.<\/p>\n<p><strong>Arrays<\/strong><\/p>\n<p>Using arrays for a list of related data is much more efficient than using separate variables.\u00a0 Using an array allows the elements to be processed in a loop rather than having repeated code to process each separate variable.<\/p>\n<p><strong>Nested If\u2019s<\/strong><\/p>\n<p>Using nested IF\u2019s instead of multiply IF\u2019s produces more efficient code since less execution of instruction is required.<\/p>\n<h3 style=\"color: red\">What do we mean by efficiency?<\/h3>\n<p>The term efficiency is usually used to refer to the demands that code places on RAM or the processor. Only using RAM and the processor when necessary leads to efficient use of system resources.<\/p>\n<p>However, at National 5 level it is also important to take account of how long it takes to create code. Sometimes it may be possible to make more efficient use of programmer time without impacting on efficiency as it relates to RAM or the processor.<\/p>\n<h2 style=\"color: red\">Robustness<\/h2>\n<p>A program is robust if it can cope with unexpected inputs or mishaps without crashing\u200b<\/p>\n<p>If a program is expecting a number to be entered and the\u00a0user enters a piece of text, then the program should give\u00a0an error message and request the user to re-enter the\u00a0numbers, and should not simply crash<\/p>\n<h2 style=\"color: red\">Readability<\/h2>\n<p>Means how easy is it for somebody else to understand\u00a0your code.<\/p>\n<p>Readability of your program can be improved by: \u200b<\/p>\n<ul>\n<li>Using <strong>meaningful <\/strong>variable,\u00a0array\u00a0and\u00a0function\u00a0<strong>names<\/strong>\u00a0\u200b<\/li>\n<li>Using\u00a0<strong>indentation <\/strong>properly especially with loops and if\u00a0structures\u00a0\u200b<\/li>\n<li>Using <strong>white space<\/strong> (blank lines) to divide up sections of code\u00a0\u200b<\/li>\n<li>Including helpful <strong>internal commentary<\/strong> These lines of\u00a0code are ignored by Python but help to explain to humans\u00a0reading the code what is being done.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fitness for Purpose Once a software project has been completed, it should be evaluated to assess whether or not it solves the problem that its supposed to solve. Software is said to be fit for purpose if it fulfils the requirement which were identified at the analysis stage. Efficient Code A program is efficient if [&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-364","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":1,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/364\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/364\/revisions\/365"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/media?parent=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}