Account at git.friendi.ca


@Friendica Developers Is there someone with admin privileges from git.friendi.ca? I've tried registering my account many times but I never received the activation email so I cannot activate my account. I already tried it with different emails, looked into spam and so on.

Could someone please activate my account "Art4" or check why I don't receive any emails? Thank you!

teilten dies erneut

Hello !Friendica Developers,

I'm testing my Friendica test instance on my server. I noticed some flaws and bugs and reported them on Github. While looking at the code I think there is some minor and major refactoring needed. Where is a good place to meet some maintainers like @Hypolite Petovan to talk about the roadmap? Is this group the best place?

Friendica Developers hat dies geteilt.

Als Antwort auf Michael Vogel

@Michael Vogel

Some first thoughts are:

  • fix composer autoloading warnings
  • improve composer autoloading in dev getcomposer.org/doc/articles/a…
  • introduce static code analysis with PHPStan (min. level 2)
  • improve unit tests and mocking (they should run without database or other dependencies)
  • replace (if possible) assertEquals() with assertSame() in tests

This will show us the places that need urgent refactoring. It will improve the parameter and return types and might fix many PHP notices/warnings/errors.

@Hypolite Petovan @Friendica Developers

Friendica Developers hat dies geteilt.

Als Antwort auf art4 test-account

@art4 @Friendica Developers @Hypolite Petovan this sounds like a reasonable plan. Since you introduced yourself, I possibly should do this as well. I'm no professional PHP developer. I'm working with a different language at work which isn't object oriented. So on the one side I'm a professional - and a rookie on the other side. I still struggle with some concepts in my friendica.
Als Antwort auf art4 test-account

@art4 @Michael Vogel This list looks similar to the one I made for myself half a dozen years ago, and feels extremely ambitious to me. My advice would be to pace yourself, you're dealing with an extensive codebase with a lot of legacy features.

For example, the local Composer binary cannot be upgraded to version 2 because of our reliance on fxp/composer-asset-plugin that enables us to manage frontend dependencies from Composer as well. No version of this plugin exists for Composer 2 and the author has been redirecting people towards one of his more recent projects that inverts the hierarchy by making Composer dependencies available from npm (if I understood correctly).

Similarly, over the past 5 years, I've done some static code analysis and fixed hundreds of warnings using PHP Scrutinizer but I had to stop because of the false positives (see github.com/friendica/friendica…). Similarly, PHPStan will not be happy with many of the remaining legacy files (mainly in the mod/ folder).

Database-less tests would be great, I wouldn't have any idea where to start. @Philipp Holzer did a great job creating the current test framework but any improvement is welcome.

Als Antwort auf Hypolite Petovan

This list looks similar to the one I made for myself half a dozen years ago, and feels extremely ambitious to me. My advice would be to pace yourself, you're dealing with an extensive codebase with a lot of legacy features.

Don't worry, I'm doing this for many years now and I love it. The trick is to establish processes to reach an minimum code stability. New code must reach this minimum standard and old code can be improved step by step. PHPStan makes this easy with little gamification to reach the "levels" starting with 0.

or example, the local Composer binary cannot be upgraded to version 2 because of our reliance on fxp/composer-asset-plugin that enables us to manage frontend dependencies from Composer as well. No version of this plugin exists for Composer 2 and the author has been redirecting people towards one of his more recent projects that inverts the hierarchy by making Composer dependencies available from npm (if I understood correctly).

No problem, I already created a PR for this problem: github.com/friendica/friendica…

Similarly, over the past 5 years, I've done some static code analysis and fixed hundreds of warnings using PHP Scrutinizer but I had to stop because of the false positives (see github.com/friendica/friendica…). Similarly, PHPStan will not be happy with many of the remaining legacy files (mainly in the mod/ folder).

I already started the refactoring with PHPStan level 0, see github.com/friendica/friendica…

About the folder "mod" and "mods" I'm sure we will find a way to move them into the "src", "view" and other folders.

Database-less tests would be great, I wouldn't have any idea where to start. @Philipp Holzer did a great job creating the current test framework but any improvement is welcome.

The given tests are a great start for me improve and to familiarize myself with the code. I already have some improvements for the tests in mind.

Friendica Developers hat dies geteilt.