Killing a process gracefully

There have been a lot of talk and discussions about whether to use kill -9 (pid) or not. I deducted that the ‘safest’ way to kill a process is to use SIGTERM (15) instead of SIGKILL (9). SIGKILL technically terminates a process immediately, whereas SIGTERM requests for process termination and handles it smoothly. In other words, kill -9 is more like pulling the plug while kill -15 is shutting down in a proper way.  Continue reading “Killing a process gracefully”

Documenting APIs with apiDoc

When implementing a RESTful API, it is crucial to document it in details during development. Trying to use an un-documented API is like operating a complex device without a manual. Nowadays, there are several online platforms and softwares to assist developers with API documentation. Those work fine, indeed, but just did not suit my needs.  Continue reading “Documenting APIs with apiDoc”