cloudflare / keyless

Cloudflare's Keyless SSL Server Reference Implementation
Other
276 stars 78 forks source link

Completion of error handling #76

Closed elfring closed 9 years ago

elfring commented 9 years ago

I have looked at a few source files for your current software. I have noticed that some checks for return codes are missing.

Would you like to add more error handling for return values from functions like the following?

jgrahamc commented 9 years ago

Makes sense. Want to fix and make a PR?

elfring commented 9 years ago

I suggest to avoid ignorance of return values a bit more. Can you reopen this issue?

Are you interested to apply aspect-oriented software development? How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?

jgrahamc commented 9 years ago

I reopened it. If you want to fix and make a PR I'll be happy to merge it, but I'm not planning on making major changes to the code.

elfring commented 9 years ago

How do you think about to improve static source code analysis also for your software?

Do you find information sources like the following useful?

jgrahamc commented 9 years ago

I'm interesting mostly in running code with good test suites. If you find problems with the code I would very much appreciate fixes and PRs.

elfring commented 9 years ago

How do you think about to delegate some software development tasks to other tools like "AspectC++"?

jgrahamc commented 9 years ago

We have no plans to change the way this piece of code was developed.

elfring commented 9 years ago

It can be one of your design choices to continue source code maintenance in the manual way completely. I would prefer to achieve benefits with aspect-oriented software development by dedicated tools.

jgrahamc commented 9 years ago

Fixed.

elfring commented 9 years ago

There are more update candidates left over.

Examples:

jgrahamc commented 9 years ago

OK.

jgrahamc commented 9 years ago

Done.

elfring commented 9 years ago

Thanks for your small source code improvement.