<p dir="ltr">Hey guys!!</p>
<p dir="ltr">On 20 Oct 2016 03:19, <<a href="mailto:gcompris-devel-request@kde.org">gcompris-devel-request@kde.org</a>> wrote:<br>
><br>
> Send GCompris-devel mailing list submissions to<br>
>         <a href="mailto:gcompris-devel@kde.org">gcompris-devel@kde.org</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>         <a href="https://mail.kde.org/mailman/listinfo/gcompris-devel">https://mail.kde.org/mailman/listinfo/gcompris-devel</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>         <a href="mailto:gcompris-devel-request@kde.org">gcompris-devel-request@kde.org</a><br>
><br>
> You can reach the person managing the list at<br>
>         <a href="mailto:gcompris-devel-owner@kde.org">gcompris-devel-owner@kde.org</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of GCompris-devel digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>    1. Re: SOK ideas (JAZEIX Johnny)<br>
>    2. Re: SOK ideas (nitish chauhan)<br>
>    3. Re: SOK ideas (JAZEIX Johnny)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Thu, 20 Oct 2016 08:27:23 +0200<br>
> From: JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>><br>
> To: Charles Cossé <<a href="mailto:ccosse@gmail.com">ccosse@gmail.com</a>><br>
> Cc: <a href="mailto:gcompris-devel@kde.org">gcompris-devel@kde.org</a>, nitish chauhan <<a href="mailto:nitish.nc18@gmail.com">nitish.nc18@gmail.com</a>><br>
> Subject: Re: SOK ideas<br>
> Message-ID: <<a href="mailto:60e2aedc-e091-4a20-fe10-4a04347a81e6@gmail.com">60e2aedc-e091-4a20-fe10-4a04347a81e6@gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
><br>
> On 10/19/16 21:19, Charles Cossé wrote:<br>
> > On Wed, Oct 19, 2016 at 12:14 PM, JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a><br>
> > <mailto:<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>>> wrote:<br>
> ><br>
> ><br>
> >     The question is more on how to handle the different cases with the<br>
> >     same base code. We should have a way to know if the data is good<br>
> >     without having a lot of if(multiplication) check if (number 1 *<br>
> >     number 2 = expected result) else if (addition) check if (number 1<br>
> >     + number 2 = expected result)...<br>
> ><br>
> ><br>
> > Hi, just lurking on your list, but if I may suggest: just evaluate the<br>
> > string expression and test whether true or false.  That works for all<br>
> > math.<br>
> > -Charles<br>
> ><br>
> Hi,<br>
><br>
> feel free to comment whenever you want :).<br>
><br>
> On my side I was more thinking on having a check method directly in the<br>
> dataset and in the main activity calls dataset.check(data1, data2). This<br>
> way we wouldn't have to modify the base activity.<br>
><br>
> After talking with Emmanuel, he found a third solution which is we don't<br>
> care about the question and only check the result which is stored in the<br>
> dataset:<br>
><br>
> [ { "3*7": "21" }, { "it go": "es" }, { "I go": ""}  ... ]<br>
><br>
> This way we can do a completely abstract questionnaire activity.<br>
> Dataset/Questions would be created via an interface and we can think of</p>
<p dir="ltr">I think we should make a common console to perform <br>
CRUD operatipns on dataset for all arithemetic activities( we could extend it for almost all the activities with exceptions like balancebox which already has the best platform for creating dataset). <br><br><br></p>
<p dir="ltr">> a way of displaying either a menu like for lang or generating new<br>
> activity on the fly (which may be better as we can categorize them in<br>
> the section and search them using the search feature).<br>
><br>
> Johnny<br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/8ab7ceea/attachment-0001.html">http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/8ab7ceea/attachment-0001.html</a>><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Thu, 20 Oct 2016 12:36:04 +0530<br>
> From: nitish chauhan <<a href="mailto:nitish.nc18@gmail.com">nitish.nc18@gmail.com</a>><br>
> To: JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>><br>
> Cc: <a href="mailto:gcompris-devel@kde.org">gcompris-devel@kde.org</a><br>
> Subject: Re: SOK ideas<br>
> Message-ID:<br>
>         <CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=<a href="mailto:RYisbzvfZp6i7oT9CRA@mail.gmail.com">RYisbzvfZp6i7oT9CRA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi :) ,  after reading wonderful suggestions made by you all , I was able<br>
> to understand these key points. Please correct me if I am going in the<br>
> wrong direction.<br>
><br>
> 1.) Instead of a single Activity(Multiplication Table), we are expanding to<br>
> new sub activities under a single generic Base Activity.<br>
><br>
> 2.) We will have separate DATASET for different sub activities like<br>
> Multiplication Tables, Addition , Subtraction , Tenses , etc. in the Base<br>
>    Activity.<br>
><br>
> 3.) And in each sub-Activity to check the answer of a question we will call<br>
> a method which will check the answer from the Dataset using<br>
>  key,value pair concept(or Hashing) from the Base Activity.<br>
><br>
> 4.) In this way expansion can be made easily.<br>
><br>
> 5.) Also, I would like to know how many different sub activities we are<br>
> planning to include.(like tables , add, sub , tenses. , etc).<br>
><br>
> regards,<br>
> Nitish Chauhan<br>
><br>
><br>
> On Thu, Oct 20, 2016 at 11:57 AM, JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>> wrote:<br>
><br>
> > On 10/19/16 21:19, Charles Cossé wrote:<br>
> ><br>
> > On Wed, Oct 19, 2016 at 12:14 PM, JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>> wrote:<br>
> ><br>
> >><br>
> >> The question is more on how to handle the different cases with the same<br>
> >> base code. We should have a way to know if the data is good without having<br>
> >> a lot of if(multiplication) check if (number 1 * number 2 = expected<br>
> >> result) else if (addition) check if (number 1 + number 2 = expected<br>
> >> result)...<br>
> >><br>
> ><br>
> > Hi, just lurking on your list, but if I may suggest: just evaluate the<br>
> > string expression and test whether true or false.  That works for all math.<br>
> > -Charles<br>
> ><br>
> ><br>
> ><br>
> > Hi,<br>
> ><br>
> > feel free to comment whenever you want :).<br>
> ><br>
> > On my side I was more thinking on having a check method directly in the<br>
> > dataset and in the main activity calls dataset.check(data1, data2). This<br>
> > way we wouldn't have to modify the base activity.<br>
> ><br>
> > After talking with Emmanuel, he found a third solution which is we don't<br>
> > care about the question and only check the result which is stored in the<br>
> > dataset:<br>
> ><br>
> > [ { "3*7": "21" }, { "it go": "es" }, { "I go": ""}  ... ]<br>
> ><br>
> > This way we can do a completely abstract questionnaire activity.<br>
> > Dataset/Questions would be created via an interface and we can think of a<br>
> > way of displaying either a menu like for lang or generating new activity on<br>
> > the fly (which may be better as we can categorize them in the section and<br>
> > search them using the search feature).<br>
> ><br>
> > Johnny<br>
> ><br>
> ><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/6409a9f3/attachment-0001.html">http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/6409a9f3/attachment-0001.html</a>><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Thu, 20 Oct 2016 09:18:55 +0200<br>
> From: JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>><br>
> To: nitish chauhan <<a href="mailto:nitish.nc18@gmail.com">nitish.nc18@gmail.com</a>><br>
> Cc: <a href="mailto:gcompris-devel@kde.org">gcompris-devel@kde.org</a><br>
> Subject: Re: SOK ideas<br>
> Message-ID: <<a href="mailto:6b6d9eef-16e8-97b8-68ef-2554e5e1822d@gmail.com">6b6d9eef-16e8-97b8-68ef-2554e5e1822d@gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
><br>
> On 10/20/16 09:06, nitish chauhan wrote:<br>
> > Hi :) ,  after reading wonderful suggestions made by you all , I was<br>
> > able to understand these key points. Please correct me if I am going<br>
> > in the wrong direction.<br>
> ><br>
> > 1.) Instead of a single Activity(Multiplication Table), we are<br>
> > expanding to new sub activities under a single generic Base Activity.<br>
><br>
> yes, for now we can consider that the base activity would be the<br>
> multiplication one<br>
> > 2.) We will have separate DATASET for different sub activities like<br>
> > Multiplication Tables, Addition , Subtraction , Tenses , etc. in the<br>
> > Base      Activity.<br>
> ><br>
><br>
> yes<br>
><br>
> > 3.) And in each sub-Activity to check the answer of a question we will<br>
> > call a method which will check the answer from the Dataset using<br>
> >  key,value pair concept(or Hashing) from the Base Activity.<br>
> ><br>
><br>
> If we use the method of Emmanuel, all the datasets would be the same<br>
> (list of {key, value}) and we won't have to have a specific check method<br>
> on each dataset:<br>
> we will have something like: if (field["3*7"] == dataset.get("3*7")) ok<br>
> else not good.<br>
><br>
> It's up to the person who create the dataset to be sure it's correct,<br>
> there won't be any validation on our side.<br>
><br>
> > 4.) In this way expansion can be made easily.<br>
> ><br>
> > 5.) Also, I would like to know how many different sub activities we<br>
> > are planning to include.(like tables , add, sub , tenses. , etc).<br>
> ><br>
> It's not really important for now, let's focus on just the mathematic<br>
> ones (and create separate activities for each).<br>
><br>
> Johnny<br>
><br>
> > regards,<br>
> > Nitish Chauhan<br>
> ><br>
> > On Thu, Oct 20, 2016 at 11:57 AM, JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a><br>
> > <mailto:<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>>> wrote:<br>
> ><br>
> >     On 10/19/16 21:19, Charles Cossé wrote:<br>
> >>     On Wed, Oct 19, 2016 at 12:14 PM, JAZEIX Johnny <<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a><br>
> >>     <mailto:<a href="mailto:jazeix@gmail.com">jazeix@gmail.com</a>>> wrote:<br>
> >><br>
> >><br>
> >>         The question is more on how to handle the different cases<br>
> >>         with the same base code. We should have a way to know if the<br>
> >>         data is good without having a lot of if(multiplication) check<br>
> >>         if (number 1 * number 2 = expected result) else if (addition)<br>
> >>         check if (number 1 + number 2 = expected result)...<br>
> >><br>
> >><br>
> >>     Hi, just lurking on your list, but if I may suggest: just<br>
> >>     evaluate the string expression and test whether true or false.<br>
> >>     That works for all math.<br>
> >>     -Charles<br>
> >><br>
> >     Hi,<br>
> ><br>
> >     feel free to comment whenever you want :).<br>
> ><br>
> >     On my side I was more thinking on having a check method directly<br>
> >     in the dataset and in the main activity calls dataset.check(data1,<br>
> >     data2). This way we wouldn't have to modify the base activity.<br>
> ><br>
> >     After talking with Emmanuel, he found a third solution which is we<br>
> >     don't care about the question and only check the result which is<br>
> >     stored in the dataset:<br>
> ><br>
> >     [ { "3*7": "21" }, { "it go": "es" }, { "I go": ""} ... ]<br>
> ><br>
> >     This way we can do a completely abstract questionnaire activity.<br>
> >     Dataset/Questions would be created via an interface and we can<br>
> >     think of a way of displaying either a menu like for lang or<br>
> >     generating new activity on the fly (which may be better as we can<br>
> >     categorize them in the section and search them using the search<br>
> >     feature).<br>
> ><br>
> >     Johnny<br>
> ><br>
> ><br>
> ><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/943739f9/attachment.html">http://mail.kde.org/pipermail/gcompris-devel/attachments/20161020/943739f9/attachment.html</a>><br>
><br>
> ------------------------------<br>
><br>
> Subject: Digest Footer<br>
><br>
> _______________________________________________<br>
> GCompris-devel mailing list<br>
> <a href="mailto:GCompris-devel@kde.org">GCompris-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/gcompris-devel">https://mail.kde.org/mailman/listinfo/gcompris-devel</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> End of GCompris-devel Digest, Vol 24, Issue 27<br>
> **********************************************</p>
<p dir="ltr">Thanks</p>