|
|
|
|
|
by childintime
3009 days ago
|
|
The file has 78 lines, defines no functions, and performs and documents a well defined single task. It is significant as a learning resource, and useful by itself to interface a webapp to a local file-system. It is written in idiomatic old-style PHP. There is a lot to like and it is easily digestable. Then someone comes along and says it should be more complicated. |
|
Then what if you want to add a Twilio library? But then the original author updates the single file, and you want to pull the changes? Very complicated.
Every good software project is concerned with maintenance, not writing the fewest lines or having a single file.
Also, as someone who has written PHP for 20 years, I don't know what "idiomatic, old-style PHP" could mean other than "bad code".