jeremiahwv
Joined 10 years ago
Joined 10 years ago
[0] I haven't done this so not putting any value prop on this specific example.
tldr; read old philosophy to learn how to reason, read new physics to learn the results of reasoning.
...
> We're currently looking at testing an affiliate program whereby we'll pay out a 30% commission every single month on the lifetime revenue of anyone referred to Ghost(Pro).
...
I believe this is called colocating your money and your mouth. I'm inspired.
In addition to the string based lookup, it looks like there is an attempt at a pythonic approach:
from glom import T
spec = T['system']['planets'][-1].values()
glom(target, spec)
# ['jupiter', 69]
For me though, while I can understand what is going on, it doesn't feel pythonic.Here's what I would love to see:
from glom import nested
nested(target)['system']['planets'][-1].values()
And I would love (perhaps debatably) for that to be effectively equivalent to: nested(target).system.planets[-1].values()
Possible?--- edit: Ignore the above idea. I thought about this a bit more and the issue that your T object solves is that in my version:
nested(target)['system']
the result is ambiguous. Is this the end of the path query and should return original non-defaulting dict, or the middle of the path query and should return a defaulting dict? Unknown.The T object is a good solution for this.
sum(planet['moons'] for planet in target['system']['planets'])How bout: "Hey Duplex, call this support number and get a top level human manager on the line please."
Then we get a HN article: "Duplex is fighting Alexa!"
"Study Suggests Medical Errors Now Third Leading Cause of Death in the U.S." (https://www.hopkinsmedicine.org/news/media/releases/study_su...)
Would you be more likely to hire a man than a women for an engineering role? Take the harvard implicit gender bias test for one answer: https://implicit.harvard.edu/implicit/selectatest.html
Then they introduced Datomic Client, which is more of the "normal" db paradigm. Your app includes the client lib, which connects to the running db process "somewhere else". I don't know why they did this (easier to include?), but it meant that the "db-in-your-app-process" value prop went away.
Initially when they deployed Datamic Cloud (a sort of managed Datamic service deployed in AWS), they only supported the client model.
That is context for your question. The problem Ions solves is how to get that "db-in-your-app-process" value prop while using Datamic Cloud. It seems to me that it effectively reverses the original method. Original method was add the DB as a lib into your app, Ions method is push your app into the db (which is running in a configured-for-you cluster on AWS).
(It also allows you to not have to provision/configure servers to actually run your app code in addition to the db servers, but that seems secondary to me.)
Note, that I'm not affiliated with Cognitect, and I've never used Datamic, or Clojure in a production system. So have a salt shaker.