jcloudpub/speedy

Check return codes everywhere

Opened this issue · 4 comments

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?

@elfring great suggestion, already fixed, thks~

I do not like the use of the assert macro because unexpected results will still be ignored if the preprocessor symbol "NDEBUG" will be defined. I suggest to avoid ignorance of return values a bit more.

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?

@elfring it make sense, already work on the issue of ignorance of return values.

about the aspect-oriented software development, I'd like to keep the code as simple as possible right now, so the aspect-oriented development method will not be introduced recently

thks

Would you like to reuse any dedicated software development tools so that the more complete handling of return values will become easier?