Function: Prefer Exceptions to returning error code
Example of "Functions" chapter #3, section "Prefer Exceptions to returning error code" from Clean Code book by Robert C. Martin.
ColdChat Client (chat app)chat app in node.js using socket.io I've made many chat apps previously but I got inspiration for a simplistic-looking, console-based one from the previously trending "ctrl chat" (by @blockowo). I felt bad about its many serious security flaws and literally zero validation. Seeing it get destroyed by exploiters made me want to start working on a secure chat app with validation, backend word filters, powerful anti-spam, and a proper account system. So far I've only made the basic security infrastructure and a simple layout, plus a powerful anti spam. This of course isn't finished and there are PLENTY of updates planned and coming soon.
No comments yet