Skip to content

Instantly share code, notes, and snippets.

<?xml version='1.0' encoding='UTF-8'?>
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' xmlns:hm='http://host-meta.net/xrd/1.0'>
<hm:Host>otherpod.com</hm:Host>
<Link rel='lrdd' template='https://otherpod.com/webfinger?q={uri}'>
<Title>Resource Descriptor</Title>
</Link>
</XRD>
<div id='content'>
<h1>Sarah Mei</h1>
<div id='content_inner'>
<div class='entity_profile vcard author' id='i'>
<h2>User profile</h2>
<dl class='entity_nickname'>
<dt>Nickname</dt>
<dd>
<a class='nickname url uid' href='https://otherpod.com/' rel='me'>Sarah Mei</a>
</dd>
it "contains public posts from people you're following" do
# Alice follows Eve, but Eve does not follow Alice
alice.contacts.create!(:person => eve.person, :aspects => [@alices_aspect], :receiving => true, :sharing => false)
# Eve posts a public status message
eves_public_post = eve.post(:status_message, :text => "hello", :to => 'all', :public => true)
# Alice should see it
alice.visible_shareable_ids(Post).should include(eves_public_post.id)
end
@sarahmei
sarahmei / gist:3650927
Created September 6, 2012 03:43
The Insufficiency of Good Design
The Insufficiency of Good Design
We all want to write good code, and there is no shortage of advice on
how to do that. SOLID. SOA. SRP. LoD. These are undoubtedly important,
but none of them address the single factor that has the biggest impact
on the quality of a codebase.
That factor is Other People. The people you're working with affect the
codebase more than you do, in aggregate, if there's more than a few of
them. And it's not just the individuals. How your team is organized,