Hey everyone,
How do you organize your code? I code in objected oriented PHP and I often find my self shuffling around my files during development because it gets pretty messy(I don't use a framework btw).
I tend to create classes for my display files(functions that output HTML) and put them in one folder, the program logic (database connections, if statements) in another folder, and finally the interface(I/O, what did the user click on a certain page) in a final folder.
Does anyone do something similar? Am I organizing code properly? And what do you guys recommend for a more structured/clean development organization-wise?
I'm curious to hear your thoughts.
Thanks.
How do you organize your code? I code in objected oriented PHP and I often find my self shuffling around my files during development because it gets pretty messy(I don't use a framework btw).
I tend to create classes for my display files(functions that output HTML) and put them in one folder, the program logic (database connections, if statements) in another folder, and finally the interface(I/O, what did the user click on a certain page) in a final folder.
Does anyone do something similar? Am I organizing code properly? And what do you guys recommend for a more structured/clean development organization-wise?
I'm curious to hear your thoughts.
Thanks.
Comment