Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/05/12 10:21
Modified:
  01/05/12 10:22

Read: times


 
#185314 - Libraries good, but not always best
Responding to: ???'s previous message
Donagh Choghlan said:
Its clear now that I need to be able to write and implement libraries if I want any hope of writing professional looking code.


Why?

Libraries doesn't make code looking more professional. It's a way to let many projects share a common set of functionality.

But if the code is stable (which it really should be, or it's questionable if it really is suitable for a library), then it doesn't matter so much if the source code itself is duplicated for multiple projects.

In many situations, only code duplication is really acceptable. And the reason is that embedded projects can live for 10 years or more, and company A can sell the product (i.e. ownership of source code etc) or license the source code to another company. Then it is good that the project is complete. A library means a huge cost, if one of the functions is later found to need to be changed and the full functionality of the library has to be recreated because the access to the source code has been lost.

Even without company mergers, a number of companies every year do manage to get parts of their source code lost, and ends up with important projects that can't be completely rebuilt.

Edit: One more thing - if you want to debug, you need access to debug information. And the corresponding source code.

List of 40 messages in thread
TopicAuthorDate
Assembly coding micro-converters            01/01/70 00:00      
   Code indented            01/01/70 00:00      
      Assemblers often have different syntax            01/01/70 00:00      
         Assembler            01/01/70 00:00      
            Why not use Keil A51 ?            01/01/70 00:00      
               why assembler?            01/01/70 00:00      
                  Libraries?!?!?            01/01/70 00:00      
                     Libraries good, but not always best            01/01/70 00:00      
                        Ok back to Data and Bit            01/01/70 00:00      
                           Manual            01/01/70 00:00      
                           ok back            01/01/70 00:00      
                              I C            01/01/70 00:00      
               Keil A51            01/01/70 00:00      
                  junk downloaders            01/01/70 00:00      
                  take a look at ASEM51            01/01/70 00:00      
                     asem-51 macros            01/01/70 00:00      
                        You don't have to use 'em            01/01/70 00:00      
                  re-think about tools            01/01/70 00:00      
                     ADuC842            01/01/70 00:00      
                        learn            01/01/70 00:00      
                           There are PLENTY of debuggers ...            01/01/70 00:00      
                              Documentation            01/01/70 00:00      
                                 interrupt vectors            01/01/70 00:00      
                                 Memo to Reinhard Keil            01/01/70 00:00      
                                 Keil docs are not bad.            01/01/70 00:00      
                                 Well ... Last time I had questions about ASEM51 ...            01/01/70 00:00      
                                    the good and the bad            01/01/70 00:00      
                                       Well, I must have mistyped            01/01/70 00:00      
                                          asem/asm            01/01/70 00:00      
                                          linker support?            01/01/70 00:00      
                                             it's provided by ASEM-51, I suppose            01/01/70 00:00      
   Ok back to the task at hand            01/01/70 00:00      
      make it easy for yourself            01/01/70 00:00      
         I’m afraid the hard ware is non negotiable            01/01/70 00:00      
            well, ....            01/01/70 00:00      
               Dinosours, I2Cs, Gang-bang???            01/01/70 00:00      
                  1st            01/01/70 00:00      
                     Simple approach            01/01/70 00:00      
                        yes            01/01/70 00:00      
                           For Free :-)            01/01/70 00:00      

Back to Subject List