DEV Community

Discussion on: Create a Netflix clone from Scratch: JavaScript PHP + MySQL Day 40

Collapse
alexkapustin profile image
Oleksandr

Jesus Christ....

I understand that this is hard and time consuming work. But In my opinion information in these articles (actually i just checked first 15 minutes of current "lesson") is more harmful then useful.

Author should follow best practices and recommendations to deliver good quality code and teach others the same. And of course learn this as well all along the way.

  1. Formatting. It's really important. Please check PSR-12. You can setup PHP sniffer to highlight "code formatting errors"
  2. You probably better to use some framework, it's flexible, requires less time for basic stuff and you will have more time to actually do things you want to achieve. 2.1: if you don't want to use framework to whatever reasonable reason - you can use microframework, e.g slim. 2.2 in worth case scenario, build your own framework, but you should use best practices and recommendations, such as PSR-7, PSR-11, PSR-3, PSR-4, and so on 3 if you use framework/microframework it will be easier but still: you must not mix html and PHP code. It's just non practical, impossible to write tests and easy to lost in such code
  3. Write tests along your development it will help to don't break stuff too often. 5...

With at least these things done I believe you will have much more subscribers and people will see you as a specialist and you work will be more valuable

Thanks,

Collapse
cglikpo profile image
Christopher Glikpo Author • Edited on

@oleksandr ,thank you for taking your time to review my work.I really appreciate it.I will work on that.

Some comments have been hidden by the post's author - find out more