I'm working on an interesting refactor in Ruby/Rails involving a "compiled configuration" object, which an object that gets recomputed whenever anything changes within a model's configuration tree (i.e. a number of related models / tables used for configuring this singular object). The goal is to use this object for 1. validating that no two configurations/plugins added to the object are in conflict (based on a well-defined set of hooks/callbacks) and 2. caching this object to avoid all the DB lookups involved in fully recomputing this object on every request.
Is there a name for this pattern? Has anyone implemented something like this at work? I'd imagine something like this pattern exists for, say, AWS IAM permissions+policies+roles calculation/caching.
17.1.2023 05:25I'm working on an interesting refactor in Ruby/Rails involving a "compiled configuration" object, which an object that gets...the old indiana jones's... kinda suck?
11.1.2023 13:27the old indiana jones's... kinda suck?when fonts collide
22.12.2022 01:33when fonts collideProgress: integrated YappLabs' ember-nav-stack with FPR's ember-navigator for stack-based navigation (with slow/cancelable drag transitions -- something that's often difficult/impossible with classic / desktop-centric routing solutions)
21.12.2022 07:57Progress: integrated YappLabs' ember-nav-stack with FPR's ember-navigator for stack-based navigation (with slow/cancelable drag...Working on an Ember port of
KonstaUI
(Tailwind-based mobile component library). If folk are interested I'll put in the effort to addonize and publish.
Ember folk: I assume I should be using native promises more and more, but as someone who's used to using the afterRender run loop queue for running logic after components have finished rendering to DOM (but likely before browser has started doing layout / paint), is there a perf implication to moving that logic to the browser's microtask queue? Does using native promises mean I'll start getting render flashes?
19.12.2022 03:39Ember folk: I assume I should be using native promises more and more, but as someone who's used to using the afterRender run loop queue...Anyone in the web world have opinions on SwiftUI components? I maintain a mostly-mobile app and I find some of these layout components appealing, e.g. using LayeredStack (e.g. ZStack) when you want to have overlapping elements (e.g. text over a bg image), so a Spacer component to take the remaining space of a (flex?) parent container.
All of these have CSS solutions but perhaps building atop these components is easier to keep in the brain than dipping into your 2000 word Tailwind vocabulary?
19.12.2022 00:51Anyone in the web world have opinions on SwiftUI components? I maintain a mostly-mobile app and I find some of these layout components...I've been using Anki flashcards for about half a year now as a spaced repetition memorization app. I have about 800 notes covering anything from tech, politics, and personal/social stuff I want to remember and keep reasonably fresh in my brain.
It works great for what it is, but having successfully maintained a habit of doing a daily Anki review for 6 months, I see the shortcomings of this approach: I can correctly "answer" the flashcards, but my understanding of underlying content and network of ideas is quite shallow. I'd hoped that by keeping the peripheral flashcard-able ideas fresh in my brain that that would strengthen the underlying conceptual bonds, but unfortunately that isn't the case. (And frankly, the fact that I could keep this habit so easily makes me feel like maybe it was a lazy half-ass approach to feeling like I was deeply learning.)
So it's on to the next thing. Perhaps variant of the Feynman method?
18.12.2022 23:07I've been using Anki flashcards for about half a year now as a spaced repetition memorization app. I have about 800 notes covering...gonna post like it's 2012 and I'm bout to use Photoshop to House of Cards my way onto the Ember core team
18.12.2022 22:37gonna post like it's 2012 and I'm bout to use Photoshop to House of Cards my way onto the Ember core teammy neck fucking HURTS
18.12.2022 22:37my neck fucking HURTS