From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: 4 beginner's questions on the PL Ada Date: Sat, 10 Aug 2013 23:15:05 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> <877gfucton.fsf@VLAN-3434.student.uu.se> <87pptmb4p9.fsf@VLAN-3434.student.uu.se> <88cb99c6-df8b-49f8-ac53-54b737a02c34@googlegroups.com> <87eha1787k.fsf@VLAN-3434.student.uu.se> Injection-Date: Sat, 10 Aug 2013 23:15:05 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="3a7522c45acd2a6c162b080668fa4020"; logging-data="30869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a+fXHOODt+1Jf553nMa420iZSG3beg18=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:oJSrNBUhcV5dINdS8IluUTMV1nk= Xref: number.nntp.dca.giganews.com comp.lang.ada:182953 Date: 2013-08-10T23:15:05+00:00 List-Id: On 2013-08-10, Emanuel Berg wrote: > Shark8 writes: > >> There's a *huge* problem with this: superficial understanding. >> This problem can lead to extremely bad code adopted as "best >> practice"/"standard practice". > > There is nothing superficial about code. Code *is* programming! > Code explains _what_ is being done but it does not explain _why_ it is being done in this way. Would you rather implement, say, a communications protocol by looking at a existing implementation only, or would you rather work from a design specification which will include the background and overview as well as explain the reason for why certain things are done in the way they are ? If you look at the code only, you only gain a superficial understanding of how the protocol is implemented and can end up falling into a cargo cult mentality. If you work from the design specification, you gain a far deeper understanding of what is going on. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world