in reply to Re (tilly) 8: Code Critique?
in thread Code Critique?
dreamweaver, what is that? lol
Examples 2,4,5,6,7, and 8 are not the same sort of problem. For example... a phone book and the phone numbers people have can come out of the same database. You have two representations of some data. That is not at all the same type of problem as having data, and processes. I think it's consistent with general programming rules to seperate the data for the processing. That is why we have databases instead of self-modifying programs, isn't it? I doubt the phone company is setting the phone number in the code that generates the phone book. I would imagine they have that defined in seperate files.
Another implementation example is, if you're writing an operating system, your code might have lots and lots of constants hard coded in. If you're writing a user interface, you probably want to move those into a config file.
--
Snazzy tagline here
|
|---|