Comments (6)
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.
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.
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.
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.
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.
Let's close this for the time being and discuss it in the next devsprint.
from serendipity.
Related Issues (20)
- when could we use Serendipity 2.4-beta1 HOT 4
- serendipity_plugin_comments/: Fatal error: Uncaught TypeError: mb_strrpos(): HOT 3
- Upgrade bundled michelf/php-markdown in serendipity_event_markdown for PHP > 8.0 compatibility HOT 11
- Warning: Undefined array key "entries" in * HOT 6
- function strftime is deprecated (php 8.1) HOT 5
- 'Undefined array key "id"' warning in comments.tpl.php on preview with PHP 8 HOT 1
- [serendipity_event_twitter] feature request: support fediverse HOT 1
- Translation
- Translation HOT 1
- Uncaught ArgumentCountError: 4 arguments are required, 2 given in [path]/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php:1070 HOT 3
- Much stronger defenses needed against aggressive persistent comment-spamming HOT 6
- Serendipity 2.4.0 version does not work on PHP 7.0 HOT 2
- Quicksearch vanishes HOT 4
- s9y current master: language constants already defined HOT 15
- PHP 8.1/8.2 warnings and errors HOT 2
- serendipity_event_multilingual: not compatible with PHP 8 HOT 9
- Javascript-Library broken? HOT 9
- New directory of sub-directory is not getting showed HOT 2
- Net_DNS2 from 2.4.0 is not compatible with PHP8 HOT 5
- fatal error for strftime with comments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serendipity.