I am new to PHP, and writing code is very slow. It takes 2 hours to write a function (continuously modify it until it is optimized and perfected). After you finish writing, come back and look at the code you wrote. It should take you 10 minutes to write it.
This has always been the case, what should I do? Hope to impart experience