Questions tagged [solid]

Solid: tools and conventions for decentralized social applications proposed by Tim Berners-Lee and MIT. Please do not use this tag for the SOLID OOP principles.

Solid (originally derived from "social linked data") is a set of conventions and tools for building decentralized social applications based on Linked Data principles, proposed by Tim Berners-Lee and MIT. (Not to be confused with the of object-oriented design.) Solid is modular and extensible and it relies as much as possible on existing W3C standards and protocols.

Code on github.

81 questions
0
votes
1 answer

In MVVM with Clean Architecture, where is the best place to put the variables that will be used in many places in the project?

For example, I have a LocationRepository that gets the last location from the device. But I need to use the last location info in many ViewModels. Is it better to define a private variable that holds the last location in the LocationRepository and a…
0
votes
1 answer

How can I add a new friend to a Solid Inrupt pod using Javascript (without Node.js)

I want to add a new friend directly using JavaScript from a UI. The main thing is that in my Solid Inrupt pod I have a property called knows. I tried to use this code but doesn't work: //Function that adds a new friend to the user's pod async…
gitblanc
  • 11
  • 5
0
votes
1 answer

How can I modify Solid Inrupt pod's permissions using javascript

I want to create a new container on a Solid Inrupt Pod but with reading permissions just for my pod's friends. Nobody else can read or write data in that directory. I've been searching and I know that I have to modify a .acl file to add permissions…
gitblanc
  • 11
  • 5
0
votes
0 answers

How to extend Laravel's native authentication system to manage both admin and client

can I get some guidance on how I can extend Laravel's native authentication system to manage both admin and client roles while following SOLID principles? Get an idea of how to implement solutions following SOLID principles For ex: namespace…
udeshika
  • 1
  • 5
0
votes
0 answers

Import Plugin for Meshlab to import IES Files?

i am a professional lighting designer and very often i have to deal with so calles IES Files. These are used to describe the 3D illumination characteristics of a lightsource. It's a PHOTOMETRY file and consists of only text. Rows of Angles and rows…
0
votes
0 answers

How to decouple service and class creation in that service?

I have a service that gets users from DB and creates a file from them. It can be different types of files (SCV, XML, etc). import java.io.File; import java.util.Iterator; public class MyService { private final EventsDao eventsDao; private…
Pavel Petrashov
  • 1,073
  • 1
  • 15
  • 34
0
votes
0 answers

Unity C# - Liskov Substitution Principle

I was rewriting some code to practice SOLID and I think my code is failing the Liskov Substitution Principle. I don't know if this code is correct, can someone help me? That code was created to control camera rotation, position and orientation for a…
0
votes
1 answer

DDD Changing Validation Const in Value Objects Dynamically

I have an Age Value Object which validates age betweens 2 const ( MinimumAge and MaximumAge ) At some point i want to be able to change this min and max range dynamically without editing code after project got published ( for example reading it from…
0
votes
0 answers

Should Otp verification happen in a standalone api endpoint or in the actual action api

I have a mechanism to generate and verify otps in my mobile app backend and not sure what the best way to design the api structure is, should the otp generation, otp verification, and the actual action api (for example: process payment) each be…
0
votes
0 answers

Dataclasses for arguments of methods in dependency injection principle

I have the following project structure: |__workspaces | |__db | | |__create.py | |__graphql | | |__mutations.py | | |__interfaces.py In graphql.mutations I have create mutation which create multiple workspaces: class…
Prosto_Oleg
  • 322
  • 3
  • 13
0
votes
0 answers

Implementing Dependency Inversion & Dependency Injection both together by defining structure

I have subcategories defined under Vehicle Class as :- Bike Car truck bus Further, there are different variants under each four categories Bike :- sport, standard Car :- sport, standard, electric 3.Truck :- Mini Truck , Power Truck Bus:- Mini Bus,…
0
votes
2 answers

api_view['POST', 'GET'] against SOLID principles?

It's not a problem I'm facing its just an open discussion. in Django Rest framework we declare a decorator @api_view[] and it take an argument like POST GET PUT DELETE in my case I'm allowed to put more than one argument in the decorator and make…
0
votes
1 answer

How to apply the principle of dependency inversion in the provider?

I want my project to follow the SOLID principles, and for that I want to know if the coupling that is always seen between the UI and the providers in various tutorials is something that violates the principle of dependency inversion or not. I…
Lucas Tomic
  • 62
  • 2
  • 14
0
votes
0 answers

MVC - Trying to use Interface Segregation Principle in my project (SOLID)

I have a method that is responsible for uploading files when trying to add a product. The problem is that I don't use Interface Segregation Because in the method I only use one property that belongs to the product and not all of it as an…
0
votes
0 answers

How Implement IOC in a Go project

I'm trying to implement some of the best code practices in a Go project, and I know that Go have he particularities, but I think that I'm found the right way to do it, but have one point that bother me. I create a repository package with an…