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
11
votes
2 answers

Difference between solid and ipfs

Tim Berners-Lee recently announced Solid. How much is this different from ipfs and will it be possible to use them together?
4
votes
2 answers

Best Practice for OOP function with multiple possible control flows

In my project, I have this special function that does needs to evaluate the following: State -- represented by an enum -- and there are about 6 different states Left Argument Right Argument Left and Right arguments are represented by strings, but…
kohrhea
  • 159
  • 7
3
votes
2 answers

How to approach Single Responsibility Principle?

I'm a hobby coder trying to improve my code. I tend to create monolithic classes and want to start being more the S in SOLID. I've done some reading on here and elsewhere, but I'm struggling to get my head around what the best approach to doing this…
stigzler
  • 793
  • 2
  • 12
  • 29
3
votes
2 answers

How to create a container in SoLiD?

I'm running a stand alone single-user v5 Node Solid Server. When I log in as that single user, I'm able to create a document in a non-existent container, and the server creates the container for me. e.g. POST…
DrTeeth
  • 927
  • 2
  • 10
  • 32
2
votes
2 answers

C# compile error trying to apply Liskov Substitution Principle

I am reading a book about Design Patterns, and there's this chapter on the Liskov Substitution Principle that says to do this (and other tasks) to achieve the principle: Parameter types in a method of a subclass should match or be more abstract…
2
votes
2 answers

Unable to catch the 'auth' event in Hub.listen while calling Auth.federatedSignIn

I am using SolidJS and building a SPA (no server rendering). For authentication, I use the @aws-amplify/core and @aws-amplify/auth packages. At the application root I call the Hub.listen function: Hub.listen('auth', ({ payload }) =>…
2
votes
2 answers

Liskov Substitution Principle Violation Rules

The purpose of inheritance is to inherit and extend. So my question is that if child class have more method that will it break the LSP ? So in my example I have 2 classes Rectangle and Square. Square is child of Rectangle. Now both have 2 different…
Navneet Garg
  • 1,364
  • 12
  • 29
2
votes
3 answers

Design pattern to avoid violating Open-Closed principle

I'm building a simple game in Java. I have a couple of classes, I omitted the fields that are not relevant to my problem: public class Character { //stores relics and artifacts public Set inventory; public void…
Mangos
  • 147
  • 1
  • 7
2
votes
2 answers

does using default methods in interfaces violates Interface segregation principle?

I'm learning about SOLID principles, and ISP states that: Clients should not be forced to depend upon interfaces that they do not use. Does using default methods in interfaces violate this principle? I have seen a similar question but I'm posting…
Mosaelee
  • 27
  • 1
  • 7
2
votes
0 answers

How to serialize any RDF data

I'm fetching various ontologies from the web and they come in a broad variety of formats. I'd like to use rdflib.js to serialize them to jsonld. The .serialize(target, kb, base, contentType, callback, options) method of rdflib takes several…
Philipp Gfeller
  • 1,167
  • 2
  • 15
  • 36
2
votes
2 answers

Save file on a solid POD

What is the preferred method to save a file, be it turtle or an image or a video etc. on a solid POD? The documentation at https://linkeddata.github.io/rdflib.js/doc/Fetcher.html is, as stated in the readme, of limited usefulness in its current…
Philipp Gfeller
  • 1,167
  • 2
  • 15
  • 36
2
votes
2 answers

Cannot find module "algorithms/RSASSA-PKCS1-v1_5" using Angular 6 and rdflib 0.19.0

I'm developing an Angular6+ solid-app (codebase). The app itself depends on: "crypto-js": "^3.1.9-1", "rdflib": "^0.19.0", "solid-auth-client": "^2.2.6", "stream": "0.0.2", "webcrypto": "^0.1.1", "zone.js": "^0.8.26" What I'm trying to do is…
sentenza
  • 1,608
  • 3
  • 29
  • 51
1
vote
0 answers

Not receiving g_csrf_token in Cookie header when Sign In with Google

I'm coding an app that requires users to connect via Google. I have a frontend running on http://localhost:3000 and the backend running on http://localhost:8000. I have implemented One-Tap and the Sign-In Button as a component in the frontend like…
1
vote
0 answers

Cannot exclude an external package from server bundle file using vite and solid plugin

It's been 2 days now that I am struggling with this issue of not being able to exclude @supabase/supabase-js and its dependancies from the final server.js file. I am using Cloudflare workers solid adapter. I've tried all possible combinations to…
ronen
  • 13
  • 2
1
vote
1 answer

Generic DAO Service using prisma js

Hi Im tryng to build a DAO class using prisma aplyng SOLID principles. The idea is to build generic functions and an abstract class so i can aply them on the diferen modules by dependence injection. So for example when i need to build my…
1
2 3 4 5 6