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
the NotesButton class should be a NotesManager with object-oriented meaningful ways to track the files that exist, and read and write them individually when needed, instead of erasing and re-creating every files at each change
object-oriented NotesManager singleton
no "global" functions, the world has evolved past the need for "global" functions
signals as an attribute
distinction between public and private methods
"all_notes" array as an attribute
when deleting a note, (instead of restacking the whole array,) provide the removed id as an argument of NotesManager.postDelete and rename only the files of 1 note
rewrite the spaghetti mess in noteBox.js
yeet the most useless methods
distinction between public and private methods
[ ] yeet the alternative headerbars and use modal dialogs maybe not a great UX
no need to save the metadata each time, no one care if they're lost
add a delay before saving the notes, so it freezes the computer after the notes are hidden
...more?
The text was updated successfully, but these errors were encountered:
methods from NotesManager are also sorted by "sections" that make sense
next step to be fully OOP: don't keep Z_POSITION, ALL_NOTES and GLOBAL_ARE_VISIBLE as global variables
instead of a global variable (#43)
well NotesManager is a singleton whose instance is a global variable so it's not *that* big, but it's cleaner
the GLOBAL_IS_VISIBLE global variable also becomes an attribute, which fixes a bug (when the layout setting was changed, the visibility of the notes became inconsistent)
the
NotesButton
class should be aNotesManager
with object-oriented meaningful ways to track the files that exist, and read and write them individually when needed, instead of erasing and re-creating every files at each changeNotesManager
singletonNotesManager.postDelete
and rename only the files of 1 note[ ] yeet the alternative headerbars and use modal dialogsmaybe not a great UXThe text was updated successfully, but these errors were encountered: