Questions tagged [design-guidelines]

89 questions
1
vote
1 answer

Best way to test a method's outcome with JUnit and Mockito

I am trying to test the method: @Override public boolean test(Apple apple) { if (apple == null) { return false; } return "green".equals(apple.getColor()); } My first guess was to test it in the following…
user1532449
  • 322
  • 4
  • 14
1
vote
1 answer

REST API design guidelines compliance test

Given a formal specification of a REST interface - such a Swagger 2.0 file - I would like to test it at design time against a set of simple pre-defined design guidelines for the interface itself. The guidelines are composed by mandatory (MUST) and…
csparpa
  • 511
  • 2
  • 7
  • 19
1
vote
0 answers

UITabBarController switching tabs guidelines

Is it correct according to guidelines to switch tabs using 'not tabs' but some other controls like buttons?
1
vote
1 answer

Why should a type not depend on types from its containing namespace?

Also posted here, but with no real academic answer: why namespace types should not depend on nested namespaces types? If I understand it correctly, the point is that a type Product.Business.Modules.Module can depend on Product.Business.Product, but…
David Anderson
  • 13,558
  • 5
  • 50
  • 76
1
vote
0 answers

Download for the Heros example app in the Angular Style Guide

On the Angular Style Guide, all of the examples are using a Hero application. I would love to download a working version of the application because I'd like to page through it in completeness, as I generally learn fast by viewing working code. I've…
BBaysinger
  • 6,614
  • 13
  • 63
  • 132
1
vote
0 answers

Recommended approach for adding custom "stuff" to a type definition, like globals.d.ts

I'm looking for a "best practice" way of extending or altering an existing type-definition. I recently found out that there is one such "best practice" for extending lib.d.ts. It's called…
1
vote
1 answer

Design Guidelines: Duplicate item in RecyclerView

What are the design guidelines for duplicating an item in a RecyclerView? I already implemented the following gestures: Swipe right: remove item Click: open another Activity with item details Long click: reorder items My idea for duplicating an…
Willi Mentzel
  • 27,862
  • 20
  • 113
  • 121
1
vote
1 answer

Where can I find Android Design Guidelines for specific version (KitKat, Gingerbread, etc)?

I've been looking around and couldn't find an archive for previous versions of Android where you can checkout how GUI was done back then. I'm developing an application and want to make its UI consistent with the platform version it's running…
1
vote
2 answers

Design guide-lines for writing a Typed SQL Statement API?

Last night I came up to sometihng intersting while designing my new project that brought me to ask this qustion here. My project is supposed to follow Table Gateway pattern using tradional ADO.Net datasets for data access. I don't want to write…
this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
1
vote
4 answers

At what level of abstraction does Single Responsibility Principle (SRP) no longer make sense?

I'm getting push back on a design from a colleague, and am wondering if there's consensus as to who is correct on application of SRP in this case. I see SRP as relating mostly to the lower-level details of design, such as class responsibility. As…
1
vote
0 answers

iOS App Artwork PNG - Shall I Strip Metadata?

The Android developer icon design guidelines state that When saving image assets, remove unnecessary metadata In the Apple iOS guidelines I cannot find any similar statement. Is it advisable to strip the metadata of my PNG Artwork for my iOS app,…
ilmiacs
  • 2,566
  • 15
  • 20
1
vote
2 answers

How to handle menu button click in actionbar environment

As related to the new guidelines I replaced my standard menu with the actionbar. Due to consistent design I want to use the actionbar for all devices where it is possible to use the action bar. But there are a lot of devices which support actionbar…
1
vote
1 answer

Do I need to provide an empty protected constructor for an abstract class?

I know that constructors in abstract classes should be protected in C#. But some abstract classes do not need non-parameterless constructors. For example: public abstract MyAbstractClass { public abstract Method1(); public abstract…
Mouhong Lin
  • 4,402
  • 4
  • 33
  • 48
0
votes
4 answers

Android Design guidelines, "Cancel" button

I have a question about "dialogs" on Android. ¿It's necessary a "cancel" button on dialogs, or we assume that user will press the "back" buton to dismiss it? I know it's a personal choice, but I'd like to know if there is any guideline from google…
user675319
  • 71
  • 10
0
votes
1 answer

Testing Tool for UI Style Guides?

I was wondering if there are any tools out there for testing an application's conformance to a given graphical style guide? Preferrably cross-technology (Web, Silverlight, Java, etc) but I'd be happy for any pointers (even research tools). To be…