Giter VIP home page Giter VIP logo

Comments (6)

mattsches avatar mattsches commented on May 31, 2024

I wouldn't want to reformat all files to PSR-2, even though there are tools for this. But we could use this coding standard for any new things (whatever that means). I adhere to PSR-2 in more or less all my personal projects and think that it makes code more readable.

from serendipity.

yellowled avatar yellowled commented on May 31, 2024

I'm a fan of coding style guides in teams, I use editorconfig, and most of this doesn't concern me anyway since it's PHP only.

But.

I don't know if this is “common sense” among PHP coders or actually pretty strict. However, as a small project which could always use more help, we might always want to consider that this might scare off people from working on S9y. I'm not sure if the benefits of a coding style guide like this outweigh the possibility of limiting our developer base.

from serendipity.

ophian avatar ophian commented on May 31, 2024

Ah - nice tool, didn't know that, Thanks YL,

I agree to all said. I just wanted to have that starting to get discussed and may be forwarded into future.

from serendipity.

mattsches avatar mattsches commented on May 31, 2024

In the BOOK it says on page 699

Grundsätzlich sollten Sie sich bei der Programmierung an die PEAR-Coding-Standards halten.

So, up to now we actually already had coding standards, although Garvin didn't enforce them too strictly. Which is a good thing for the reasons mentioned above. Nevertheless, they could serve as guidelines on how to write cleaner code. I totally don't like the PEAR coding standards, but I at least tried to follow them a little bit ;)

Oh, and concerning tools, every decent IDE should have a setting to enable coding standards imho…

from serendipity.

yellowled avatar yellowled commented on May 31, 2024

The point about editorconfig is that editors and IDEs supporting it can just read the .editorconfig file of a project to set all the relevant settings without any manual tweaking. It is quite comfortable, albeit completely useless if someone uses an editor or IDE which doesn't support it.

from serendipity.

yellowled avatar yellowled commented on May 31, 2024

Let's close this for the time being and discuss it in the next devsprint.

from serendipity.

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.