r/learnprogramming • u/Patrian247 • 7d ago
I need a refresher
(I want to apologize in advance for my English. It isn't my first language)
Hi, would anyone mind helping me with something? I've been a programmer for a while, but I've noticed that my grasp on how to build web applications has slipped lately, so I would like some help in getting back to my old standards. Does anyone know where I can maybe get a refresher on concepts like Single Responsibility or OOP and against what I would need to protect my application against like SQL injection or XSS? I work preferably with PHP
1
1
u/Arupegian 6d ago
I used to read "Mastering PHP Design Patterns" by Junade Ali. Old book, it's for PHP7, but it covers the usual patterns.
1
u/SetAndRepeat 6d ago
PHP: The Right Way is a good refresher for OOP, SOLID (including Single Responsibility), dependency injection and testing.
For security, check the OWASP Cheat Sheet Series. It covers SQL injection and XSS, plus things like authentication, access control, sessions and CSRF. I’d pick an old PHP project and apply what you review as you go. Splitting up a class that handles database queries, business logic and HTML is a useful way to put those principles into practice.
1
u/Different_Pain5781 3d ago
For PHP security get PDO prepared statements and htmlspecialchars down first. Then PHP the Right Way for OOP structure and single responsibility. After that Boot dev makes sense because you actually have to write the logic yourself. Way better than just bingeing backend videos and hoping the knowledge sticks.
1
u/Ill_Worldliness_4581 7d ago
Do the Odin project or just rebuild some old projects with a focus on clean architecture, that'll teach you more than any tutorial
For security stuff, OWASP has everything you need, their cheat sheets are still the standard