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
0 answers

How can I use Python to delete video frames that contain solid blue?

I am looking for some Python guidance regarding video editing. I help people convert their VHS movies to Digital and I edit out the empty spaces ect. Normally I use a video editor to skim through the video and find all of the empty solid blue frames…
0
votes
1 answer

How to write code correctly following the principles and conventions of coding in such situations?

In my applications, users can buy services on the following route POST /api/orders/services I have created 2 entities in db: "orders" table for ordering and billing id amount methodId The "order_services" table for storing additional parameters…
No Name
  • 13
  • 3
0
votes
2 answers

How to properly change value of a field that exist in parent and child object

So i have a parent class Warrior and a Knight class that extends Warrior. Instructions in tasks says Warrior has 2 fields: int health = 50, int attack = 5 Knight must have attack amount of 7. How to properly change Knight "attack" field without…
Fellou98
  • 15
  • 6
0
votes
1 answer

Protocol in property, error Protocol can only be used as a generic constraint

I'm trying to make an inheritance generic case and i've been done in Dart and it worked like this: // DART class Car implements Vehicle { EngineInterface? engine; StorageInterface storage; Car({ required this.engine, …
Seishin Okigaru
  • 391
  • 1
  • 4
  • 13
0
votes
1 answer

What should I do with error/successful messages in Laravel service classes

I'm writing an AuthService and I don't know how should I show the output. I decided to throw an exception for errors and a simple array for successful messages. I want to know if it's okay or there is a better way. Let's say we have a function that…
Ali
  • 185
  • 11
0
votes
1 answer

Shared part of game logic on server and client

I am creating online collection card game. I have game logic on my server. But this part of code contains concepts which need on server and client. For example HexVector, HexSlot, some enums etc. Player can click on game field and I have to send…
0
votes
1 answer

How to correctly handle laravel form?

I want to correctly handle user store form. I consider which patter will be the most correct/popular. It is repository pattern? Service pattern? Another difficulty: User form: name, email, postal code, city, street. I want to create two models in…
xbiu
  • 33
  • 1
  • 9
0
votes
0 answers

NodeJs + Mongoose , overall question about programming good practices

NodeJs + Mongoose code snippet Hello, I am curious is it a good practice to have a method where you pass an object/model lets say "filters" class from where you can build an query or use it to create an query so you can obtain your DB…
takeo
  • 1
  • 1
0
votes
0 answers

Does the composite design patterm adhere the principles of SOLID (spacialy the L and the I)?

Does the composite design template adhere to the principles of solid? if all the compositing method are declared at the component its violation of the Interface Segregation Principle. if compositing method are declared at the composite its violation…
0
votes
3 answers

How change object type, when child inherit from same parent but have difrrent method and props

In college I got task to do. I have simple program like below. I have one parent class who represent person, and few child which inherit from it and represent role(Archer, Knight, Wizzard). I must implemented funcionality to easy switching object…
0
votes
1 answer

I need to understand how to use a strategy design on a project PHP Project?

Note: it's a PHP Project I have a situation where i use 2 API providers for my project. They are like similar with what info they (API) provides. I must set this right way since maybe tomorrow there will be some more APIs added. So my project will…
0
votes
1 answer

Does this violates open/closed principle?

I made a webapi with .NET Core and I have a "Startup" class. This class has a "ConfigureServices" method that says: // This method gets called by the runtime. Use this method to add services to the container. But every time i add a new service, i…
Andrews
  • 33
  • 6
0
votes
2 answers

Dependency injection in MVC, Swift

I'm building a simple app following SOLID principles and MVC architecture. I want to parse images from server in my NetworkClass and to show them inside CollectionView in my ViewController. Here is my View Controller: protocol NetworkServiceProtocol…
MaryLitv21
  • 379
  • 1
  • 12
0
votes
1 answer

HRMS Project - Process of Adding CV

I'm coding a Human Resource Management System and I'm trying to make process of adding CV. In backend (Java) I got a ResumeHead class that includes fields of id, coverLetter, createdAt etc. and also it has a field "private List resumeLanguage;" like…
0
votes
1 answer

React Hook error when loading Solid webId profile

I'm trying to use Solid's react-components to load a user's profile from their webId. I'm running into a problem with useLDflex(). There problem seems to be something to do with React Hooks, but I can't figure it out. My goal is to load the user's…
user3320795
  • 523
  • 2
  • 6
  • 17