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

How to assign a subclass to a SIOC Forum in RDF?

I'm using rdflib to store a new SIOC:Forum on a SOLID POD. https://www.w3.org/Submission/sioc-spec/#sec-modules-types states that a SIOC:Forum can have the subtype/subclass of ChatChannel. How do I model my turtle (.ttl) request to store this…
Philipp Gfeller
  • 1,167
  • 2
  • 15
  • 36
-1
votes
2 answers

Is it possible to strictly comply with Liskov's principle with interfaces?

I keep digging into Liskov's principle and although I have managed to understand it, I have a doubt... the definition tells us that to comply with Liskov's principle, the parent class must be able to be replaced by the child classes without having…
Ludiras
  • 338
  • 3
  • 20
-1
votes
1 answer

Is possible to transfer ownership of an erc20 contract to another?

I am thinking of investing in a new erc-20 token that looks good but it seems that the developers are connected with some fraudulent coins. The Dev says that scammers are creating smart contracts and transferring ownership of the fraudulent…
-1
votes
1 answer

Is true way use function for create instance and use it?

To Attention DRY principle, I want to know is true define a function to return instance of class or no! You suppose we have a class and create instance many times in code, Is it better create instance it any time or define a function and use…
ImanX
  • 789
  • 6
  • 23
-2
votes
1 answer

How I can save image with using a best practices in Laravel (php)?

I have a code with saving a article. With my article I have a photo ('img'), which I want to add to Model Article in field 'img'. How I can do it with using a best practices in Laravel? ArticleController: public function __construct(Article…
Klipe_LD
  • 31
  • 3
-4
votes
1 answer

Does this class violate SOLID's single responsibility principle?

Is a class that contains a connection method and methods that do select, insert, update, delete, a violation of the single responsibility principle? class Database: def create_connection(self, url): ... def select(self): ... …
Lucas Emanuel
  • 470
  • 2
  • 10
1 2 3 4 5
6