COMPTNG 10A Study Guide - Midterm Guide: Auxiliary Memory, Computer Data Storage, Bjarne Stroustrup

84 views2 pages
14 Sep 2017
School
Professor

Document Summary

But does a lot for human readability + style: necessary b/c real-life progra(cid:373)(cid:373)i(cid:374)g is(cid:374)"t do(cid:374)e alo(cid:374)e i(cid:374) o(cid:374)e sitti(cid:374)g, many times + with a team/others. Secondary notation = visual cues aiding human-readability i. e. indentation. Needs to be descriptive and show what the values stored represent. Good for readability too (cid:271)/(cid:272) sho(cid:449)s you do(cid:374)"t (cid:449)a(cid:374)t to (cid:272)ha(cid:374)ge this (cid:448)aria(cid:271)le. Use a monospaced font for your code so the code aligns. Do(cid:374)"t use ta(cid:271)s. use 2 spa(cid:272)e (cid:272)hara(cid:272)ters. Always comment for the else statement in an if-else statement. Be consistent follow the same set of rules all the time. Use common sense: be able to see what it is like for those who read your code. Power supply: converts unstable ac power (from wall) into stable dc power. Graphics card and monitor: visual output physically holds the components together keyboard and mouse. Cpu: central processing unit: brain that does elementary operations to form a complex program.