Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Are the Samples provided by Adobe of production quality?

$
0
0

There is always the possibility that I am the one who doesn't know what he is doing, but this one time this issue has got to be Adobe's fault.

 

After many sleepless nights, I have concluded that this code:

 

http://patriot.net/~ramon/misc/PDEPathExplorerSnip.cpp.txt

 

should be accompanied by a large disclaimer:

 

WARNING! IT HAS BEEN DETERMINED THAT THIS PARTICULAR FUNCTION IS DAMAGING FOR YOUR APPLICATION!!

 

:-)

 

I will expand in another post, but consider this, for starters:

 

Not-The-Best-Programming.png

 

As soon as I saw those lines of code, I said to myself "oh, oh, I smell trouble".... Little did I know!

 

Back in the days of CS-101 professors always insisted: "A function should always have ONE return statement!!"

 

       http://en.wikipedia.org/wiki/Structured_programming

 

This is my solution, but it does not fix the fact that the provided function does not seem to be usable as-is.

 

Improvement.png

 

 

-Ramon


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>