what-is

  1. Andrew

    What is the difference between Dark Web, Dark Net, and Deep Web

    There are many terms when talking about the light and dark parts of the Internet, but their definition is quite simple. Lightnet The websites and social networks that average users are familiar with can be called in different ways: Indexed Web Indexable Web Lightnet Surface web Visible Web 🕵️...
  2. Andrew

    What is PHP CS Fixer and how it can help you keep your code cleaner

    What is PHP CS Fixer PHP CS Fixer stands for PHP Coding Standards Fixer. This is a tool that fixes your code to follow standards. There are various PHP coding standards that you can follow, such as the popular PSR-1, and PSR-12 published by the PHP Framework Interoperability Group (the full list...
  3. Andrew

    What is the difference between POST and PUT?

    The difference between POST and PUT according to RFC According to RFC 2616, § 9.5, POST is used to create a resource: According to RFC 2616, § 9.6, PUT is used to create or replace a resource: Let's find out which HTTP method should be used to create a resource. Or should both be...
  4. Andrew

    What are Idempotent HTTP methods?

    Idempotent HTTP methods An idempotent HTTP method is a method that can be invoked many times without different outcomes. It does not matter whether the method was called only once or ten times. The result should always be the same. Idempotency essentially means that the result of a successfully...
  5. Andrew

    What is the difference between Design Patterns and Design Principles?

    Design Patterns Design Patterns are techniques for how to design and architect your code. They are low-level solutions related to the implementation to real-world problems that arise again and again, so instead of inventing the wheel, we follow design patterns that are well-proven, tested by...
  6. Andrew

    What is the difference between Unix and Linux?

    Today, Linux is in great demand. You can see its use everywhere, on servers, desktops, smartphones, and even some electrical devices such as refrigerators. Some people consider Unix and Linux as synonyms, but that is not true. Let's take a closer look. Unix Before Linux and Windows, the...
  7. Andrew

    What is the difference between Service Classes and Traits in PHP?

    Service Classes A service class is a class that performs some business logic that you want to use in various places. It is any PHP object that performs some sort of a "global" task. When code does not naturally fit into one class or another nicely then you have a candidate for a service. For...
  8. Andrew

    What are Invokable Controllers? (controllers with one specific action)

    Definition Invokable Controller is a controller that contains only one (__invoke()) method. The __invoke() method is a magic method that is called when a script tries to call an object/class as a function. Invokable controllers come in handy when you need to create a controller that does one...
  9. Andrew

    What is the Linux /tmp directory?

    The Linux /tmp directory The /tmp directory in Linux-based systems contains the necessary files that the system temporarily needs, as well as other software and applications running on the machine. For example, when you are writing a document, all the contents of that document are saved as a...
  10. Andrew

    What is the difference between hasOne/hasMany and belongsTo/belongsToMany relation?

    The only difference between hasOne/hasMany and belongsTo/belongsToMany is where the foreign key column is located. hasOne and hasMany - you are telling Laravel that this table does not have the foreign key. belongsTo and belongsToMany - you are telling Laravel that this table holds the foreign...
  11. Andrew

    Overview of the Active Record Pattern

    Definition The active record design pattern (considered an architectural pattern) is an approach to accessing data in a database. The active record is an object that wraps a row in the database table or view, encapsulates the database access and adds domain logic on that data. An object carries...
Top