Questions tagged [design]

Design in programming is the act of making particular choices about how best to structure a program, to achieve goals of reliability, maintainability, correctness or ease of use.

1
vote
0answers
48 views

Are static methods a best practice in sdk design?

A lot of sdk provide only static methods to interact with them. Among these sdk I can mention Timber, where we do Timber.d(message); Facebook, with AppEventsLogger.activateApp(applicationContext) ...
0
votes
1answer
13 views

Creating free-form diagrams without impacting the model in Sparx Enterprise Architect (EA)

In my EA model, I have defined all ports + provided and required interfaces for all my software components. This means that when I drag two components into a component diagram with their structural ...
0
votes
0answers
11 views

Akka design question: children or router?

If a certain actor is more like a store and repository mediator, does it make more sense to create a bunch and dispatch requests through a router or are there practices and concerns - say on GC, state ...
-5
votes
0answers
59 views

token is either red, green or blue [on hold]

Suppose we have a lot of tokens, and every token is either red, green or blue. We also have a bag with some tokens in it. Let’s consider the following procedure: Repeat the following until the bag ...
0
votes
1answer
33 views

Java Object Builder Design

Basically I have a Weapon class which has a lot of attributes and setters. I want an elegant way to create instances of Weapon based on a type of weapon. My current implementation is simple. I have a ...
-4
votes
0answers
21 views

I want to make curved shape with css

How can I make a shape like that using css or html I tried many things but couldn't do it !
0
votes
1answer
19 views

Better way to pass parameters to ruby calabash method

I have the following ruby calabash step: When(/^I enter (phone number|email)$/) do |method| login_type = case method when 'phone number' true when 'email' false ...
0
votes
1answer
11 views

Where can I find good examples of complete system architectures?

I'm hoping to work on a big programming project that will involve writing a whole server back end (and front end) from scratch for a video streaming site. It's going to include load balancing by using ...
1
vote
1answer
19 views

Dragging nested components into a diagram in Sparx Enterprise Architect (EA)

In my Enterprise Architect model, I have nodes that contain devices that contain components that contain other components. That's how I organized the hierarchy in the Project Browser. I would like to ...
0
votes
0answers
15 views

Singleton pattern and configuration service case [on hold]

There are many discussions trying to explain that "singleton is bad" on this site. I'd like to meet the solution that is "not bad" in the following case: SOA, micro (multi) services architecture (web,...
0
votes
2answers
73 views

Estimating the intercepts and slopes for three treatments

Let's assume that my data looks this ( it is just data to illustrate my question): set.seed(1234) x=runif(12, 22,28);x y=runif(12,88,120);y y1=y[1:4];y1 y2=y[5:8];y2 y3=y[9:12];y3 x1=x[1:4];x1 x2=...
0
votes
1answer
21 views

Background img with filterand nav - CSS

I have the next question: I have a div with background img, I added a filter brightness, but that also affected what I have next to that image: [![introducir la descripción de la imagen aquí][1]][1] ...
0
votes
1answer
23 views

Catching exceptions in Spring Web Flux

