11 karma · joined September 15, 2021
One of the arguments, as far as I understand for the BDD verbosity is that fact that the requirements are easy to communicate with customers and so therefore would be more precise in going from defining requirements to actually building the right thing. How true do you find this?
Usually moving from primitives into complex types does not account for serialization and deserialization between db and the client. This can be very annoying to work with in something like C#.
Usually it ends up resulting in alot more types and a lot more mapping between types.
However this has its own benefits, but is very boilerplate-y and is sluggish to work with when your domain changes.
Luckily, for C#, https://github.com/SteveDunn/Vogen now exists thanks to source code generators which soothes some of the issues.
Did you discover if pot had any effect on your "body battery" or not? I'm curious if it increases or decreases the quality.
I was under the illusion, for most of my life, that alcohol helped with sleep, until I did some research and found out it practically does the opposite. Or honestly, listened to the book "Why do we sleep" by Matthew Walker https://www.goodreads.com/book/show/34466963-why-we-sleep. It is absolutely fascinating and worth a read/listen for anyone wondering what we know about sleep so far.
An interesting point from the book: For people that drink regularly for long stretches, they can end up with dreams literally spilling into reality because their brains never reaches deep REM due to the alcohol. It's fascinating. I've never reached that level personally. However I've heard anecdotes of people getting insanely vivid dreams after stretches of drinking.
My father did the same thing as you are doing. He's recently stopped. He's sharp as a knife again after a very short amount of time after years of being, which I can best describe as, out-of-sync with everything.
When I learned functional programming, in my head, classes suddenly became slightly worse versions of partially applied functions.
When I learned about state machines classes also now seems like a failed attempt at achieving the same thing.
Specifically I hadn't thought through an Order model and the OrderLines ended up being dependent directly on the product meaning through an FK. The orders wouldn't "settle" once they had been completed, since the product could be updated and change the values of the orderline and order. Dumb dumb. It was one of the cases where denormalizing data, very much, makes sense
Simple validation, like describing that a price cannot be below 0, I keep in the database. Email validation I keep on the app level.
It allows for easier deployments, easier debugging and it is easier to migrate to a different database should the need arise.
However both works.