Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Tips #1

Open
NFKData opened this issue Oct 23, 2018 · 0 comments
Open

Tips #1

NFKData opened this issue Oct 23, 2018 · 0 comments

Comments

@NFKData
Copy link

NFKData commented Oct 23, 2018

Like I talked with you, I have a few tips:

  • To use Application.vala just as the app launcher, (e.g) In main method just call a new instance of Launcher.vala
  • Not to use literals on app logic, use constants declared at the start of the .vala file or on a literals file.
  • Use additionals .vala for common uses, like:
    Serializer.vala
    Deserializer.vala
  • Manage events on a different .vala, (e.g) EventSystem.vala and apply it to the window
  • Add setters to MetadataComponent
  • Use different Utils files to different uses, with the actual file y would be a rename of the file from Utils.vala to ActionUtils.vala
  • Move Utils files to a folder named Utils
  • Move Components files to a folder named Components
  • Move Window file to a folder named View
  • Move EventSystem and other Systems to a folder named Systems
  • Containers files like TelegramAccount should be on a folder named Containers, Beans or on Components folder
  • Try to use as abstraction as you can on your code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant