Questions tagged [user-interaction]

17 questions
33
votes
7 answers

Why do modern operating systems *ever* have perceptible input (keyboard/mouse) lag?

Sometimes computers stutter a bit when they're working hard, to the point where the mouse location freezes for a fraction of a second, or stutters intermittently for a few seconds. This sometimes happens with keyboard input too, even in very basic…
13
votes
6 answers

How should I handle invalid user input?

I have been thinking about this issue for a while and I would be curious to have opinions from other developers. I tend to have a very defensive style of programming. My typical block or method looks like this: T foo(par1, par2, par3, ...) { //…
Giorgio
  • 19,486
  • 16
  • 84
  • 135
6
votes
1 answer

Where should the display messages on the UI be stored?

I am a backend developer and was having this argument yesterday with a frontend dev in my team about whether or not should I let him fetch the displayable text message about the result of an operation from the backend. My argument was that since it…
5
votes
3 answers

Is it fine to trap users in a dialog until they enter valid values into components?

Assume I have a modal dialog where I allow the user to change values of an encapsulated configuration through different UI components and I want to save the effort to implement a validation per component or restrict the component models to allow…
5
votes
1 answer

How advanced are author-recognition methods?

From a written text by an author if a computer program analyses the text, how much can a computer program tell today about the author of some (long enough to be statistically significant) texts? Can the computer program even tell with "certainty"…
4
votes
1 answer

Asynchronous update design/interaction patterns

These days many apps support asynchronous updates. For example, if you're looking at a list of widgets and you delete one of them then rather than wait for the roundtrip to the server, the app can hide the one you deleted, giving immediate feedback.…
Andy Waite
  • 510
  • 2
  • 9
3
votes
1 answer

Interactive review of data in modal before inserting in db

I'm looking for a conceptual approach to a problem. I'm building a web app that imports data from a source I don't control. The data quality is pretty high, but occasionally, the data does not make sense. So I want to expose the exceptions (based…
1
vote
3 answers

Simulating double-click, how long should I wait between clicks?

I'm simulating a double click programmatically and I want to have a slight pause between both clicks in order to better simulate a real user. I know the interval should be less than GetDoubleClickTime but am not sure what would be a good time to…
Motti
  • 323
  • 2
  • 8
0
votes
0 answers

Design Patterns for an Interaction Heavy App

For an app like Figma, for example, how do engineers deal with the various states a user can be in? A user can select an element. This element is now surrounded by a thin blue line to indicate it was selected. The user can then hover over another…
0
votes
0 answers

Drag and drop and handling huge amount of documents to update position

I'm having a series of data as documents in a document db (CouchDB) Sample of a document looks like below { _id: xxx _rev: xxx data: xxx position: 1 } These documents displays in a web front-end in a vertically scrollable list and any item can…
0
votes
1 answer

Python - Type Hinting specific sized Vectors

Considering a class method that takes a "vector" (Tuple or List of either int or float) of defined values such as the following: import sys from numpy import isnan, array, float64 class Shape: """ This is the Shape class. Create 3D shapes…
lucasgcb
  • 355
  • 4
  • 12
0
votes
2 answers

Detecting and Dealing with obscene language in user input

I've seen some pretty darned restrictive 'chat-systems' in kids games, that make it nigh-on-impossible to get much of a message across whilst typing. So, I looked at some ideas, and there where two main ones, the whitelist and the…
AJF
  • 211
  • 2
  • 8
-1
votes
1 answer

How should I update back-end data (e.g. follows, likes, etc.) which changes at an inconsistent rate?

(This is a conceptual question but as reference, I'm using Android Studio (Java) and Firebase Firestore...) My app currently has a structure where the user can follow authors and favorite their works. Each user on the backend has a set of follows…
Jonny
  • 99
  • 2
-2
votes
1 answer

How to implement a CLI interaction with running java programm?

I would like your tipps about implemening a command line interface to interact with a running java application. Example: The Java Application is a webserver and a cli-client should interact with it: 1 ) Start server application: java -jar…
User8461
  • 113
  • 1
-3
votes
4 answers

How to break the vicious cycle of test-writing preceding an initial release?

I'm developing a FOSS library which I am pretty fond of. More specific details probably don't matter. I've already "finished" a feature set sufficient for an initial release IMHO. However - some of the features I introduced in there were added for…
einpoklum
  • 2,478
  • 1
  • 13
  • 30
1
2