Questions tagged [component]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

React Design - Parent / Child Interaction with Async State

I have a situation involving a parent component, children, and async fetch operations, and I am wondering how to best structure it. The current code structure I have is as follows: I have a parent ...
713sean's user avatar
  • 131
0 votes
1 answer
46 views

UML Component diagram: Dangling interfaces or connecting two

I'm a novice in UML component diagrams. How would I draw the following situation? I have an << item >> called "DataAquisition". This item consists of a << unit >> ...
Max's user avatar
  • 101
0 votes
2 answers
92 views

While designing a software, what are the criterion used to partition that software into indivisual components? [closed]

Good software is always designed based on different modules before integration. I was wondering what rules/guidelines decide software partition into different, smaller modules during the design phase.
Yash J's user avatar
  • 59
0 votes
0 answers
33 views

API Design - Creating one component vs two components whose difference is a required parameter

I'm currently creating a React App using the Atomic Design methodology. I'm implementing a series of molecules to define a list row. I currently have this IconTextItem that implements an IconItem ...
Jose A's user avatar
  • 275
1 vote
2 answers
116 views

Instance of component inside a (non-instance) component. Does it make sense?

A colleague of mine did this UML component diagram to represent both the required/provided interfaces and the internal structure of the subsystems that compose the system we're working on: (The ...
cidra's user avatar
  • 311
0 votes
2 answers
315 views

Can a socket be connected to many balls in a component diagram?

I have to draw a component diagram that depicts the architecture of my system with its subsystem decomposition and its dependencies. My system has a 3 tier architecture: The top layer just acts as a ...
cidra's user avatar
  • 311
-1 votes
2 answers
237 views

What does a database component in a UML diagram represent? [closed]

Sometimes the UML component diagram contains a database component. Does this database component represent a class that programmers create (which includes host, username, password, port... DB ...
Kasun's user avatar
  • 121
-1 votes
1 answer
231 views

Calculate Cumulative Component Dependency and Average Component Dependency

Given is the following dependency graph of a system with two subsystems. Calculate the CD (Component Dependency) of all components and also calculate the CCD and the ACD. See CDD here https://...
Mr. Hankey's user avatar
3 votes
2 answers
6k views

When is a "port" used in UML component diagram?

I currently stumbled over the the concept of "ports" in UML component diagrams and I'm not entirely sure how they are supposed to be used. Sometimes, ports seem to be used generally as start ...
TiMauzi's user avatar
  • 141
-2 votes
1 answer
117 views

How good of an idea is extending HTMLElement

In the new era of web components MDN (and probably the standard) suggests extending the HTMLElement class. For a long time we've strayed away from doing that, what has changed now for this to become ...
php_nub_qq's user avatar
  • 2,204
-2 votes
3 answers
87 views

Visualising a sprint as a delta to a software component diagram? [closed]

Given a software component diagram, a sprint could be represented as a delta of that diagram. That delta would reflect how the sprint affect the components. Each component could for example have a ...
Max Murphy's user avatar
1 vote
1 answer
187 views

Component based architectures in JS / PHP: what indicators suggest that a UI element ought to be written as an importable component?

N.B. Several months after initially asking this question (and not coming up with any satisfactory answers) I am now learning to use HTML Custom Elements / WebComponents. It seems the same question ...
Rounin's user avatar
  • 275
1 vote
1 answer
206 views

Server side rendering of third party updated html components

Say I am wanting to include a third party HTML component in my site... I know that I can simply include a <script> tag to pull in the component on the client's side; however because I do not ...
physicsboy's user avatar
-2 votes
1 answer
66 views

React class or function for stateful components?

Which is better to use? react class based stateful component or react hooks functional stateful component? I've searched a bit but couldn't find what is preferred to use.
Soul Burn's user avatar
  • 101
2 votes
1 answer
1k views

How to show relationships of the component containing the interface definition when using ball/socket notation in a UML Component Diagram?

I recently found out that I have probably been using ball/socket notation in a wrong way all the time. Now I am confused by the different ways of drawing interface relationships in two regards (I ...
Phil's user avatar
  • 51
-3 votes
1 answer
969 views

What is informational cohesion?

I try to understand what cohesion means when designing modules. Myers states in his book "Composite structured design": An informational-strength module has the following definition: It ...
flexibleHammer's user avatar
4 votes
1 answer
250 views

VueJs - composing components for large scale projects

I started getting into VueJs and Vuex development and I'm looking for a "mainstream" architecture for large scale projects. I think the question doesn't depend on whether you take a ready to use UI ...
Question3r's user avatar
3 votes
2 answers
604 views

How to improve this class diagram of a system with its components

So I was given a task of making a class diagram for a bicycle. I know what a class diagram is and the concepts behind one. The requirement is that the bike can brake, turn or speed up. Now to me, a ...
Lee Merlas's user avatar
2 votes
1 answer
397 views

Managing compatibility and dependencies in code library

I manage a library that is made of multiple components, there is some dependencies between some of these components, for example I have a core library for common code base that is referenced by other ...
Sisyphus's user avatar
  • 369
0 votes
2 answers
4k views

Difference between package and component?

I commonly come across the terms "package" and "component" in software engineering. To my understanding, both indicates an independent software that can be used by another (larger) software. What ...
Nasif Imtiaz Ohi's user avatar
1 vote
0 answers
30 views

Render GUI from React component functions

I'm not sure if this is the right way to build React components. I have a component with several buttons that call different functions in the component. In some of the functions I need to display ...
Mr Zach's user avatar
  • 269
-1 votes
1 answer
212 views

Why is it called a functional component?

A quick google search shows that the question I have has not been asked directly, and so I ask it here. For what its worth, I am learning react, and I come from a C++ background, where as far as I ...
Anon's user avatar
  • 3,575
1 vote
2 answers
158 views

How to show UML component load/discovery and realization relationships

In a UML component diagram I want to show two components (among others). One is the core component that loads contents (classes) from the other. It's much like a testframework loading unit tests/test ...
Phil's user avatar
  • 51
0 votes
2 answers
2k views

How to model system use cases realized by sub systems?

I found this question about sub systems & UseCases, just I lack understanding / mapping to my specific situation. I want to model which sub component fulfills which UseCase realized by my system ...
Shegit Brahm's user avatar
2 votes
1 answer
1k views

Do I really need to build a class diagram AND a component diagram? [closed]

I'm modeling a system while improving my knowledge of software engineering. I am building a class diagram and a component diagram, but notice that when I tweak one, I have to alter the other. Also, I ...
Eliaquim Tchitalacumbi's user avatar
0 votes
2 answers
1k views

Is testing UI components considered to be unit testing? [closed]

My UI components are tightly coupled with my UI framework (i.e. Vue + Vuetify). The framework provides some testing utilities that allow you to fake the rendering of these components without the need ...
geeko's user avatar
  • 236
0 votes
1 answer
217 views

Re-usability in C++ using Interfaces and External Configuration

I am practicing professional C++ by building a differential drive robot that applies a Go-To-Goal Behavior. What is I have written so far is an Agent that consumes the following interfaces: ...
Sam Hammamy's user avatar
0 votes
1 answer
111 views

Communication between separated application parts

I have searched well before asking this question, and some of the questions look like what I need here, but none of the gave a clear answer to my question. I am writing a web application (in PHP if ...
Osama Aldemeery's user avatar
2 votes
1 answer
463 views

Modeling "nested" interfaces in UML

I am modeling a system that exposes a number of "plugins" (not known at modeling time) through a web API. I have a number of "system" plugins that permit to interact with the system, something like "...
Corrado's user avatar
  • 29
5 votes
2 answers
400 views

How do you decide to group components in software architectures? [closed]

I am aware that this might be a question with only subjective responses, but i keep coming back to this thought. When you are designing a software's architecture, do you group components by their kind ...
Furious Gamer's user avatar
0 votes
0 answers
61 views

Realizing input & output signals from C++ code

I am dealing with C++ code that I want to model it as component diagram (UML2.0). So, a main step is to realize which parameters are input & output signals. One problem with that is: Not every ...
sam's user avatar
  • 101
1 vote
1 answer
738 views

How to represent a specific type of interface dependency in component diagram?

I'm currently having a hard time with creating a component diagram that should represent a certain type of component/interface dependency and hope that you can give me some hints. As background, I ...
LtSchnitzel's user avatar
1 vote
2 answers
298 views

Reusable component with web service

I am trying to create a reusable component / Cocoa Touch Framework in Swift that would display the current weather based on the user’s location. Right now I cannot decide which approach should I take....
SleepNot's user avatar
  • 121
1 vote
1 answer
103 views

Resolving Higher/Lower level component dependency

I have a .NET application (actually this can be a problem for any N-Tiered application) which has 3 separate components. ClassLibrary Has Cross Cutting Concerns like logging, authentication and IoC ...
Teoman shipahi's user avatar
1 vote
4 answers
612 views

Little value in unit-testing the database component

Having a component that represents the database is wonderful! You can use it from the business logic to read and write data. But should that component be unit-tested? I would argue that it should ...
Lefteris Eleftheriades's user avatar
2 votes
2 answers
2k views

How to depict the relationship between a Back-End and a DB in a component diagram?

I don't think I completely understand what a component diagram should show. Let's say I have a 3-tier web application for a homestay booking system, similar to airbnb. The 3 main components are clear: ...
antonro's user avatar
  • 249
0 votes
1 answer
574 views

Alternatives to inheritance for components with different behaviours?

I have been learning a lot of inheritance in C#. But am wondering if there are other ways that can be cleaner for component based setups. I have objects that are all pretty much the same but they ...
WDUK's user avatar
  • 2,052
0 votes
1 answer
227 views

Ext JS: Designing a base class and override it

I'm trying to define a base class and override it's items on different inherited sub-classes. I'm following MVVM pattern to fetch records from backend. Created several stores and formulas within ...
Nuri Engin's user avatar
1 vote
2 answers
706 views

Can the port of a UML component only be a singleton?

I am working on a software assignment where the design is component based. The components have ports which provide interfaces. My professor argues that the Port class which is exposed by each ...
patrick246's user avatar
3 votes
2 answers
194 views

Where to put domain classes in a component structure and diagram?

I've got a microservice called ExamResults, with a very simple component structure: ExamResults (offers: IExamResults) (requires: IExamResultsDAO) ExamResultsDAO (offers: IExamResultsDAO) This ...
KeizerHarm's user avatar
1 vote
1 answer
392 views

How should I structure React Redux components when requesting Data From an API?

I have a search box I'm going to use on different pages (I use the term 'page' loosely here). The search box puts its value (the search string) into the Redux state. The results are populated from an ...
Stu Pegg's user avatar
  • 568
0 votes
1 answer
291 views

Encapsulated views in MVC

This is an architectural / design question that just came to my mind when comparing current MVC practices in PHP with component based development in Javascript. My question is: Why doesn't the view ...
Matteo Demicheli's user avatar
1 vote
1 answer
121 views

Styling shareable React component?

I've been looking for a good way to style a react component just using css stylesheets. I would have used style-loader, because it's as easy as require('./style.css') and allows to save the final ...
guitarino's user avatar
  • 113
3 votes
1 answer
2k views

How does one combine the state pattern and the component pattern?

Suppose we have a class Player with classes PhysicsComponent, InputComponent and StandingState, DuckingState. The class Player itself does not have an input function, the InputComponent does. But ...
Post Self's user avatar
  • 287
1 vote
1 answer
108 views

Is nesting component properties maintainable in the long run?

I'm building components in Vue.js. They look like this: <template> <form :schema="form.schema" :options="form.options"></form> </template> <script> export default { ...
alex's user avatar
  • 383
3 votes
3 answers
437 views

Good approaches for sharing reusable components between teammates

Question: Talking about software development, how to provide good approaches to achieve a repository of reusable components inside a project? Context: Working on a team of 10 coworkers may be very ...
richardaum's user avatar
60 votes
3 answers
6k views

Name of a program's startup/initial loading window?

I am writing user documentation (an SOP) that involves third party programs that I am trying to describe well. One such program is a server that offers little indication of it's startup besides a ...
rtmh's user avatar
  • 643
2 votes
1 answer
162 views

Where does the burden of responsibility and support from shared components/services lie?

This is an issue that has somewhat been raised by the left-pad incident with NPM but I'm also interested in it from an internal business perspective. For example imagine an organisation with 3 teams, ...
Joe Hart's user avatar
0 votes
0 answers
51 views

Is it good practice to code entire business form as single component (control)?

Is it good practice to code entire business form as single component (control) and then proudly put it on window/form as the final step in development? Of course, this form can involve some other ...
TomR's user avatar
  • 1,003
4 votes
1 answer
2k views

Cross-cutting concerns and library sharing in Microservice architecture

I've been thinking about practicing with a simple Microservice (oxymoron I guess) application and I found an issue I was not able to resolve. I'll go with a concrete example since the definition of ...
Vlad Stryapko's user avatar