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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.42.18.2 with SMTP id v2mr25663366ica.25.1409156245658; Wed, 27 Aug 2014 09:17:25 -0700 (PDT) X-Received: by 10.50.142.104 with SMTP id rv8mr757609igb.11.1409156245472; Wed, 27 Aug 2014 09:17:25 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!r2no8487966igi.0!news-out.google.com!aw9ni2igc.0!nntp.google.com!r2no8487958igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 27 Aug 2014 09:17:24 -0700 (PDT) In-Reply-To: <60a42dc6-d8d0-4432-ae5a-86de18b82840@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.69.213.73; posting-account=qZVz2QoAAAAN9WxYp-9jYb7jORc4Zqwt NNTP-Posting-Host: 108.69.213.73 References: <60a42dc6-d8d0-4432-ae5a-86de18b82840@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <090c1c1b-4883-4fb7-988f-e0a0e0608af1@googlegroups.com> Subject: Re: STM32F4 Discovery, communication and libraries From: Mike Silva Injection-Date: Wed, 27 Aug 2014 16:17:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:188683 Date: 2014-08-27T09:17:24-07:00 List-Id: Roy, The problem with reuse is that it is hardly ever as clean and simple as one= would hope. In my experience, by the time you find some code, determine i= f it meets your needs, identify the areas that will need to be changed, and= figure out how to bind to it if in C, it would have been quicker to write = the code from scratch (perhaps using the code you found as a general guide)= . I don't claim that's a universal, just my experience. For example, on the MODBUS drivers, I've used such code in the past, and ev= en though our company paid for custom drivers, we spent a lot of time fixin= g and adjusting them. I doubt we gained anything over writing from scratch= (using whatever code we could have found as a guide). Speaking of reuse, since you're just discovering Ada, you should read about= the Ariane 5 reuse fiasco (which some people foolishly tried to blame on t= he use of Ada, but which is really about the perils of reuse of perfectly g= ood code).