Not recently. But few rules I collected/made up through years, that are quite usefull to me:
- Just be nice to people. It is free.
- Most issues can be talk through. Especially with your SO talk about every bad feeling you have.
- Use pen and paper when solving hard (personal) issues.
- Really try to be a good person.
- Do not drink, smoke. It does you no good.
- Do not play games in relationships. Always speak your mind, but always sugarcoat it. Especially sugar coat it to the people you love - you do not want them to feel bad or lose passion after critique.
- Be passionate and notice and be interested in passions of others.
- People are very deep get to know them.
- Find a deeper meaning. Can be religious or philosophic, also here you can help yourself with a pen and paper.
- You can decide what personality/character you have, but you have to work to get there. (Eg. You do not have to be grumpy, you can be nice,…)
- Make yourself be good with kids. They will teach you a lot.
- Be optimistic (but not naive). It is actually more helpful to leave life that way. Pessimists/realists are more correct. But correct is not useful. If you say “I will fail this exam anyway” and do not study you are 100% correct, but if believe you will pass it and study - you have at least some chances to pass it.
- When people ask you “how are you?” Say “Excellent!” instead of “Fine.” And then make up a reason to why (eg “It is a very lovely morning!”). First you did not know how you felt anyway and will make yourself actually feel excellent, you will lighten everyone’s mood and if you are creative your response can be a great conversation starter.
One should not use boolean just because variable has only two states.
I believe when you use boolean when enum should be used is called “boolean blindness”.
Eg: isFemale instead of enum Sex {MALE;FEMALE} It also gives you an option to simply extend code if requirements change and there are more than two options.