Questions regarding software interaction with its human users.

learn more… | top users | synonyms

0
votes
3answers
119 views

How far should I validate user input in my own created API?

I got something here that bogs my mind a bit. Let's say I write me this API (in TS), check out some of these properties: export class MyAPI{ ...
1
vote
0answers
55 views

How to replace or manipulate the Microsoft Desktop Window Manager (DWM)? [closed]

I'm in the midst of deciding which platform to use to implement a new kind of display server / window manager. It seems that it isn't possible to replace the DWM on Windows systems according to MSDN ...
2
votes
2answers
109 views

Will Web Components in HTML Add Too Much Complexity? [closed]

The way I've been accustomed to User Interfaces is to see everything as a div. Where a div is essentially a box and they can be stylized in CSS. <div class='container'> <div ...
-1
votes
1answer
49 views

User roles array vs string

I'm working on a meanjs project. The user roles are set as an array: roles = ['admin', 'user', 'manager']; why not just set it like this? role = 'admin' Why is the convention of an array used ...
4
votes
2answers
154 views

Passing a list of choices with different arguments for each choice

I am writing a card game, in which I separated the "Core Logic" of the game from the UI. Communication with the player from the core logic part is done via callbacks which the UI implements and ...
0
votes
1answer
141 views

C# Application GUI design dependent on configuration

I have built quite big WinForms application working in industry for a few years. It communicates with many HW devices. Application can be configured to use or not use some of these devices and GUI is ...
16
votes
4answers
603 views

How to write maintainable, not brittle, unit tests for a GUI?

I tried writing UI unit tests for my GUI apps and I face the problem that, while they work well when I initially write them, they turn out to be brittle and they break whenever the design changes ...
0
votes
0answers
37 views

Should clicking already selected UI item be handled normally or ignored?

Lets say you have a user-interface with a tree view, and you click on already selected item. Should the click-event be handled normally or ignored (since the item is already selected)? Lets also ...
0
votes
1answer
38 views

Should formatter do validation?

Say I have a SSN field in a form. I want SSN to be in format of xxx-xx-xxx. I may just have a SSN formatter checking whether the input are all digits and adding dashes when necessary. Another ...
35
votes
4answers
4k views

Why is it the caller's responsibility to ensure thread safety in GUI programming?

I have seen, in many places, that it is canonical wisdom1 that it is the responsibility of the caller to ensure you are on the UI thread when updating UI components (specifically, in Java Swing, that ...
3
votes
2answers
79 views

User Inputs: Bounding Box, best practice?

I am creating a function in matlab that takes in two lat/long coordinates (opposite corners of a rectangle) and returns information about data in the region. How do I group my inputs? e.g. ...
0
votes
0answers
27 views

How to provide customized UI for different customers of a single web application [duplicate]

At our organisation we are developing a product which happened to be a Java web application. We are using Spring+Hibernate. Client side we are using jQuery and Bootstrap. This product would be ...
1
vote
0answers
345 views

Integrate C++ DLL with C# GUI asynchronously (design issue)

This is more a design than an implementation question. I am aware of how to integrate a C++ DLL within a C# main app that acts as GUI. Believe me that I've read all other questions on similar topics, ...
6
votes
1answer
189 views

UI Design patterns for non-screen based project

I'm working on a small project coded in Python that uses a single button for input and a RGB LED as feedback, which responds to button presses and asynchronous events from the network. As the ...
-2
votes
3answers
156 views

The urge to organize code in a cleaner way [duplicate]

Every time I am working on a project, specially a project from scratch, I always feel like I am doing a messy job. I feel bugged all the time by the need or organizing code that is clean or proper ...
3
votes
0answers
36 views

Update of user interface cycle

I am developing an App for iOS. In an attempt to avoid the pure MVC where everything is packed in the "Controller", I have added a Presenter layer and an Application Layer. In doing so I have come up ...
9
votes
2answers
615 views

Is automatically generating passwords during registration a good idea?

I'm developing a registration system for a project I'm working on. Since users tend not to sign up if the process is too long, I've thought to require (at least initially) just their email, where I ...
9
votes
1answer
426 views

When asynchronous tasks make a bad UX

I'm writing a COM add-in that's extending an IDE that desperately needs it. There are many features involved, but let's narrow it down to 2 for the sake of this post: There's a Code Explorer ...
2
votes
2answers
89 views

What is the origin of the tag property in UI toolkits?

I've seen the tag property in all UI frameworks I worked with: UIKit, Forms, OpenStep, even Delphi 6. Was it in the original Macintosh Toolbox or Xerox's framework? WhAt was the original idea behind ...
4
votes
2answers
273 views

What principle is violated by having a button do two radically different things or screens act radically different depending on the situation

I've come upon a situation several times in my career when previous developers have done something funny. They will make a control (button) function radically different depending on how the screen ...
3
votes
1answer
87 views

How to handle Django get-single-instance-in-view pattern?

A lot of my Django views start a little bit like this: try: # here request.POST could also be request.GET or a captured URL parameter MyModel.objects.get(user = request.user, some_attr = ...
7
votes
2answers
570 views

What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?

For instance, you let the user define the notorious path variable. How do you interpret apppath = C:\Program Files\App? This looks like a programming language adopted practice to ignore the white ...
2
votes
2answers
451 views

pixel perfect apps techniques [closed]

While doing your iOS app development, do you try to achieve pixel perfect similarity? Is your app identical to provided photoshop designs? If yes, what techniques are you using to speed this process ...
3
votes
1answer
100 views

Skeletal/Abstract class just to store shared state?

Given an interface for the Strategy pattern like so: public interface Strategy { public Output execute(Input input); public Output getLastExecutionOutput(); } if I want to store the last ...
1
vote
3answers
2k views

Pluggable UI Components in Java Web Applications

I will try to explain my question with an example. Let us say that we are writing a hotel reservation system which is web based using Java. We will have different payment methods, say Paypal, Master ...
3
votes
0answers
165 views

Design for an application framework that will allow each implementation to customize parts of the UI

I am tasked with designing an application framework that will allow each implementation to customize parts of the user interface. One such example would be that the implementation (let's call it ...
0
votes
3answers
168 views

How can DB and UI agree on default values?

I created a table in a Postgres database. I would like to create a form in a Java application to insert rows into that table. Certain fields have default values. What is the best way for the database ...
5
votes
2answers
370 views

Does having many duplicated methods and deep inheritance hierarchies in GUI APIs (Java Swing, Android SDK) violate the SOLID design principles?

For those unfamiliar with the SOLID principles you can start reading here: Wikipedia article. However, most of my understanding comes from: http://www.objectmentor.com/resources/publishedArticles.html ...
2
votes
0answers
231 views

How can I put multiple hierarchical forms in a single web page and avoid making it a mess?

We are a group of developers working on a web application that accepts forms filled and sent by our users and present it in an overall view. Our main form view looks like this: There are multiple ...
1
vote
1answer
304 views

Origin of letter “X” for close icon

Who exactly presented the idea that letter "X" should be used for closing/exiting a window or an application? According to Medium.com, The first appearance of [x] in GUI design was likely the ...
46
votes
9answers
5k views

Generally speaking, is it better to make all the functional parts or get UI working first - or a mix of the two?

Generally speaking, is it better to make all the functional parts or get UI working first - or a mix of the two? Assuming you're working on something large, is it generally accepted practice to get ...
2
votes
3answers
205 views

Handling leaves in tree-based menus

Tl;Dr Given a language with no polymorphism how to you elegantly modify the behavior of a leaf in a tree data structure. Context I'm programming an application in C for a microcontroller and I'm ...
-1
votes
2answers
500 views

Where and how to reference composite MVP components?

I am learning about the MVP (Model-View-Presenter) Passive View flavour of MVC. I intend to expose events from view interfaces rather than using the observer pattern to remove explicit coupling with ...
30
votes
4answers
2k views

How much information about an error should be shown to the user?

Applications can always throw errors. If such an error occurs, the user should be notified, because what he asked the application to do has not succeeded. However, how much information should the ...
1
vote
2answers
235 views

what to do when UX asks for an ugly, convoluted event driven design and you don't know how to implement it in a clean manner?

I have been tasked with creating a desktop client application that fetches data from web apis and presents it to the user. During the last month or so, I've spent most of my time and energy bringing ...
1
vote
1answer
221 views

Dynamic Query Generation : suggestion for better approaches [closed]

I am currently designing a functionality in my Web Application where the verified user of the application can execute queries which he wishes to from the predefined set of queries with where clause ...
1
vote
0answers
295 views

NCurses, scrolling of multiline items, “current item” pointer and “selected items”

I am looking for hints/ideas for the best (most effective) way on how to scroll multi-line items as well as emphasizing of the "current item" and "selected items" such as: 1 FOO ITEM 1 Foo sub-item ...
1
vote
0answers
1k views

Updating GUI in 'realtime' using events

My Plan Have a system that holds some objects Have a winforms-form that displays some key values of these objects When certain changes occur(object gets add / removed / datat change): Update GUI ...
0
votes
1answer
44 views

lots of images and ajax, or better solution?

I have a control where the user can select a value for the x and y axis from 2 dropdowns, and then there is a 4 by 4 grid (an image) which will show what their selections correspond to (updating ...
3
votes
2answers
598 views

Design pattern for overlapping actions and animations?

Is there a design pattern for dealing with overlapping UI actions and animations? A few examples: Let's say I have an interactive table row that expands to reveal an extra control when the user ...
0
votes
1answer
373 views

Is it good approach to open a keyboard at Actvity start where only one EditTextbox is present [closed]

I am working with Forgot password, where I have single EditTextBox and a single submit button. So whenever I am opening this Forgot password page, my keyboard is opened at the start of this page. In ...
1
vote
3answers
181 views

How to conceptually consider and implement user interface rules for numerous controls and data inputs?

I have a user interface with numerous controls and data inputs on it. Buttons, text fields, and checkboxes, etc. Imagine the following "rules" exist for a sample UI with 2 of those controls: B2 ...
1
vote
2answers
634 views

Frontend vs Backend data handling

Firstly I would like an answer from an experienced person (not a one man band), someone whom has worked in a medium/large team and had to battle with this burning question before. The problem: I am ...
1
vote
3answers
284 views

GUI programming - who should be an owner

I know nothing about gui programming. I try to learn. I have simple question... For example, I have small program. I have class that extends JFrame with main Window (MyWindowClass) and my "logic" ...
2
votes
2answers
359 views

Is it realistic to use designers for complex UI [closed]

When I created my first web application few years ago, I remember trying to use the designer in VS 2008. Before I can even remember I abandoned it to the favor of actual debug to understand how my UI ...
8
votes
2answers
2k views

Is it crazy to develop a TUI today? [duplicate]

I'm starting to develop a new program. It's basically a database interface, run a few queries, show the data in a nice way and be able to easy input new data (like this website). Thinking about which ...
1
vote
1answer
52 views

How to validate (and group) User Listings in Marketplace

I am building a hobby marketplace (comic books). Users are able to list comic books they own for trading with other members. The problem I'm running into is that I would like to standardize the ...
2
votes
1answer
134 views

What is the preferred strategy for editing data from a database?

We are redesigning an old VB6 application in Net. The application makes extensive use of a database and includes management of club members and their results in the competitions that they partake in. ...
1
vote
2answers
348 views

What design pattern (in python) to use for properly seperate runtime infos with core code?

I am not sure if this is a clear question. I work on a python project that is based on terminal(console), for which I am planning to implement a GUI. I am not major in CS so I really have no idea ...
6
votes
1answer
621 views

Mapping variable inputs to user interface elements

Background Developing a system for creating eBooks. The data is highly normalized. The eBook designs are packaged as "themes." The themes can be configured with options for: fonts, colours, some ...