The structure of PHP/Web Application coding.



I have been programming PHP for a while now and always seem to run
into the same problem when working on more than trivial apps. Most of
my coding is for personal projects anyway so it really isn't a big
deal but I hopefully plan on doing more serious coding in the future.

My problem is that as I code and the app grows ever larger, I always
feel like I am digging myself a hole I can't get out of in the end. My
code is alright, readable and not too bad to debug but I always get
that feeling like I shoul d be re-considering my design choices now or
I might really be in trouble later.

Do you guys ever get to that point? If not, how do you avoid it?

I know that with the right amount of planning anything can be
accomplished in a reasonable amount of code/time. I guess what I
really want to know is if there is any kind of code strategies that
work well when designing an application.

I've read a lot about Design Patterns (Factory, AbstractFactory) and I
just can't seem to think far ahead enough in my code to be able to
implement these patterns succesfully.

Are there any sites which clearly give examples on how to design
medium to large applications that are scalable/simple... or am I just
still too new to the game and just need to practise my coding a lot
more?

Thanks

.



Relevant Pages

  • Re: The structure of PHP/Web Application coding.
    ... into the same problem when working on more than trivial apps. ... deal but I hopefully plan on doing more serious coding in the future. ... I've read a lot about Design Patterns ...
    (comp.lang.php)
  • Re: Is top-down design feasible for a coffee-break roguelike?
    ... fundamental design decisions should be settled before doing coding.. ... is strongly linked to the game mechanics itself. ... but simply because it assumes diagonal movement is disallowed. ...
    (rec.games.roguelike.development)
  • Re: truly-optimized coding styles & design patterns in C#?
    ... grokking design patterns but try to find practical examples of each pattern ... apps you've written and seek out the simplest and most elegant ways to ... creating a small utility app vs coding something that has to fit into ... > exceptions classes, none of that. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Commenting the source code.
    ... > Do you comment your source code while coding or after coding. ... break down the design to be more specific ... write, document, compile and debug debug fuctions. ... Whereas successfull means dedect bugs, ...
    (comp.lang.c)
  • Re: DAB+ to use UEP - Homer Croiset exclusive
    ... the spec to be released to find out what the new error correction ... correction coding. ... called me an idiot for being stupid and not understanding economics. ... You don't design a ...
    (alt.radio.digital)