Professional Development – 2024 – Week 37

Image Credit: https://www.flickr.com/photos/54585499@N04/

.NET

Stop Dealing with EF Core Exceptions Wrong! (via Nick Chapsas)

If constraints aren’t met (e.g., max length, uniqueness), EF Core throws a DBUpdateException, which tells you very little about the specific problem. The current solution is to follow inner exception properties, which can lead to handling technology-specific exceptions (e.g., SqliteException). There’s also a NuGet package called EntityFramework.Exceptions that maps exception by DB provider to readable exceptions (e.g., UniqueConstraintException).

Personal Development

A Workaholic’s Guide to Reclaiming Your Life (via HBR)

  • Redefining “urgent.” We get an adrenaline rush by making everything a mini-crisis. Keep notes to help you reflect on expected urgency vs actual urgency.
  • Reinventing the to-do list. Accomplishing a goal can give us a burst of dopamine to work on another goal. Use the Eisenhower matrix to add some context about the work. (My personal issue is that the list is broad and deep and requires frequent re-triaging.)
  • Learning to say “no” and delegate. It feels good to be asked to do a task well. Set boundaries on when, who, and how you help others.
  • Fixing the workaholic clock. Workaholics tend to underestimate how long it will take to do something, so they overcommit to doing too many things in too short a time. Check estimates vs actuals.
  • Controlling rumination. The core of workaholism is a passion or drive. Rumination is problematic because it’s internal. Workaholics also use a fear of letting other people down as a driver.
  • Embracing rest and recovery. We must rest during waking hours. Psychological detachment (doing something where you can’t be working or thinking about working), physical activity, relaxation, and mastery experiences (learning and growing in non-work activities such as learning an instrument or a language).