Exceptions should be handled in try catch blocks. If an exception is thrown but not handled by the program, then it is terminated midway. Example: I have an exception in method do2() which I don’t handle. The program terminates as soon as the exception is thrown. do1() does not get a chance to execute: However, … Read More “If exceptions are not handled” »
Month: December 2020
https://i.stack.imgur.com/qiEfi.png
brb https://webdevsimplified.com/specificity-cheat-sheet.html Learn Every CSS Selector In 20 Minutes
Automatic updates displayed in client from the server Basically SSE works by the client opening a long lived connection to a particular endpoint. Unlike websockets, it is uni-directional – meaning that only the server pushes events, the client simply listens. Once a new event is pushed, it can be displayed on the UI Emitter is … Read More “Server Sent Events” »
How to get your files back when you delete them, or do git reset – -hard without committing I made a bunch of changes to my UI. But I thought that the UI looked better before making these changes.. So I wanted to go back to the original HEAD and check it out. At this … Read More “Git reset without committing” »