Giter VIP home page Giter VIP logo

engineering-best-practices's People

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

Watchers

 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  avatar

engineering-best-practices's Issues

Composer tips and suggestions

  • How to update just one dependency?
  • Explain how version constrains for packages in composer.json impact the results of composer update.
  • Suggest pinning packages to exact versions to avoid accidental updates. Explain how to do major version updates when dependencies are pinned.
  • Don't run composer update when you don't want to update all dependencies.
  • ...

Grammar in Project Structure > Modular Code > Themes

In order to modify this run-on sentence, my suggestion is that we change:

Take a look at our Config-Driven WP project for some (dated) examples for a common approach we take for normalizing the theme's configuration into a config.php array which then be cleanly merged with a child theme's configuration array.

to:

Take a look at our Config-Driven WP project for some (dated) examples of a common approach we take at normalizing the theme's configuration into a config.php array. The config array can then be cleanly merged with a child theme's configuration array.

Initial TOC links have a slash (/) in the url, causing 404's

The first 3 links in the Table of Contents on the Home page are leading to 404 pages. This is because the links have a (/) prior to the # tag.

The file update-toc.php needs to be updated to add a conditional (or something like that) that will remove the (/) in cases where the link simply points to an anchor on the page.

Cover functional components and hooks in React guide

The current React guide should be updated to cover the latest best practices, i.e. using simple functional components along with both built-in and custom hooks.

Hooks and functional components are becoming an important part of React apps development, slowly but surely superseding the "traditional" class components and higher-order components.

Our docs should reflect this shift, promoting the most up-to-date approach to React development.

Describe ways to pass data from PHP to Javascript

From @edmundcwm:

wp_localize_script() type-casts all values to string (as seen here) so on the JS side weโ€™d need to parse them back to the intended type.

// foo.php
wp_localize_script( 'foo-js', 'fooObj', array( 'age' => 31 ) );

// foo.js
const age = fooObj.age;
console.log(typeof age); // "string" instead of "number"

But the newer wp_add_inline_script() works differently.

// bar.php
wp_add_inline_script( 'bar-js', 'const barObj = {age: 31}' );

// bar.js
const age = barObj.age;
console.log(typeof age); // "number"

Guess this is another good reason to use wp_add_inline_script().

Create separate guide about Gutenberg development

Extending and modifying the WordPress block editor is becoming one of the common tasks nowadays.

We should consider creating a guide on how to best work with the Gutenberg codebase, taking advantage of the multitude of @wordpress JS packages, and dealing with the @wordpress/data layer.

Domain `docs.xwp.co` offline

When trying to visit docs.xwp.co I received an error that the domain was inaccessible. It has been this way for a few days now.

Just wanted to flag this as the site is a good resource that I like to share with folks. ๐Ÿ˜‰

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.