Weekly Recap #1 #9
Replies: 5 comments 7 replies
-
Oh! I forgot to mention in #4 we set up a section for attributions, if any of y'all would like one open a PR and add your name with |
Beta Was this translation helpful? Give feedback.
-
Yes! I think we are, or at least if we "watch" the Repo. I did receive an e-mail for this one. |
Beta Was this translation helpful? Give feedback.
-
💯 this. It'll also be easier to automate once it's more functional.
A couple of thoughts that this made me think about:
Totally fine 👍🏻 I've been mostly reading over the discussions and the initial commits. As an aside, I just noticed that there's a nice Tree motif running around "Oaken" as we're mostly using "seeds". Not sure if intentional 😅 |
Beta Was this translation helpful? Give feedback.
-
Totally fine as well. It's interesting to see your thought process from your sketches #3 and how you seem to think carefully about the API first (rather than how it is going to be implemented under the hood). |
Beta Was this translation helpful? Give feedback.
-
Just finished going through all the changes, was caught up and couldn't go through.
Been good, following midweek might be easy with smaller PRs although that's how it's going on now so it's fine 👍🏽 I liked the idea of not being 1:1. If 1:1 is strictly required they can have a file so, but combined is good. I think this can help in making this gem standalone for creating seed data for demo etc like a seed file which has data to create a subscription of 1 year and 3 users, where 1 has cancelled after 2 months.
Not sure if it sounds dumb but can a
memory.register :posts, do
register :comments #using only register here because we are already inside `memory`
end
memory.register :comments, { namespace: :post } Something like this? |
Beta Was this translation helpful? Give feedback.
-
Here's the first weekly recap!
We said Welcome over here Welcome everybody to the first Open Source Retreat! #1
I shared a bit about how I approach gems, with a sketch of some implementation ideas Using sketches to think out gems #3
By the way, are y'all receiving notifications about new discussions, because I didn't see much activity on Using sketches to think out gems #3? I've been meaning to write up a guide on some GitHub tips to follow along with the project better, so if GitHub doesn't notify by default I should write how to fix that up.
Code
In #2, I added the first bit of code with some tests. Today, I just fleshed out a whole bunch more structure in #7 and then I added the initial file based loading in #8.
So now we've got this code running:
Contributions
@alexandreruban's kicked us off in #5 and @salochara asked a question in #2.
Eventually I'd like the
memory.register :users, User
lines to go away.Partly we need to derive
User
from:users
so we don't need that detail (I'm not sure about what to do for namespaces yet, e.g.Post::Comment
). If anybody wants to try looking into that, go for it. Or maybe we should flip this so it'smemory.register User
and then we auto-derive the key? (The latter may also provide a niceregister User, some: :default, attributes: "here"
.)The other part is having a default provider, so we don't need
memory
here (and that users could userecords
by default). Probably, involvesdef register(...) = default_provider.register(...)
.Don't worry about duplicate PRs if you try any of these. We'll figure out how to assign credit or collaborate as needed.
Up next
One of the things I always struggle with is how automatic to make things, and I'm already noticing that pressure. So I'm going to try to think through how we can let things be a little more manual and then we always level-up later once the patterns have been proven out more.
Unlike Fixtures, where a file always maps to a table like
test/fixtures/users.yml
beingUser
, our files won't map 1-1 to models. We're more likedb/seeds.rb
in that sense (which is partly why I've started out withtest/seeds
in our test directory here).Anyway, I'm hoping that we can have something usable by next week. It might be nice just to map something like:
into
I'm hopeful, we'll see! Some of the these early decisions can be really important because they have such a cascading effect down the line.
How's the volume so far? Has it been easy to follow along with? Feel free to ask any other questions below here.
cc @alexandreruban @ashwin47 @codergeek121 @diogochaves @felipedmesquita @jean-francois-labbe @lape @larkro @manuelfcreis @manuraj17 @marcelolx @mikepmunroe @mingabire @ricardotk002 @sahglie @salochara @swanson @thomasklemm @willcosgrove
Beta Was this translation helpful? Give feedback.
All reactions