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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!xlned.com!feeder1.xlned.com!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How do I write directly to a memory address? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <8r86vgFc3uU1@mid.individual.net> <19fh1chm74f9.11cws0j5bckze.dlg@40tude.net> <4d4ff70e$0$6886$9b4e6d93@newsspool2.arcor-online.net> <737a6396-72bd-4a1e-8895-7d50f287960e@d28g2000yqc.googlegroups.com> <4d5008a5$0$6879$9b4e6d93@newsspool2.arcor-online.net> <4d5031fe$0$6765$9b4e6d93@newsspool3.arcor-online.net> <1f229967-d3cf-42b6-8087-c97ee08652f3@i40g2000yqh.googlegroups.com> <4d51169e$0$7657$9b4e6d93@newsspool1.arcor-online.net> Date: Tue, 8 Feb 2011 20:43:23 +0100 Message-ID: <1bnp0pw1c8r5b$.guxc48qweiwe.dlg@40tude.net> NNTP-Posting-Date: 08 Feb 2011 20:43:21 CET NNTP-Posting-Host: a7a70617.newsspool3.arcor-online.net X-Trace: DXC=82[YaIJhVUE0YVY]kmLTlDMcF=Q^Z^V3H4Fo<]lROoRA8kF On Tue, 08 Feb 2011 11:30:51 -0700, Jeffrey Carter wrote: > The problem with this is it violates Dijkstra's adage that we have small brains > and must do our work with them. Few of us can keep all the code for the entire > project in his head, and there are times when what one remembers is incorrect. > And so, eventually, in any real project, even the best of developers make errors > under such circumstances. > > So, when talking to a C coder, "You said int, so negative values should be OK" > isn't considered a valid argument. The response will be that you are supposed to > have read the code and realized what would happen if you called it with a > negative value. If you then go ahead and do so, you get what you asked for. Three candidates in a row I have interviewed for a C/C++/C# position could not answer the question how to test the 3rd bit of a byte in C. All three had 3+ years of programming "experience." The problem is worse than Dijkstra pictured it. More programmers are needed than before. There are much more projects than before. As the average programmer qualification drops even more programmers needed. It is a positive feedback. Their bird-brains are pre-filled filled with rubbish unrelated to programming. E.g. how to use VisualStudio, MS-Word, Outlook and hundreds of other useless overblown tools etc. There is less and less place to memorize the ticks and pitfalls of C. I am not sure if Ada could really save the world, but it is certain that C significantly aggravates the situation. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de