Coder Social home page Coder Social logo

Introduce static analysis about flynt HOT 3 CLOSED

flyntwp avatar flyntwp commented on May 26, 2024
Introduce static analysis

from flynt.

Comments (3)

szepeviktor avatar szepeviktor commented on May 26, 2024

I suspect Flint is intended for WordPress theme developers who are not really into OOP - although they are really professionals as they earn money by manufacturing themes.

from flynt.

domtra avatar domtra commented on May 26, 2024

Hi @szepeviktor,

thanks for bringing this up.

At the moment we are distinguishing most PHP functionality in to two types. One type is PSR-4 auto-loadable and the other always require. The ./lib folder is auto-loaded with PSR-4. Thus this should not have any side-effects. The './inc' folder is basically just an extension of your regular functions.php. Instead of slamming everything in there, we split things up into logically separated files.

Adding php-stan to flynt would be nice, but in a WordPress environment where you have concepts that go against modern PHP ways, you have to do a lot of extra work to reliably use it.

Also, we want to make the barrier of entrance as low as possible. A WordPress developer should not need to learn a new style of coding, just to be able to use our component based approach and enjoy its benefits.

from flynt.

szepeviktor avatar szepeviktor commented on May 26, 2024

in a WordPress environment where you have concepts that go against modern PHP ways

👍

from flynt.

Related Issues (20)

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.