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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/09/06 12:43
Read: times


 
#126040 - shades of grey
Responding to: ???'s previous message
Erik, take this on board - everything is not so black and white.

the example
 if (TheBoxerHasStopped()) 
 {
   StopTheConveyor();
 }
(which is great with the exception that I would make "TheBoxerHasStopped()" a macro rather than a function) is, in my opinion, an example of "good coding practices" and, does, of course imply some form of "abstraction" BUT does so for the sake of clarification Most so called abstraction I have seen has been for the sake of obfusciation.
So, to clarify my point, abstraction for the purpose of clarification is excellent, abstrarction for the sake of abstraction is a menace.

If you use "abstraction" as the OP suggest, to be able to do something you do not understand, that is not useful "abstraction" but guarateeing failure.

There has been posted examples of "abstraction" in the preceeding posts, and that is NOT what I am arguing, HOWEVWR, It is so rare to see "abstraction" used in those contexts. Usually "abstraction" refer to "OK, so you do not want to understand this, fine, just use this" and I can not tell how many cases of failure has been due to that.

Yes, If, by "abstraction" you refer to wxamples like the one above, I have no beef, but how many of the "abstraction prophets" stop there?

Erik


List of 32 messages in thread
TopicAuthorDate
Uncalled segments problem with library            01/01/70 00:00      
   Work with the tools!            01/01/70 00:00      
      I didn't know that is the standard way...            01/01/70 00:00      
         Not a 'C' language issue.            01/01/70 00:00      
         Not True            01/01/70 00:00      
   abstraction my butt            01/01/70 00:00      
      Abstraction HAS a meaning in embedded            01/01/70 00:00      
         yes sure            01/01/70 00:00      
         so why do you do these things            01/01/70 00:00      
            Maybe I don't know what abstraction is...            01/01/70 00:00      
               Hardware knowledge            01/01/70 00:00      
      Abstraction: NOT Always Bad            01/01/70 00:00      
         10 points Russ            01/01/70 00:00      
            shades of grey            01/01/70 00:00      
               Maybe abstraction is not the issue            01/01/70 00:00      
                  Useful?            01/01/70 00:00      
                     Pascal            01/01/70 00:00      
                     etc, etc            01/01/70 00:00      
                  is a libray function an "abstraction"?            01/01/70 00:00      
                     Is a library function an abstraction?            01/01/70 00:00      
                  I rest my case, m'lud            01/01/70 00:00      
                     Attila! Where are you?            01/01/70 00:00      
                  CodeArchitect?            01/01/70 00:00      
                     CodeArchitect?            01/01/70 00:00      
                     it generates source code; however            01/01/70 00:00      
         about abstraction ...            01/01/70 00:00      
            By Jove, I think you've got it!            01/01/70 00:00      
         Some more info why I wan't to use an API            01/01/70 00:00      
            a TOTALLY different story            01/01/70 00:00      
               Provide the source code...            01/01/70 00:00      
            Some more info why I wan't to use an hard disk            01/01/70 00:00      
               two mistakes            01/01/70 00:00      

Back to Subject List