I have the following class for invoking a time-consuming operation via web-service: @Service public class InferenceService { @Autowired private final WebClient inferenceClient; public ...
0
votes
1answer
8 views

Can't resolve android.support.design. after migration to AndroidX

I try to get the Textview of the Snackbar with this code snippet: snackbarView.findViewById<TextView>(android.support.design.R.id.snackbar_text) but Android Studio does not resolve the ...
0
votes
1answer
14 views

Can singleton value be changed and assign to null

If I create a singleton and have only one instance of its creation. If I have a forloop where I assign the value of singleton to null and try to access this value in next iteration it would break. Is ...
0
votes
0answers
44 views

Global application search design concern

I need to implement global application search. Here's how it must work: We have an input, when a user starts typing, after three first are entered we must understand what table we must query, for ...
-2
votes
1answer
25 views

Different width resolution on the same monitor and viewport size

I have a monitor with a resolution of 1920×1200. I created with html a banner with an image that has width 100%. When I test the real size on the browser through the inspector I see that the size of ...
0
votes
0answers
15 views

What API can I use to develop interior floor design software with . net? [closed]

I want to get an API to design floor in room with 3D objects and can be dragged on to the room. You can change the room size. Much like a conventional home designing software After the room is ...
1
vote
3answers
39 views

Using typescript, what is a good Observable type to best represent a HTTP response with no content?

Using typescript, Angular 6+ and rxjs, how to best represent to the caller that an HTTP response content is empty (Content-Length=0)? Without specifying types in the method call (get, post, etc.), an ...
0
votes
1answer
20 views

Path Variable or Request parameter?

When we design Rest apis, it is said that use Path Variable when you need to identify a resource and Request Parameters when you need to do operations like sorting, filtering, searching, pagination. ...
0
votes
2answers
14 views

User accounting for Solr requests

I have to build a small app that will provide search service to registered user. Due to full text search, I have used Apache Solr. Now the question is how to count the user requests being serviced by ...
0
votes
0answers
25 views

Subreports show up on top of the page despite they are placed in the middle of the page

My problem is SSRS subreports showing up on top of the main report despite they are located somewhere close to the bottom of the page. The subreports don't have page headers and footers. The report ...
0
votes
0answers
8 views

Thread running in user session

I have a web application that is implemented with the auto logout if the user inactivity for 1 hour. During the user session, the user can actually submit condor job and the backend will run it. If ...
-4
votes
1answer
33 views

How to make these kind of design in xamarin forms, i have researched it but not found a specific topic or blog.?

Image that I try to copy and make in xamarin forms It is used in xamarin forms
0
votes
1answer
25 views

Responsive Design UI with DockPanel Suite

I have design 1 winform to look like the picture. But I want the highlighted yellow part to be dockable with dockpanel suite reference. Is that do-able or any other suggestion of better design? Right ...
-1
votes
0answers
18 views

tfs traceability to design elements in java [closed]

I'm looking for a tool where I can make design models for java applications, and I can get hyperlinks for either specific diagrams or design elements, in order I can trace these elements to work ...
-6
votes
0answers
41 views

(How) is it possible to create a UICollectionView with random sized cells? [closed]

I have played around with Sketch a little and created this prototype: If I want to code this, what things do I have to be aware of? Does anybody got a tip for me how to start or can recommend some ...
0
votes
0answers
39 views

Laravel course registration queue system

I am currently building a web application in Laravel 5.5 for a school board, and I am working on a feature to enable teachers to register for classes in a live queue. The order of the teachers in the ...
1
vote
1answer
26 views

Trying to create a custom table in React?

I am trying to create a very simple table using React. I want it to look like a table that you could create using Microsoft Word. How would you recommend going about this?
1
vote
2answers
36 views

DDD: Is Repository only limited to database?

If talking about repository, everyone imagine abstraction over database. But can repository be abstraction over REST service or some other source of loading aggregates?
2
votes
0answers
13 views

Design problems with google bot

My website designs don't show properly on google bot. what should I do? I'm having an issue with getting Googlebot to correctly render my webpage. It's rendering the header and one "row" of my page (...
-1
votes
1answer
19 views

How to create a unequally sized picture wall?

Im currently developing a little app... its basically my first real app. I want to display a bunch of images in a picture wall like instagram does. When you take a look at the picture below you may ...
-4
votes
1answer
49 views

Is it appropiate to use exceptions to control the flow of a program's normal execution? [closed]

I ask this question out of sheer confusion. In all my programming life with C# and .NET, I've been taught to avoid using Exceptions to control the flow of a program (i.e. a validation in a web ...
-2
votes
0answers
9 views

Site uses search bar and user input, How Can this be Replicated?

This website (https://linksearching.com) uses a search bar and adds footprints into a users input, then redirects it to Google. Does anyone know how to find the code similar to this?
-2
votes
0answers
4 views

Creating an Open Source Platform for Infrastructure Design Engineering [closed]

i would appreciate some feedback on a project i have in mind. Project Brief This is to create an open source engineering design platform whereby engineers and other professionals around the world ...
0
votes
0answers
36 views

Verilog router design and best way to store variable size packets in verilog?

I have a synthesizable verilog/logical design question. My question is more logical than syntax. I wish to implement some sort of router that has three input/output ports of full duplex uart RS232, ...
-1
votes
0answers
20 views

What's the best way to learn android UI design?

I'm learning android UI design and I feel like I'm not making any progress. I'm disigning my UI using the constrant layout... any videos or online tutorials that I can take to speed up my learning ...
0
votes
0answers
26 views

Problems of constraints : sizeToFit doesnt work

I'm very new to iOS developement, im starting to use auto layout and constraint. I come from Web design so some behaviour are very confusing to me. I'm trying to do a vertical menu taking all the page ...
0
votes
1answer
35 views

Hard justify content

I try to justify a text in an "extreme" way. That is, I'm looking for that: And not this: which leaves a visible space in the lower right. To me after to balance so that the words do not ...
0
votes
1answer
34 views

Spring-MVC, JPA: How to correctly save associated entities?

Let's say we have the following three domain model entities: Company, Departament and Employee. @Getter @Setter @NoArgsConstrutor public class Employee { private String name; @ManyToOne(...
0
votes
0answers
14 views

Processing Large Xml data

This is actually a design related query. Not sure this is the correct forum , if not please move to the correct place. I have a large xml file which is having 20k rows for e.g. The file can be ...
0
votes
1answer
39 views

decoupled design for async http request

What i am trying to write is a view-> controller -> model -> client -> HttpRequestSender relationship that is abstract, so i can replace the HttpRequestSender when i am using different platform (...
-2
votes
0answers
16 views

Good places to find pre-built Android UI components?

Yes, I know Google has material guidelines for building UI components, just wondering if there a nice package with a bunch of the pre-built material design UI components out there. For example, a ...
0
votes
0answers
16 views

How to design a shopping cart application which can support dynamic discount types? [closed]

I could design a solution to a shopping cart with discounts similar to the approach mentioned in Design a TotalCost Calculator for a Shopping Cart. How to support adding new discount types(Percentage ...
0
votes
0answers
26 views

Multiple nodes (clones), how manage sockets

Please, advise. I have the following structure: Front: React Server side: Node 1, Node 2 (clone of node1), Redis Nodes are socket servers with socket redis adapter (later there can be 10 clones). My ...
0
votes
0answers
26 views

Java content class with transient object versus parameter

I have two designs to choose from when developing content classes for my person in a game. I want to know which one will perform better in terms of speed, performance, usage in bulk code. Basically, ...
0
votes
1answer
45 views

Single responsibility principle C#

I have a clarification regarding Single Responsibility principle in C#. Suppose I have a method and in the catch block , if I log the error in database , is that a violation of SRP because the ...
1
vote
0answers
17 views

How is Sketch linked to Mobile Web Development?

I am new to both Mobile App Development and Sketch and I am having a hard time understanding how Sketch can be used in developing a mobile application. I am looking into React-Native to develop an ...
4
votes
1answer
692 views

How do you design your classes in Qt with a lot of widgets?

I ran into the problem of how I should design my classes in Qt, to prevent messy code. My MainWindow has a lot of Buttons, Labels and other widgets. I don't want to make it too big, and I want to ...
1
vote
1answer
46 views

Design problem for DDD and User entity implementing Symfony's UserInterface

why Symfony docs suggest to implement UserInterface interface on my domain User entity? https://symfony.com/doc/3.4/security/entity_provider.html class User implements UserInterface, \Serializable {}...