octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI/UX implementation for suggestions


From: Sudeepam Pandey
Subject: Re: UI/UX implementation for suggestions
Date: Fri, 27 Apr 2018 23:24:42 +0530



On Fri, Apr 27, 2018 at 10:14 PM, Rik <address@hidden> wrote:
On 04/27/2018 07:33 AM, address@hidden.org wrote:
Subject:
Re: Proceeding with the GSoC Project
From:
Nicholas Jankowski <address@hidden>
Date:
04/27/2018 06:20 AM
To:
Sudeepam Pandey <address@hidden>
CC:
Nicholas Jankowski <address@hidden>, Doug Stewart <address@hidden>, octave-maintainers <address@hidden>
List-Post:
<mailto:address@hidden.org>
Precedence:
list
MIME-Version:
1.0
References:
<CABMW-qBLrork3NAaE+1hh007+gJRaddress@hiddenail.com> <CABMW-qBqrBaEW-mVk7kfMf2okRQoaddress@hiddenail.com> <CAAohRsbn+eACAdgVGBRtSnctF1_Raddress@hiddenail.com> <CABMW-qAfz35gVFxhoGkETBXjo5bnaddress@hiddenail.com> <CAAohRsa3+xajcMYBAH1vvb6F-dJDaddress@hiddenail.com> <CABNpfR9FQft88-31OUuRz5SK4gBXaddress@hiddenail.com> <CABMW-qAMiVNGSu4YFVDVt2-sscNJaddress@hiddenail.com> <CAAohRsZvGAvrJzK8pexJDbDWW0qLaddress@hiddenail.com> <CABMW-qBj=7WS+NuLpc67eajyXh0waddress@hiddenail.com> <CAAohRsbP=RE+7sj=dH7oVJ7gTO0Vaddress@hiddenail.com> <8E9DCF81-99F0-41E1-B174-12671address@hidden> <CABMW-qChuuxrwakFre9S_mUFcU94address@hiddenail.com> <CACBC94C-825D-49A2-A4DB-1C602address@hidden> <CABMW-qCcbPTQA9WbsNLgf2omq8Noaddress@hiddenail.com> <CABNpfR-x-KaTua3z1c_QwdCEYCEfaddress@hiddenail.com> <CABMW-qA6JY6u6mRkFfUAPOd8A6BFaddress@hiddenail.com>
In-Reply-To:
<CABMW-qA6JY6u6mRkFfUAPOd8A6BFaddress@hiddenail.com>
Message-ID:
<CABNpfR-RF64vzHu6oS1nxj+32k8Oaddress@hiddenail.com>
Content-Type:
multipart/alternative; boundary="001a114d73fa99cdf0056ad4603b"
Message:
1



On Fri, Apr 27, 2018, 08:43 Sudeepam Pandey <address@hidden> wrote:


On Fri, Apr 27, 2018 at 5:05 PM, Nicholas Jankowski <address@hidden> wrote:



It seems you have several separable programming tasks. These need to be blocked out and addressed independently. That includes and analysis of options and alternatives after a review of what's been done before by others.

 1 - implement a suggestion feature within octave, independent of algorithm, and a framework for connecting to it. I would consider this a near term objective, lest it become a last minute kludge. It would be testable with even the most trivial of suggestion algorithms 

2 - implement a suggestion algorithm for 'online' suggestions, that needs to be delay free to the user. It may make sense to have both high confidence and lower confidence a approaches to this, bit I'm not yet convinced you've researched to options including what's already been done.

3 - implement any offline suggestion algorithm components that will aid 2. This may or may not be separable from 2. If this requires maintainer action, that will need a reasonable framework.

4. Document. Especially if this will require later manual actions on each new octave release. updates

I am really sorry but I don't understand some of these things. Please clear these up for me.

1) What exactly do you mean by a suggestion feature "independent of an algorithm" and "testable with even the most trivial of suggestion algorithms"?

2) What do you mean by "online and offline suggestions"?


1 - how the feature presents itself to the user and hooks into octave is separate from what happens behind the scenes to generate the words to suggest.  

If we implemented a  pop-up dialog box where the user could select the intended command, that could be tested without having any neural network or nearest neighbor searching going on in the background. It could be tested with a simple 10 word look up table just to show that the functionality is correct. Later the actual suggestion feature should be some separate, independent function that is separately testable. But having it be independent will involve defining the interface to that piece such that any algorithm should be able to provide word suggestions to it. If a better algorithm comes along later, someone could implement it without having to change the code for actually hooking into octave.

Sudeepam,

For better or worse, you have a project which is generating a lot of interest.  First, I agree with the others that you should separate the implementation of a suggestion algorithm, from the interface to the user.  Logically, they are different and it allows a "divide and conquer" approach to engineering.  It also helps future proof the system.  If the actual suggestion algorithm is implemented through a stable API then as new techniques come along we can improve the quality of the suggestions without ever disturbing the user.

Even I agree with that. So this part is sorted I suppose. We'll proceed this way.

Second, I think you need to spend some time up front thinking about the user interface (UI) and user experience (UX).  Unfortunately, this is an area where there will be a lot of opinions.  Nevertheless, you eventually need to have user's like how the feature is presented, or they will disable it and it will eventually atrophy and be removed from Octave.

How about I make something just like Nick suggested first? We can implement something like a simple pop-up for now and make it visible on the default branch (or maybe, only in my public clone, whatever seems better). The users can then try it for themselves and suggest UI improvements. The primary objective for now can be to just implement the 'how the feature presents itself to the user part'.
I believe that the starting point would probably be the error function? More specifically, the error message "error: <misspelling> undefined near..." Wouldn't the occurrence of this error message suggest that the user has misspelled?

Here are some questions to help motivate discussion.

1) Should keywords be included?  The script I sent earlier was only for functions, but I personally would like a typo like "fndfunction" corrected to "endfunction"
 
Probably very short keywords like for and if should be excluded. Others can be included but again, it depends on whether we are able to easily list all of them up.

2) Should user variables be included?  If I define a variable "myvar" and then type "myver", what should happen?

Probably not, because that would probably require indexing the users script, either at the startup or at periodic intervals of time. That may slow some machines down.

3) Should internal functions ever be offered as suggestions?  Internal functions start with the prefix "__".  They are not meant to be called directly, so is there any reason to make them a suggestion?  If I type "betaind", I should be reminded that I probably want "betainc", but I don't think I should be offered the choice "__betainc__"

Kindly excuse me for it but its the first time I have heard about 'internal functions'. Based on how you have described them and how I have understood it, I'd say that they probably should not be included. We defined the command line suggestion feature to be a feature that suggest corrections to 'typographic' errors. If the function will not be called directly, it probably will never be typed into the command line? Misspelling of such a function probably doesn't require a correction suggestion.

4) What about deprecated functions?  Should they ever be offered as a suggestion?  You could just remove them from the suggestion list, or maybe you want to go a step further and recommend their replacement?

I'm sorry I don't know what deprecated functions in Octave are. Can you please tell me?
 
5) How are you going to offer alternatives and allow them to select an alternative?  Remember that Octave has both a CLI and a GUI so you may need two solutions.

Something to think about. GUI would probably be easy but CLI may be tricky. I'll figure it out when I start going through the code-base in detail. Can you tell me which directory/files handle the GUI and which ones handle the CLI?


--Rik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]