ajx1001
Joined 1 year ago
Joined 1 year ago
The hypothesis (I'm paraphrasing) is the fructose severely downgrades the mitochondria (this is well established).
The part that is really interesting to me is that patients with alzheimer's have huge amounts of fructose in their brains (that's covered the in the podcast).
So, lots of fructose, mitochondria impacted, thus neurons degraded. Makes sense to me.
As far as alternative hypothesis, there aren't any good ones that I'm aware of.
This hypothesis makes much more sense to me when you think to the associated diseases (diabetes, heart disease etc...)
You can get a overview of his research on this podcast (approx 75min): https://www.youtube.com/watch?v=59Oje6n2JLU
We have lots of experience with ORMs based on dynamic languages (i.e. Objective-C and Ruby) and if not careful, you can indeed go sideways pretty quickly.
Recently, we've been using https://ash-hq.org. It tries to solve the same problems as an ORM, but using a pure functional language (Elixir). You are using structs instead of objects, so it can feel very close to using raw dictionaries/hashes. It also makes it super easy to drop down to raw sql, while maintaining that struct interface at the top.
While it does take some getting used to (especially coming from a dynamic, OO language), I'm liking this alternative a lot!
It is the middle layer between DB (Ecto) and Phoenix (with or without LiveView) -- where your actual application lives.
The difference between a Resource and a Model (or ActiveRecord) is Models typically define attributes and relationships vs a Resource defines attributes, relationships, actions (read, write, destroy, custom...), behaviours (i.e. multi-tenancy, jobs) and what I call facets (i.e. JSON api, GraphQL).
When you read the code for a Resource, you grok all of this in a nice, consistent way (we have 100* resources - all are consistent). This is because of the DSL.
When compiled, it all boils down to a Struct that you can easily inspect. That Struct enables all kinds of stuff.
Father of two.