Skip to content

Activity stream chrome extension v0.0.1#1

Open
dan-l wants to merge 29 commits intoreleasefrom
master
Open

Activity stream chrome extension v0.0.1#1
dan-l wants to merge 29 commits intoreleasefrom
master

Conversation

@dan-l
Copy link
Copy Markdown
Owner

@dan-l dan-l commented Jun 29, 2016

No description provided.

@grigoryk
Copy link
Copy Markdown

grigoryk commented Jul 4, 2016

Generally, if you have the bandwidth (and I'd argue that even if you're stretched for time this is still worth doing), once you get your code into a "ready for review state", do the same for your commits. It makes a review much easier if you build a coherent story out of your commits. Added benefit is that it forces you to reason about your work in a nicely structured way.

Hypothetical series of commits:

  • Pre 1: clean up some old, unused code
  • Pre 2: refactor module X to make it re-usable
  • Part 1: use module X to provide a data layer for feature Y
  • Part 2: business logic and wire up UI for feature Y
  • Part 3: implement sub-feature Z on top of Y

blockedUrls.map((blocked) => blocked.url).indexOf(item.url) === -1);
}

static _mergeLinks(r1, r2) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually merging bookmark GUIDs from r2 (assuming r2 is a list of bookmarks?) into r1. Consider renaming this method and variable names to make this explicit. Also, method comments.

@grigoryk
Copy link
Copy Markdown

grigoryk commented Jul 4, 2016

OK, let's call it "first pass". It's looking good! I didn't comment much on formatting, naming, etc - let's address some structural concerns first.

@dan-l dan-l force-pushed the master branch 5 times, most recently from 7a9a95f to fea63fc Compare July 11, 2016 21:20
});
}

static _mergeHistoryBookmark(hist, bookmarks) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, so close!

… compose them as needed, Use lodash utility method for stability, Add comments for clarifications
const searchResultRegex = new RegExp(SEARCH_RESULT_REGEX);
const localhostRegex = new RegExp(LOCALHOST_REGEX);
const browserResourceRegex = new RegExp(BROWSER_RESOURCE_REGEX);
const filterRegex = new RegExp(searchResultRegex.source + "|" + localhostRegex.source + "|" + browserResourceRegex.source);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants