4 ms·
The simplest trick that every programmer learns early: when parenthesising, write both parentheses first: (), {}, [], etc. Then fill them in. Even with modern
by YeGoblynQueenne 4y ago
The simplest trick that every programmer learns early: when parenthesising, write both parentheses first: (), {}, [], etc. Then fill them in.
Even with modern IDEs this one neat trick saves a ton of annoyned confusion and swearing.
- Cerium 4y agoI don't like to do this, I like having an editor setup to highlight the open parent that matches the one you are closing. Then I can confirm that my structure matches my intention.