cedx, French
@cedx@mastodon.social avatar

How stupid! PER Coding Style 2.0:

2.4 Indenting
Code MUST use an indent of 4 spaces for each indent level, and MUST NOT use tabs for indenting.

https://www.php-fig.org/per/coding-style/#24-indenting

#PHP #Accessibility

ramsey,
@ramsey@phpc.social avatar

@cedx You can choose to ignore certain parts of the style guide and apply your own rules.

This is an historical artifact, and I bet the group would be willing to change it, but they need someone who will present it with arguments and evidence to back it up, follow the process in the bylaws, and bring it to a vote.

Crell,
@Crell@phpc.social avatar

@ramsey @cedx A few people have anecdotally claimed tabs are better for accessibility, but I've never seen any actually evidence that it's true or why. Absent that, changing a standard that was always the majority of the ecosystem makes little sense.

If there are studies on this topic, please do share. I'd like to see them.

tobiaskoengeter,
@tobiaskoengeter@sueden.social avatar

@Crell @ramsey @cedx I once read a good argument in favour of tabs, shared by Fabien Potencier, but not from him: with tabs you can determine the degree of indentation yourself, similar to line spacing. This option could help people with visual impairments. A really strong argument from my point of view!

ramsey,
@ramsey@phpc.social avatar

@tobiaskoengeter @Crell @cedx This is the argument many make for tabs over spaces.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines