Questions tagged [interface-design]

33 questions
2
votes
2 answers

What's the best way to handle multiple search options?

This is probably a question that has been around for 20 years, but I'm going to ask anyway. I have a screen that has multiple search options. Some can be combined. Some are exclusive. Ex: Search by first and last name OR Search by age What is…
donde
1
vote
4 answers

Does anybody know of a mockup tool that can export into code?

I want a tool that allows me to design the screens pixel-by-pixel (almost like i took a screencap of the webpage) and gives me the option to export the entire screen into XHTML/CSS. Does anybody know of such a tool? As a note, I am NOT looking for…
yeahumok
  • 2,940
  • 19
  • 52
  • 63
1
vote
1 answer

Augment a Python enum with a value taking parameters

I have a Python enum: class E(Enum): A = 1 B = 2 It is part of a public interface, people pass E.A or E.B to various functions to specify some parameter. I want to augment this enum to add a third value, C, but this value only makes sense if…
Ted
  • 972
  • 2
  • 11
  • 20
1
vote
0 answers

Overriding interface definitions

Possible Duplicate: Why is it impossible to override a getter-only property and add a setter? Let's say that I got the following interfaces: public interface IMessage { bool KeepAlive { get; } } public interface IRequest : IMessage { …
jgauffin
  • 99,844
  • 45
  • 235
  • 372
1
vote
3 answers

How to replace enumeration with something like interface ID?

Please consider the following interfaces: interface IFile { // Members }; interface IAudioFile : IFile { // Members }; interface IVideoFile : IFile { // Members }; enum ContentType { Audio, Video }; interface IProvider { …
1
vote
6 answers

What do *you* use C++ ABC constructors for?

What do people here use C++ Abstract Base Class constructors for in the field? I am talking about pure interface classes having no data members and no non-pure virtual members. Can anyone demonstrate any idioms which use ABC constructors in a…
nly
  • 179
  • 7
1
vote
0 answers

Clogit function in CEDesign not converge

I designed a CE Experiment using the package support.CEs. I generated a CE Design with 3 attributes an 4 levels per attribute. The questionnaire had 4 alternatives and 4 blocks des1 <- rotation.design(attribute.names = list( Qualitat = c("Aigua…
Marc Vives
  • 21
  • 3
1
vote
2 answers

RESTful API best practices

I'm an Android Developer and also have some knowledge of RESTful API development. Currently I'm building an API using Dot Net Web API. Everything's working fine but I'm still concerned with the design. The core concern for me now is what exactly…
1
vote
4 answers

Tabs vs. Home Screen For Android Application?

I have an Android application that I've been working on, and it's implemented using tabs to separate the different functions that it performs. See the article here The above article talks about how instead of implementing the Twitter application…
Ben Burnett
  • 1,554
  • 10
  • 17
1
vote
1 answer

How to design a library with paralell interfaces in C and C++

My current project is a medium-sized library that is meant to have a C and a C++ interface at the same time. It centers around a single data type that I want to be accessible from C and C++ functions, because I want to encourage third parties to…
Mark Asbach
  • 61
  • 1
  • 9
1
vote
1 answer

What's a good Systems Interface Specification template?

A client has a number of disparate systems that they are planning to link together and have asked for a set of system interface specifications that would document the data and protocols used to interface the different parts. The interfaces are…
rbrayb
  • 46,440
  • 34
  • 114
  • 174
1
vote
2 answers

How do I add some text onto the divider between rows?

Example (with "OR" as text): The idea is that on collapse of columns—i.e.: view on mobile sized-screen—it will appear betwixt submit and Click me. How do I add some text onto the divider between rows?
A T
  • 13,008
  • 21
  • 97
  • 158
0
votes
0 answers

C# Interface design

I'm trying to define interfaces for services that should have methods like start, stop, Resume. But some services can be asynchronous which needs to implement the same methods (start, stop and Resume) asynchronously. One more caveat here is…
prasana kannan
  • 646
  • 6
  • 12
0
votes
2 answers

Return a vector knowing it will always contain a single record in order to be consistent with the rest of the interface?

I'm writing a little address book application and have a design dilemna regarding the interface for the data source / backend. I have the following abstract base class for data source classes: class DataSource { private: public: …
user331006
0
votes
1 answer

Accessing implementation specific methods on an object that is returned to its API

Let me start by abstractly formulating the problem: I have two public interface types. One of them contains a method which receives at least two instances of the other interface type. The implementation of the method depends on the implementation of…
Stefan Dollase
  • 4,530
  • 3
  • 27
  • 51