@developers I was just wondering what frameworks you’re using for developing Cnchi ?
I’d like to start learning how to code, and I was thinking about trying out Electron for a starter framework - do you have any other recommendations?
What frameworks are you using for Antergos?
@developers I was just wondering what frameworks you’re using for developing Cnchi ?
I’d like to start learning how to code, and I was thinking about trying out Electron for a starter framework - do you have any other recommendations?
@joekamprad but what is Cnchi written in?
I notice there are a lot of py references in the log files…
right ;) python
Yep! It’s written in Python, which is actually an often recommended first language to learn (according to the web that is). I don’t know if you want to give it a go, but I can say that it provides an excellent source of potential learning. I myself do not really know python but have managed (painfully) to create my own personalized version of Cnchi, and it has taught me a lot. If you are looking for free tutorials in any coding language too, you can find them for free at https://www.codecademy.com/
Hope all this random information helps, and good luck!
Derp – I didn’t think to look at the github page, thanks @joekamprad
https://github.com/Antergos/Cnchi/wiki/Dependencies
So things like Cairo for graphics / x-rendering https://www.cairographics.org/
dbus for interfaces https://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html
GObject for … GTK stuff? I’m not sure if I entirely understand that one … https://stackoverflow.com/questions/11301074/what-exactly-is-glib-and-gobject
Python template engine … ? http://jinja.pocoo.org/
Ah python-requests must handle the HTTP stuff for downloading packages, connecting to repos, etc. http://docs.python-requests.org/en/master/
upower for power management https://upower.freedesktop.org/
webkit for rendering … webkit2gtk
Seems like a lot of stuff. I’ve a lot to learn … :/
Hi,
You can use pycharm to develop in python, but I simply use the atom editor.
We use GTK3, so you need pygobject (python-gobject):
http://pygobject.readthedocs.io/en/latest/getting_started.html
https://python-gtk-3-tutorial.readthedocs.io/en/latest/
And yes, we use python requests for downloading.
webkit it’s just used in the final page (the one with the images). It’s not that really important to gasp how cnchi works.
On the other hand, I’ve been fooling around with electron, too. My problem is with javascript, I can’t stand all those callback functions, make the code difficult to write (and follow). Maybe I’ll give it another try in the future (if I find the time).
Cheers!
@karasu True! Javascript is a little confusing compared to python. I have been following “Learn Python the Hard Way” and it seems very logical. I’ve even managed to translate the examples to Python3 just fine, which surprised me as a beginner. Stackexchange.com is my friend!
I tried to follow the GTK3 object tutorial online and got their “hello world” example to work, but it’s all in C and that is extremely odd to me. I really had no idea what was going on.
I have a lot of admiration for C programmers! But seriously, any programmers. Programming is hard. Anyone who can do it is really pretty amazing.
Hi,
Yes, python it’s easier to follow than C. My advice, learn python!
Here you have examples of Python+Gtk (using pyobject):
https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html#simple-example
@karasu Yes, that seems quite a bit easier than C ;) Thanks!
A little offtopic, maybe not:
@karasu what do you think about adding pycharm-community-edition
to antergos repo?
Hi,
It’s already in the community repo, isn’t it?
@karasu said in What frameworks are you using for Antergos?:
Hi,
It’s already in the community repo, isn’t it?
wow you’re right. i’m sure it wasn’t some months ago. I installed the AUR version 3 days ago (from AUR i’m sure) and is quoted as community repo, thats weird…
But thanks for your attention anyway :)
There’s a difference in versions, however. The pycharm-community-edition in the community repo is marked 2017.3.2. The AUR package is numbered 2017.2.3-1. On my machine it’s just updated to 2017.3.1, and it claims I already have the latest version. :)