A
A
Alexey Nikolaev2017-03-16 14:17:32
PHP
Alexey Nikolaev, 2017-03-16 14:17:32

Why is adding a prefix indicating the file type (interface, class) not common?

Good day.
Personally, I find it great practice to name interfaces and classes like {className}.class.php, {interfaceName}.interface.php (or at least i{InterfaceName}.php). However, in PSR, in standards from php.net itself, and even in projects like Yii and Laravel, I see abstractions and implementations piled up. Go figure out where the interface is, and where is the implementation! Damn break your leg.
Is this good practice? Or, gritting your teeth, follow the standards, where there are not quite adequate things (a ban on under_score in method names, for example)? If this is bad practice, then why not do it?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
he he, 2017-03-16
@tosha_lol_daaa

poke

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question