Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript Datei in mehrere aufteilen, um es übersichtlicher zu machen #37

Closed
sthuber90 opened this issue Oct 22, 2013 · 3 comments
Closed

Comments

@sthuber90
Copy link
Collaborator

Wir sollten die JavaScript Datei möglichst clever in mehre Dateien aufteilen, um den Code insgesamt übersichtlicher zu machen. Da wir nun schon bei über 600 Zeilen Code sind und noch einige dicke Brocken vor uns liegen.

Ist bisher im Laufe der zweiten Code Review angedacht. Falls es nötig wird auch schon früher.

Was meint ihr? Gut? Nicht so gut? Auf keinen Fall?

@paedae93
Copy link
Collaborator

Kann man schon machen. In eine Datei die functions und in die andere die $(document).ready(). Wie man es dann noch weiter sinnvoll aufteilen kann weiss ich dann aber auch nicht.

@fr3ddy
Copy link
Owner

fr3ddy commented Oct 23, 2013

jo also wenn dann würd ich logisch trennen nicht nach document ready etc sondern sagen

"Login.js" -> alles was login is (auch die docuemnt.ready())
"pipoi.js" -> alles pipoiige 💃
also so fänd ichs besser!
weil dann muss man nicht wenn man an einem thema arbeitet in 2 verschiedenen files rumscuhen!

@ghost ghost assigned paedae93 Oct 23, 2013
@sthuber90
Copy link
Collaborator Author

Ok, machen wir dann in der nächsten Code Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants