You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guidelines are meant to remain open issues, just for contributors information.
The Black Box pattern used in Views.py is a little bit weird.
For instance, header is built as soon as the file is loaded and its construction calls $('#app-bar a') which requires the DOM to be fully loaded.
Actually, using foo = (function() { return 'bar' })() seems strictly equivalent to foo = bar for me. This trick can be used when you need the whole file to be read before starting to execute it or to limit the scope of some variables but here it is not the goal.
Guidelines are meant to remain open issues, just for contributors information.
The Black Box pattern used in
Views.py
is a little bit weird.For instance,
header
is built as soon as the file is loaded and its construction calls$('#app-bar a')
which requires the DOM to be fully loaded.Actually, using
foo = (function() { return 'bar' })()
seems strictly equivalent tofoo = bar
for me. This trick can be used when you need the whole file to be read before starting to execute it or to limit the scope of some variables but here it is not the goal.You may read the Black Box guideline again.
The text was updated successfully, but these errors were encountered: