Git Product home page Git Product logo

best-practices's Introduction

TheCodingMachine Best practices

This repository contains the best coding practice website of TheCodingMachine.

Website URL is https://bestpractices.thecodingmachine.com

The website is statically generated using Couscous.

Find a typo or an error? Do not hesitate to submit a pull-request.

How to contribute

Setup

The site generation is working under PHP 8.1 and Node 16.

You will need to install bower and gulp using the following commands:

npm install -g bower gulp

Then, install the dependencies:

composer install
npm install
bower install

Run the website locally

Compile the assets:

gulp

Then run the website locally with:

vendor/bin/couscous preview

best-practices's People

Contributors

andrew-demb avatar baijunyao avatar colshrapnel avatar dependabot[bot] avatar fooriva avatar homersimpsons avatar jdreesen avatar joolsmcfly avatar moufmouf avatar nguyenk avatar powerkiki avatar pribeirojtm avatar robertomulabi avatar shadyan avatar tekkcraft avatar thibbal avatar xhuberty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

best-practices's Issues

Jump to top

Hello

The red jump to top butten on the lower right won't work.
(If you scroll down on this page for example.)
I've tested it on FireFox 54.0.1 (32-Bit) and Chrome 59.0.3071.115 (64-Bit).

Kind regards
Tekk

pass param to construct

hi,
i write a class like that:
class SERVICE{ public function __construct($a, UserRepository $repository) { $this->repository = $repository; $this->relations = [['\Api\Users\Models\Client', 'clients', '$a']]; $this->events = [ ]; } ... }

and i used those class like that:
use SERVICE; class TEST{ public function __construct(SERVICE $service) { $this->service = $service; } }
and i have error:

Unresolvable dependency resolving [Parameter #0 [ $a ]]

how can i sen parameter in this way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.