continued…

by jasonyeo

as for bug 665142, I tried my best to understand the code and see how it’s done and talked to :bienvenu. after much clarification, i have a better understanding of the problem. Here’s the conversation

====start of conversation=================

jyeo
hi. i am thinking of working on bug 665142
do u need help with that?

11:39
bienvenu
I’m happy to have someone else do that – that’s why it’s marked as a good first bug

11:40
jyeo
great. but i don’t understand the bug description

11:41
bienvenu
did you look at the code examples I linked to?

11:41
jyeo
yup

11:41
bienvenu
do you understand what an enumerator is?

11:42
jyeo
is it like the one in Java?

11:42
bienvenu
I’m sure it’s the same idea…it lets you iterate over a bunch of items…
but this may not be the right bug for you…

11:43
jyeo
oh, why not?
is it too difficult?

11:44
bienvenu
well, if you’re not quite familiar with enumerator, it might not make a lot of sense…

11:59
jyeo
let me try and guess what’s going on. just correct me if im wrong.

11:59
bienvenu
ok, sure

11:59
jyeo
the enumerator involves a lot of js to c++ calls
12:00
Friday, August 26, 2011

12:00
bienvenu
right

12:00
jyeo
every enum.getNext() will call the c++ code

12:00
bienvenu
right

12:00
jyeo
for every msg in my inbox, i will call c++ code
is that right?

12:00
bienvenu
going from js to c++ is expensive. Yes, that’s right

12:01
jyeo
okay. but what is this filter enumerator that you said in the bug comments?
it will only retrieve those that i want according to the filter?

12:02
bienvenu
a filter enumerator allows you to create an enumerator that has a built in “filter”, a set of search terms, that it applies to each result, until it finds a matching item. So it only returns the matching items

12:02
jyeo
ic…

12:02
bienvenu
the link to the test code shows how to create search terms and a filter enumerator in js

12:04
jyeo
ahh…so filter enumerator will only retrieve those that match the search terms. is that right?

12:04
bienvenu
right

======end of conversation==========================

more progress!

I do hope to squash these bugs before recess week. =)

Advertisements