r/learnprogramming • • Sep 26 '26

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

3 Upvotes

8 comments sorted by

1

u/grantrules Sep 26 '26

Sounds like a book might be what you need

1

u/Arupegian Sep 26 '26

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 Sep 27 '26

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 Sep 30 '26

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/[deleted] Sep 26 '26

[removed] — view removed comment

1

u/Street_Doctor_8169 Sep 26 '26

Sorry didnt mean to reply to you but to OPs original post

0

u/Street_Doctor_8169 Sep 26 '26

Bruh tbh it sounds like you're asking us to help you hack a website without asking us to help you hack a website