Comment

Comment by dgivney

> The issue isn’t what can be done in PHP, it's what PHP encourages by default:

Lets break this done.

> global state,

PHP is stateless.

> poor encapsulation,

Encapsulation in PHP is mostly consistent with Java.

> inconsistent APIs,

PHP is written in C and an original design decision by those C programmers was to make the APIs consistent with libc.

> and difficult-to-enforce discipline.

Its very easy to enforce. All modern projects would run tools like Pint, Phpcs & Phpcbf to enforce their code standards and preferred style in their CI Pipeline.

parent dgivney 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton