Questions tagged [component]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-4
votes
1answer
76 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 ...
3
votes
1answer
147 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 ...
3
votes
2answers
159 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 ...
1
vote
1answer
54 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 ...
-1
votes
2answers
107 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 ...
0
votes
0answers
35 views

Managing adjacent components

(originally asked here, but aparently not the right place) I managed to create a minimalistic example to reproduce the confusion I'm facing, here's a working SandBox. I have a page ( see the Profile ...
1
vote
0answers
23 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 ...
-1
votes
1answer
71 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 ...
1
vote
2answers
70 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 ...
0
votes
2answers
73 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 ...
0
votes
1answer
75 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 ...
-1
votes
2answers
214 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 ...
0
votes
1answer
105 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: ...
0
votes
1answer
91 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 ...
2
votes
1answer
130 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 "...
5
votes
2answers
219 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 ...
0
votes
0answers
57 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 ...
1
vote
1answer
303 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 ...
1
vote
2answers
180 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....
1
vote
1answer
95 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 ...
1
vote
4answers
376 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 ...
2
votes
2answers
685 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: ...
0
votes
1answer
123 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 ...
0
votes
1answer
84 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 ...
1
vote
2answers
210 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 ...
3
votes
2answers
157 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 ...
1
vote
1answer
342 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 ...
0
votes
1answer
129 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 ...
1
vote
1answer
86 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
106 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 { ...
3
votes
3answers
286 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 ...
59
votes
3answers
5k 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 ...
1
vote
1answer
126 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, ...
0
votes
0answers
47 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 ...
4
votes
1answer
1k 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 ...
2
votes
1answer
133 views

Separating components by “type”?

We have just started to work with React and some of my team mates proposed to split the components in 3 types (each one in its specific folder): components: reusable components like buttons, inputs ...
1
vote
1answer
670 views

DDD aggregate and component structure [closed]

What do you consider that is there relationship between DDD aggregate and architectural component? I think that it is quite reasoned that services, which are related to specific aggregate, defined a ...
1
vote
0answers
441 views

When to use trait components, objects, package objects in Scala

When I am adding dependencies in Scala, I tend to use mixin trait components for those that are inherit to the class itself. For example, DaoGenerator extends Generator However, for trait components ...
0
votes
1answer
243 views

Inject or not dependencies in a component based framework

I'm currently developing a small component-based framework the Android platform. The framework has some ready for use and some abstract (has some internal logic, but the developer needs to add some ...
9
votes
1answer
160 views

Conditional CSS based on external modifier class - good practice?

Introduction / background: CSS components For a relatively large website we are working with SASS, and trying to manage CSS in components. The basic idea of components is that a component should look ...
14
votes
1answer
5k views

What is the difference between web components and custom elements?

"Web Components" and "Custom elements" are often mixed up, and web searches for the title of this question don't yet produce much clarity. Let's fix that.
0
votes
2answers
97 views

How can I know if my data needs to be a react.js component?

I'm looking at React.js, and trying to see if it can help me with my recurring sets of data that I have on various pages. All the data is from a database, say a list of names and addresses, a tabular ...
2
votes
2answers
117 views

Delegating work and programming to component interfaces

I have a MessageHandler class which receives and validates messages before determining which components in the architecture they should be delegated to so they can be processed. This involves calling ...
3
votes
2answers
796 views

Data Access Layer with Asynchronous services like MQ

I am tasked with creating a development, design and architecture guide for a large multi-year project. I have to dictate best design practices for a number of architectural perspectives. See the ...
3
votes
3answers
3k views

What is the difference between a function and a component?

I just listened to Software engineering Radio podcast on components. Their description of components were very vague, they made them sound like lower level versions of functions. I am trying to figure ...
3
votes
3answers
2k views

Avoiding polling with components

Once you create separate components that need to communicate with each other you enter the realm of systems programming where you have to assume that errors could originate at any step in the process. ...
5
votes
1answer
206 views

Designing module interfaces

I'm studying software engineering and one thing I'm really trying to improve is my skill in software architecture. My question is quite broad, so I'll try to explain it with an example. Suppose you ...
1
vote
0answers
204 views

MVP: Multiple Page-Controllers for a page?

I'm refactoring a big-scale ASP.NET application written with WebForms which has a very unflexible design of view+code-behind. For this refactor, I'm using MVP Architecture (Model-View-Presenter), ...
7
votes
2answers
3k views

What is Component Oriented Programming, and how is it different from OOP? [closed]

What exactly is Component Oriented Programming, and how is it different from Object Oriented Programming? Thanks