Futura-Py / Notes

The modern text editor written in python
MIT License
9 stars 2 forks source link

Add readability through OOP and basic documentation #76

Open Moosems opened 1 year ago

not-nef commented 1 year ago

no oop.

Moosems commented 1 year ago

Why not?

im-coder-lg commented 1 year ago

@not-nef OOP gives more clarity. Last time I checked, many people used OOP to have more neatness and control over Python. We can help you with this, you know. I don't use much OOP, but I can promise to test the code logics that uses OOP code here.

not-nef commented 1 year ago

im against oop because i dont understand it AT ALL. So if we switch to oop with all the classes and shit i wont be able to maintain this project no more

sumeshir26 commented 1 year ago

Well its your wish but in the long run It is easier to maintain with classes since everything is seperate

Moosems commented 1 year ago

im against oop because i dont understand it AT ALL. So if we switch to oop with all the classes and shit i wont be able to maintain this project no more

Then learn it. You don't learn by not doing. You learn by failing and changing

Moosems commented 1 year ago

Well its your wish but in the long run It is easier to maintain with classes since everything is seperate

Plus it keeps everything self contained and makes tracking down problems easier

not-nef commented 1 year ago

yeah ok but ill leave the transition to you because you seem to understand it better

Moosems commented 1 year ago

Ok 👍. I can document it if that helps

Moosems commented 1 year ago

not-nef I actually used to code just like you do but I promise that if you learn oop it will change your world

not-nef commented 1 year ago

yeah but for now im gonna focus on some other projects

im-coder-lg commented 1 year ago

Guys I have some ideas in mind. Like a weather app using Gtk4+ and PyQt or something for Linux and Tukaan for Windows and Mac. Anyone interested? We will be using a lot of APIs, mainly from OpenWeatherMap.

im-coder-lg commented 1 year ago

Maybe there we could use OOP. And scratch GTK4+ and all that, we'll just use Tukaan. Or mainstream Tkinter with sv-ttk.

Moosems commented 1 year ago

Normally it's better to stick with one GUI ToolKit however I am more than interested in this weather app

sumeshir26 commented 1 year ago

@im-coder-lg Im out cuz i got no time for coding, and all my coding time these days is spent on Jou... The app seems interesting tho...

not-nef commented 1 year ago

@im-coder-lg definetely in if we use tkinter

im-coder-lg commented 1 year ago

Okay guys, and @sumeshir26 I get it. We will do it during May though, to get the most time.

Moosems commented 1 year ago

@im-coder-lg Im out cuz i got no time for coding, and all my coding time these days is spent on Jou... The app seems interesting tho...

Remember that Jou is still in early development and subject to big changes. It also isn't very strong in any categories yet

not-nef commented 1 year ago

better learn c tbh

Moosems commented 1 year ago

Okay guys, and @sumeshir26 I get it. We will do it during May though, to get the most time.

You want to create the repo to start? Also can we change the file structure from a src type folder to a more open one? I can set up a pyinstaller build action so we can test our app upon push

Moosems commented 1 year ago

Not-nef you know c?

not-nef commented 1 year ago

uuuuhm... sure, but python is my strong suit

Moosems commented 1 year ago

Do we want to try a messaging thing again? IRC is pretty good for development

not-nef commented 1 year ago

did i miss something? what messenger

Moosems commented 1 year ago

I remember a while back that ee tried finding a messaging service so we could talk faster

not-nef commented 1 year ago

whats wrong about github, its not like were in a rush

Moosems commented 1 year ago

Well it's easier for debugging when you can quickly respond and chat long amounts that others don't need to read through to help

Moosems commented 1 year ago

Me and Akuli chat using irc.libera.chat on ##learnpython (Try his mantaray client)

sumeshir26 commented 1 year ago

@Futura-Py/reviewers Shall I create the repo? Need a name

not-nef commented 1 year ago

weather (Futura Weather)

Moosems commented 1 year ago

I guess I'm part of Futura now?

sumeshir26 commented 1 year ago

OKay

not-nef commented 1 year ago

I guess I'm part of Futura now?

sure

Moosems commented 1 year ago

Nice 👍

sumeshir26 commented 1 year ago

So what framework should we use? Tukaan, Tkinter, GTK+, Something of C, or what?

Moosems commented 1 year ago

Tkinter? It's great for a prototype but not great once it gets really nice

Moosems commented 1 year ago

What exactly is the plan/design for it? @im-coder-lg This was your plan so maybe you choose?

not-nef commented 1 year ago

The best framework ever is pyqt. Its hard to learn but if you know it you can basically write fluent apps

Moosems commented 1 year ago

You learned it Nef? I've wanted to get into it for a long time but never cared to

not-nef commented 1 year ago

no. not yet. but i desperately want to. just need to get my ass up

Moosems commented 1 year ago

Let's do it then

sumeshir26 commented 1 year ago

You know what, I'm working on this as well. Lemme push everything else aside.

sumeshir26 commented 1 year ago

I guess time to watch a PyQt6 tutorial... And do you guys wanna use PySide6 or PyQt6

Moosems commented 1 year ago

PyQt6 personally

im-coder-lg commented 1 year ago

Isn't Qt used for KDE? Look, I just want to make this simple and intuitive for the common user. We'll start with a barebones CLI version of Weather to look into the packaging methods, and then we will work on the GUI. Personally, we have used a lot of Sun Valley theming, so I feel to go with GTK and Qt. Inching more towards Qt if it works everywhere.

im-coder-lg commented 1 year ago

Wait, can you theme apps when you use PyQt?

not-nef commented 1 year ago

afaik yeah

Moosems commented 1 year ago

Wait, can you theme apps when you use PyQt?

With how popular it is I'd be surprised if you can't

sumeshir26 commented 1 year ago

@im-coder-lg Qt follows the system theme regardless of the system :)

sumeshir26 commented 1 year ago

And I found this if we want to have Sun Valley Theming: https://github.com/zhiyiYo/PyQt-Fluent-Widgets