<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/20/16 09:06, nitish chauhan
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=RYisbzvfZp6i7oT9CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi :) ,  after reading wonderful suggestions made
        by you all , I was able to understand these key points. Please
        correct me if I am going in the wrong direction.
        <div><br>
        </div>
        <div>1.) Instead of a single Activity(Multiplication Table), we
          are expanding to new sub activities under a single generic
          Base Activity. <br>
        </div>
      </div>
    </blockquote>
    <br>
    yes, for now we can consider that the base activity would be the
    multiplication one<br>
    <blockquote
cite="mid:CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=RYisbzvfZp6i7oT9CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>2.) We will have separate DATASET for different sub
          activities like Multiplication Tables, Addition , Subtraction
          , Tenses , etc. in the Base      Activity.
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    yes<br>
    <br>
    <blockquote
cite="mid:CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=RYisbzvfZp6i7oT9CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>3.) And in each sub-Activity to check the answer of a
            question we will call a method which will check the answer
            from the Dataset using        key,value pair concept(or
            Hashing) from the Base Activity.</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    If we use the method of Emmanuel, all the datasets would be the same
    (list of {key, value}) and we won't have to have a specific check
    method on each dataset:<br>
    we will have something like: if (field["3*7"] == dataset.get("3*7"))
    ok else not good.<br>
    <br>
    It's up to the person who create the dataset to be sure it's
    correct, there won't be any validation on our side.<br>
    <br>
    <blockquote
cite="mid:CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=RYisbzvfZp6i7oT9CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>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 planning to include.(like tables , add,
            sub , tenses. , etc).<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    It's not really important for now, let's focus on just the
    mathematic ones (and create separate activities for each).<br>
    <br>
    Johnny<br>
    <br>
    <blockquote
cite="mid:CAGfTHWPz2umYeYnf56-WB9GF3dQJVd=RYisbzvfZp6i7oT9CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>regards,
            <div>Nitish Chauhan<br>
               </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Oct 20, 2016 at 11:57 AM,
          JAZEIX Johnny <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>
                <div class="h5">
                  <div class="m_402014944707356051moz-cite-prefix">On
                    10/19/16 21:19, Charles Cossé wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">On Wed, Oct 19, 2016 at 12:14 PM,
                      JAZEIX Johnny <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>></span>
                      wrote:
                      <div class="gmail_extra">
                        <div class="gmail_quote">
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex"><br>
                            <div bgcolor="#FFFFFF" text="#000000">
                              <p>The question is more on how to handle
                                the different cases with the same base
                                code. We should have a way to know if
                                the data is good without having a lot of
                                if(multiplication) check if (number 1 *
                                number 2 = expected result) else if
                                (addition) check if (number 1 + number 2
                                = expected result)...</p>
                              <span class="m_402014944707356051HOEnZb"></span></div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>Hi, just lurking on your list, but if I
                            may suggest: just evaluate the string
                            expression and test whether true or false. 
                            That works for all math.<br>
                          </div>
                          <div>-Charles<br>
                          </div>
                          <div><br>
                             </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
              </div>
              <p>Hi,</p>
              <p>feel free to comment whenever you want :).</p>
              <p>On my side I was more thinking on having a check method
                directly in the dataset and in the main activity calls
                dataset.check(data1, data2). This way we wouldn't have
                to modify the base activity.</p>
              <p>After talking with Emmanuel, he found a third solution
                which is we don't care about the question and only check
                the result which is stored in the dataset:</p>
              <p>[ { "3*7": "21" }, { "it go": "es" }, { "I go": ""} 
                ... ]</p>
              <p>This way we can do a completely abstract questionnaire
                activity. Dataset/Questions would be created via an
                interface and we can think of a way of displaying either
                a menu like for lang or generating new activity on the
                fly (which may be better as we can categorize them in
                the section and search them using the search feature).</p>
              <span class="HOEnZb"><font color="#888888">
                  <p>Johnny</p>
                  <p><br>
                  </p>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>