Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 16.11.06 19:29 
Ich habe Probleme beim richtigen Softwaredesign, sprich, die ricbtige/optimale Einteilung in Klassen. Gibt es da Literatur?
Es geht da speziell um unsere Schulwebsite. Wenn ich z.B. News verwalten lassen möchte, dann müssen die ja aus der DB gelesen werden. Packe ich das in eine Methode der Klasse News oder mache ich das außerhalb einer Klasse:
ausblenden Quelltext
1:
if ($mode == 'news') //News ausgeben;					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Tilo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1098
Erhaltene Danke: 13

Win7 geg. WInXP oder sogar Win98
Rad2007
BeitragVerfasst: Do 16.11.06 20:08 
Kommt ganz drauf an was für News auf der Seite veröffentlicht werden.
Bei einer Schulseite fallen doch nicht so viele News an, oder täuscht mich meine Erfahrung? Bei wenig Nachrichten ist eine DB unnütz. Man kann die News auch Manuell in die Seiten eingeben.
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 16.11.06 20:10 
user profile iconTilo hat folgendes geschrieben:
Kommt ganz drauf an was für News auf der Seite veröffentlicht werden.
Bei einer Schulseite fallen doch nicht so viele News an, oder täuscht mich meine Erfahrung? Bei wenig Nachrichten ist eine DB unnütz. Man kann die News auch Manuell in die Seiten eingeben.

Die DB ist fest. Daran wird nicht mehr herumgerüttelt! ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Tilo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1098
Erhaltene Danke: 13

Win7 geg. WInXP oder sogar Win98
Rad2007
BeitragVerfasst: Do 16.11.06 20:44 
Berachtigte Frage:
Möchtest Du ein Programm schreiben, mit welchem die Seiten erzeugt werden?
Wenn ja kapsele alle Methoden und Eigenschaften News betreffend in eine separate Klasse.
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 16.11.06 20:58 
user profile iconTilo hat folgendes geschrieben:
Berachtigte Frage:
Möchtest Du ein Programm schreiben, mit welchem die Seiten erzeugt werden?
Wenn ja kapsele alle Methoden und Eigenschaften News betreffend in eine separate Klasse.

Kein Programm, ein Script (PHP). ;)
Gut, mache ich.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot