Questions tagged [user-interface]

The part of the application that users directly interact with. Use this tag for reviews of code that defines how an application's user interface works and looks.

Filter by
Sorted by
Tagged with
3 votes
1 answer
85 views

Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...
user avatar
0 votes
1 answer
30 views

My code is meant to be an accessible website with dynamic sizing. Could you analyze my page structure for any opportunities to optimize it?

Been learning front-end web development on the side on and off for the past few months. I don't really have any mentors to reach out to to look at my code so I thought I'd see if anyone here was ...
user avatar
  • 1
2 votes
0 answers
47 views

Accessible nested multiselect list

I'm trying to figure out the most accessible and semantic way to allow users to select one or more options from a hierarchical list. Think a taxonomy of categories and subcategories. I came across a ...
user avatar
  • 285
17 votes
0 answers
234 views

Progress Bar for Excel

Any future updates can be found at Excel-VBA-ProgressBar What I've been using so far For the last 6 years I've been using a progress form which I wrote in VBA using just Windows API calls. The code (...
user avatar
2 votes
2 answers
94 views

Javascript convert number string to Boolean

I'm making this control toggle between hide and show base on the value in this hidden value. I wanted to use a Boolean because I ...
user avatar
0 votes
0 answers
89 views

Mobile-friendly fixed background images, alternative to "background-attachment: fixed"

My goal is to create a mobile-friendly fixed background image effect, however "background-attachment: fixed" seems to be problematic on mobile devices. Could you please review my ...
user avatar
  • 1
0 votes
1 answer
88 views

Building user friendly inputs on a mobile device

I am working on an e-commerce website. The home page has 2 inputs: Looking for and Location. The user would enter their desired product and location and click on Search as shown below: The first ...
user avatar
1 vote
1 answer
45 views

Notes Saver Application in tkinter python

I completed my Notes Saver project in python tkinter and now I want to get it reviewed. I want to how I could - Improve my hashing system. Improve my notes encryption system. Improve the UX. Improve ...
user avatar
0 votes
1 answer
80 views

HTML table with repeatable rows and live-calculated column totals with row grouping indication

I created a quick "demonstration of proposal behavior" tool for my post on MSO: A proposal to put ALL answerers on a path to curating better content. Because I have never asked for a review ...
user avatar
  • 7,596
2 votes
0 answers
280 views

Create a map where countries can be selected using react-leaflet

I've only just started learning javascript and decided to try and make a simple app where individual countries can be selected, highlighting them, and the name appearing in the top corner. The code ...
user avatar
  • 63
0 votes
0 answers
22 views

User input, floats, ints and ranges

Intro So I am writing a larger script where a part of it is checking user input. Maybe I have a menu where the user can choose different options, or maybe I want them to write in some number/s. After ...
user avatar
6 votes
1 answer
385 views

JavaScript discrete slider web component

The standard HTML range input element suffers from a number of limitations that caused me to implement the web component presented here. First, it is unnecessarily complicated to style the standard ...
user avatar
  • 245
3 votes
1 answer
127 views

Make roads contrast with Google Maps

EDIT: I turned down the brightness on my monitor using the graphics options for the video card. This solved the issue. How this setting changed is a mystery... I am leaving this up because googling it ...
user avatar
  • 221
4 votes
2 answers
126 views

PATM Generator GUI

I've been practising trying to write my code neater, so decided to build a practice GUI, the code works, However, how could I tidy this up in terms of separating out the different parts of the GUI, ...
user avatar
3 votes
1 answer
46 views

Read database from IO context and update UI from Main context in Kotlin

Still a bit new to Kotlin and coroutines, so I want to learn best practices. The following code seems to work as expected in it's original context, though the naming has been tweaked here. The list of ...
user avatar
2 votes
1 answer
256 views

Infinite Slider Conversion to Prototype

I've found the following example of an infinite slider to use on a project but as I will have multiple instances I have converted it to a prototype. The original example https://medium.com/@...
user avatar
  • 401
4 votes
0 answers
52 views

Small Automatic Differentiation Library

Introduction As a programming exercise I recently wrote this automatic differentiation library based on forward accumulation. It should offer a simple way to create mathematical functions whose ...
user avatar
  • 41
2 votes
1 answer
35 views

Validating initial inputs then a joint validation test

The code works as intended but I believe it is very inefficient. The calculation of weights is simple, but I imagine this would be silly, for example, a 100 asset portfolio. The first problem is that ...
user avatar
  • 21
1 vote
1 answer
52 views

Optimising multiple string splits and concatenations

I'm writing a program in Unity and am using a TextMeshProUGUI object (named history) to hold a list of messages to act as a ...
user avatar
3 votes
2 answers
185 views

Is my Python tkinter application properly structured?

I started a simple OOP GUI project with tkinter in Python since I've been studying the basics for a while, but I'm not sure if my code is properly structured and following the programming conventions. ...
user avatar
3 votes
1 answer
237 views

Javascript Slider that controls TinySlider - feels inefficient [closed]

I feel like the main point of inefficiency is how I create "notches" and must loop through all of the created notches every time the value for the slider is changed. ...
user avatar
  • 31
9 votes
2 answers
859 views

GUI for a quiz tool or game

I just started working on a little project to help me study for a course I'm taking. Is there anything I can do to improve code readability / bad practices? I had to remove most of the labels and ...
user avatar
2 votes
1 answer
117 views

How to properly write code for Java Swing

basically I'm learning Java Swing by myself and I'm wondering what is the correct way to wrote code for it? I don't want to have a big class with everything in it and I want to do in the most "correct"...
user avatar
2 votes
1 answer
342 views

Creating an empty Sudoku grid

I am generating a 9x9 grid on which I will play sudoku later by setting click listeners to each square on the grid. I first have a .xml file that represents a single square in the grid. This consists ...
user avatar
5 votes
2 answers
126 views

Dropdown menu that opens on click using plain Javascript

I made a simple dropdown menu which opens when clicked, and closes when the user clicks anywhere outside the menu. The following is the codebase: ...
user avatar
  • 418
2 votes
2 answers
59 views

UI code for save editor

I'm wondering what I could do to improve the function that handles initializing the UI. I think it looks disgusting. Any ideas on what I could do besides splitting the code up into multiple functions ...
user avatar
2 votes
3 answers
317 views

Google homepage beginner project

I was hoping to get some feedback on my basic recreation of the google homepage. Im doing the Odin Project learning course and this was the first project trying to use the basics of HTML/CSS HTML ...
user avatar
  • 505
-1 votes
1 answer
538 views

Try-catch-finally snippet [closed]

Using visual studio I created a snippet which helps me surround my already written or new code into a try-catch-finally block. I use axios for REST so there had to be separate error handling method so ...
user avatar
  • 169
1 vote
1 answer
994 views

Grid of radio buttons in Android

I want to display multiple radio buttons in a layout with multiline style as an item inside a RecyclerView. Look at the code I provided below and suggest how I can ...
user avatar
3 votes
1 answer
195 views

Filling A Linked List With Data From File And Handling User Status Messages

I have completed an university assignment on C. While the code is fully functional based on the specifications of the exercise, I like high-quality code and would like to ask for opinions on how can ...
user avatar
  • 165
4 votes
1 answer
137 views

A small PHP library for styling terminal output

I've attempted to make a small PHP library for styling terminal output using ANSI escape sequences. The repo is located here. To be honest, I am not really satisfied with the current structure of my ...
user avatar
2 votes
2 answers
125 views

responsive login page (html/css only) [closed]

I'm working on a responsive login page (open source). Could you try to review a bit the code on Github ? ...
user avatar
  • 21
2 votes
1 answer
235 views

Table View Controller class in Swift

My TableView consists of four cells (for blacklisting categories) with a boolean property (indicated with a checkmark) and another cell with a UISwitch embedded in ...
user avatar
4 votes
1 answer
4k views

Onclick radio buttons to change background color

We are displaying two radio buttons in page. Click on Radio buttons, it will change background color. Is there any way to improve the quality of the code? ...
user avatar
6 votes
3 answers
592 views

Implementing a customized helpful hints function which includes docstring but much shorter than Python help()

When I show others how to use this module I have them make a PROJECT instance and then add other objects. ...
user avatar
  • 401
2 votes
0 answers
66 views

Generic DialogueBox class with different parameters

I have implemented a DialogueBox class which can be static, singleton, service locator, etc. I have written it as a singleton pattern and implemented it in Unity3d engine. It is a part of a game. I ...
user avatar
  • 21
4 votes
2 answers
527 views

Python coin flipper with GUI

I am doing some simple projects in an attempt to get good at programming, this is my first GUI would love some feedback, and some guidelines. ...
user avatar
  • 107
4 votes
1 answer
149 views

Simple view for CRUD with miglayout

I have created the following view extending the JPanel class, the objective of this view is to allow the user to perform 3 CRUD operations create,delete and modify on the entity "Attribute", this ...
user avatar
1 vote
0 answers
22 views

Deletion button on a website that enforces database integrity

I am designing a website on which users can configure (CRUD) various objects which are mutually dependent upon other types. I am preventing a cascade delete, so let's say a ...
user avatar
  • 186
2 votes
0 answers
4k views

FCC: Product Landing Page - HTML & CSS only

I have created a product landing page for a freeCodeCamp responsive web design project which requires me to create a "Product Landing Page". Requirements to keep in mind: ...
user avatar
3 votes
1 answer
99 views

Plain Page Flip Effect

I've created a very plain version of page flip onscroll. I made it to look like turning the pages of a book. It looks OK on browsers I have (Firefox 52.9, Chrome 49, IE8). Though the effect doesn't ...
user avatar
1 vote
1 answer
613 views

Loop through different controls and enabled the state of the whole group VBA

I got the below code that is looping through all controls and changing the state in a after update event and enables new row for user to use. Everything works fine but i'm just wondering whether there ...
user avatar
2 votes
1 answer
79 views

User-friendly script for searching through log files

A BASH script that ask users simple questions and greps the syslog archive files (plain-text and gzipped). The script is fully working; I am looking for advices on: Coding style Possible ...
user avatar
  • 247
2 votes
1 answer
78 views

Simple React component to view cached data and test result from API

This is only the front end side of things which I have at the moment, as the back end is still being worked on. But as this is my first attempt at a react component, I'd like to know if there is ...
user avatar
3 votes
1 answer
42 views

Front end for system ordering

I am developing a microservice that enables business partners to order systems for common customers: ...
user avatar
5 votes
0 answers
8k views

Page and center UICollectionView like App Store

I need a collection view to page through cells and center it like the App Store, where a portion of the previous and next cells look like this: The native ...
user avatar
  • 73
0 votes
0 answers
3k views

React Grid-List View

React Grid-List View React v16.3 Font Awesome 5 This program uses the React Context API to produce a responsive grid or table list using Zen Design styles and Font Awesome icons. Notes: Zen ...
user avatar
2 votes
0 answers
74 views

CRUD UI for managing banners in React

How can I improve this code? I am a beginner learning react. This is a UI for managing banners. Users upload the image for the banner and specify a start date and end date between which the banner ...
user avatar
3 votes
0 answers
496 views

Maintaining a complicated installer supporting per-user and everyone

Another challenge for developing rubberduck VBA project is to develop an installer that support per-user mode and everyone-mode. Normally with an MSI package, one has a bootstrapper so it is possible ...
user avatar
  • 2,009
3 votes
1 answer
80 views

Find matching image and metadata files, pull data and rename both

My Original - Read date from a file and rename two files using the date github if you want to see behind the scenes. I like taking pictures of birds. Lots of pictures of birds. My camera counts ...
user avatar
  • 7,099