Skip to content

Conversation

@asmsuechan
Copy link
Contributor

I added a module to find a title of a note.

@asmsuechan asmsuechan changed the title Add a module find title Add a module to find title May 5, 2017
@@ -0,0 +1,32 @@
export function find (value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

[Question] Why didn't you name this method like findNoteTitle?
I think find is a little ambiguous.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I don't like
repetition like findNoteTitle.findNoteTitle(). What do you think noteUtils.findNoteTitle()?

The reason why I didn't choose that name is because I add only 1 method this time. I thought don't need to change the name to noteUtils unless need to add a lotta methods.

Copy link
Contributor

@sota1235 sota1235 May 6, 2017

Choose a reason for hiding this comment

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

Is the way like below is better for you?

export function findNoteTitle() {
  //
}

export default {
  findNoteTitle,
}
import { findNoteTitle } from 'browser/lib/findNoteTitle'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes! It's the better way 😄

Copy link
Contributor

@sota1235 sota1235 left a comment

Choose a reason for hiding this comment

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

Please confirm the comment.

@asmsuechan asmsuechan changed the title Add a module to find title Add a module to find a title May 6, 2017
@asmsuechan asmsuechan changed the title Add a module to find a title Add a module to find the title May 6, 2017
@asmsuechan
Copy link
Contributor Author

@sota1235 I fixed the name 🙏

@asmsuechan asmsuechan merged commit 8fe05a4 into BoostIO:master Jun 7, 2017
@asmsuechan asmsuechan deleted the add-a-module-findTitle branch June 7, 2017 01:30
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