separation-of-concerns Questions

4

Solved

I am new to react and I find it sore in the eyes to look at the component flooded with lots of functions and variable initializations together with the UI. Is it possible to separate them? Instead ...
Adolfo asked 26/9, 2021 at 7:57

3

Solved

I have a web component x-counter, which is in a single file. const template = document.createElement('template'); template.innerHTML = ` <style> button, p { display: inline-block; } &lt...

2

Solved

Here is an example of JavaScript template from Ben Nadel's demo single page long-lived AJAX application taken from: [source] <script id="contact-list-item-template" type="application/template"&...

9

Solved

I learned PHP by hacking away at phpBB2, even submitting a few mods to their database, which others downloaded and used. (I don't believe phpBB2 is supported any more with phpBB3 out so long now, s...
Blair asked 10/7, 2010 at 20:1

2

Solved

I have concern in which I store constants: module Group::Constants extend ActiveSupport::Concern MEMBERSHIP_STATUSES = %w(accepted invited requested rejected_by_group rejected_group) end And...
Slumberland asked 11/4, 2013 at 15:50

1

Context I'm attempting to design an access control solution for our company product(s) that has the following three properties: customers can bring their own identity (from their IdP solution), ak...
Azoth asked 31/7, 2018 at 17:42

13

Solved

What is the difference between Single Responsibility Principle and Separation of Concerns?

2

Solved

Bootstrap provides classes such as text-left (Alignment classes), text-lowercase (Transformation classes) etc, which is the same as defining inline-styles (not technically, but logically). In an a...

1

Solved

I have a Bazel project with a WORKSPACE and many packages. WORKSPACE file is quite huge, so I wonder if it's possible to break it down in separated files and import them.
Appearance asked 16/3, 2020 at 15:47

4

Separation of concerns (SoC) Dependency injunction registrtered in ConfigureServices (method of startup class) consist of different DI's like Repository, Fluent Validations etc. How would I go ...

4

Solved

I have an application that loads a list of client/matter numbers from an input file and displays them in a UI. These numbers are simple zero-padded numerical strings, like "02240/00106". Here is th...

3

Solved

I am looking to separate concerns for some subset of function specific to a model. I have referenced here and followed this pattern module ModelName::ConcernName extend ActiveSupport::Concern i...
Tamikotamil asked 29/5, 2016 at 7:27

1

Solved

I'm trying different approaches to do what is sometimes known as dependency injection. For this I've elaborated a simple example of a weather app, where we want to fetch the weather data (from a we...
Irenics asked 30/11, 2017 at 17:24

1

Solved

TL;DR: In case of a reusable component which has some complicated logic for managing its own state (think: a facebook comment textarea with autocompleter, emoji etc) how does one use store, actions...
Erratum asked 28/7, 2017 at 8:8

4

Solved

My Angular project is growing so I want to keep my project clean. I have one Angular component which depends on a nested Angular component. Now I need two import statements to use these componen...
Inconvenient asked 19/9, 2016 at 11:38

4

Solved

I've got an ASP.NET 5 dnxcore solution with some projects to separate my logic: API Core (with services for business logic) DAL (repository interfaces) Entity Framework (the repositories implemen...

3

Solved

I am actually reading a book called "DDD in PHP", to help me understand the Domain Driven Design. So far everything is good, but I struggle to understand how to implement one specific topic without...

2

What's the simplest way to access included class's protected constant in the ActiveSupport::Concern context? Example classes: module Printable extend ActiveSupport::Concern private def print_c...
Sham asked 30/9, 2014 at 12:24

1

Solved

I refer to ServiceStack documentation reg use of POCOs: Since it promotes clean, re-usable code, ServiceStack has always encouraged the use of code-first POCO's for just about everything. i.e. the...
Scrutiny asked 4/10, 2015 at 19:42

3

Let's say you're writing a function to check if a page was reached by the appropriate URL. The page has a "canonical" stub - for example, while a page could be reached at stackoverflow.com/question...

1

I am building an applications in .net/c#/Entity Framework that uses a layered architecture. The applications interface to the outside world is a WCF service Layer. Underneath this layer I have the ...
Stilt asked 11/11, 2014 at 18:8

2

Solved

I am using Entity Framework 6 database-first. I am converting the project to implement the onion architecture to move towards better separation of concerns. I have read many articles and watched ma...

2

Solved

I finished a project in C++. It is a console application, created with CodeBlocks. Although I consider it not so important in the scope of this question: The application manages data about bills an...
Stores asked 2/8, 2014 at 21:36

2

Solved

I want to refactor code of which I post examples below. I am very new to AngularJS. Now when I saw the code, I was very curious about all the logic that is placed in the HTML code. <p ng-show="...
Deledda asked 19/7, 2014 at 9:45

1

Solved

Possible Noob Warning: New to RoR I am trying to use concerns in RoR. Right now I just have a very simple concern writen #./app/controllers/concerns/foo.rb module Foo extend ActiveSupport::Conc...
Departed asked 24/6, 2014 at 19:9

© 2022 - 2024 — McMap. All rights reserved.