r/learnpython • • Jul 17 '19

What is the point of python?

I have spent the last couple of days building a python program, and have only been learning python for a couple months or something at this point. I'm really happy with the progress that I've made, this program that I've been making is doing what I want it to and I was ecstatic when I went to bed at 3 am... lol

Today though all that excitement has burnt up trying to figure out how I'm practically going to use this program. The program was built to automate data entry for my job, I deliver pizza for my full time job right now. I'm never in front of a or my computer when I'm delivering pizzas. I was really hoping I could run the program on my android phone.

I tried to use chaquopy with android studio, but I have no experience with android studio so I couldn't figure out how to use it or how to install chaquopy to a AS project. Also python is my first programming language and I'm not ready to learn java just for the sake of making android apps. I also tried to use BeeWare but I think I'm to new to python to be able to use these tools. I also tried to use QPython, which would run the program just fine and I could do all the inputs required to go through my program. This program I'm making requires the writing and appending of files, and QPython wouldn't create or edit the file like it does from IDLE shell.

I'm really frustrated by this limitation, because everything I did was basically for nothing at this point. I've also thought about running teamviewer on my pc and then using the teamviewer android app, but in the past trying to control a pc from an android device in such a manner was very unwieldy and I don't think it would be worth the hassle.

Why is python so self contained and how does one get its usefulness in a more practical manner?

the program in question: https://github.com/itwasntzak/deliveryTracking

Edit: I've also somewhat looked into trying to run the program as a web app through googles app engine environment. Again, I feel I'm to inexperienced in this new vast world of programming to use this implementation. It's also not the most desired implementation, because I live in a very rural part of america. Verizon has a very strong monopoly where I live, I tried to get a cheap phone off amazon and this phone turned out to be GSM instead of CDMA. I got my service though straight talk and they have support for GSM, but only conditionally thought CDMA towers. I constantly lose service thought out the day, and have to restart my phone to get it to even connect to data. When it is connected, the vast majority of the time it is incredibly slow and takes for ever to load even the most basic webpages. This wouldn't be the best way to go for me either because I might spend more time waiting for the program to load and the automation benefits would probably be lost to the waiting times. \

Idk, I'm frustrated lol please give me some advice on what my best course of action will probably be!

1 Upvotes

24 comments sorted by

View all comments

2

u/huttonben Jul 17 '19

First of all.. the only one to blame here is yourself.

Python is not the problem. Lack of research before diving into what your trying to accomplish is the core issue. Python is an unbelievable language with so much to offer which is why it's rapidly growing.

That being said, you have options. Look into Kivy for mobile app development with Python. Kivy is nowhere near where it needs to be yet but it'll get the job done. It just won't run as smooth as a native application would. If you really want to develop apps, learn the native language for Android and the native language for iOS. (Java, Kotlin, and Swift).

The pros to python are numerous. It's extremely human readable, memory management is a piece of cake, it's the king of data science (ML, etc). Web development in python using Django or flask is music to my ears. The libraries are endless and automation is so simple. Not to mention it's probably the easiest language to learn and it's highly flexible. All that being said, python isn't perfect, nor will any language ever be.

Respectfully, you should do your own research to understand why different languages are utilized more for different things and understand the concepts behind all of that before blindly writing a program and then being frustrated bc you can't put it on the app store in 2 seconds.

1

u/itwasntzak Jul 17 '19

I responded to the other comments saying, I'm not actually blaming python for not being able to run on android. Nor did I learn python with the intention of making mobile apps, I learned python for a specific reason and then because it is so capable and easy to learn my imagination went wild.

I have many more ideas for other programs that I plan to make with python. I think I let my emotional negativity shine on python when I was really trying to shine it on my frustration. I did do a little bit of research before hand and saw that there were ways to package a python program to run cross platform and I jumped to conclusions with that information.

When I started writing this code I didn't really have in mind how I was going to run it. I just had so many ideas and I wanted to being them into reality, which is what I did. I'm very happy with what I've made so far and it does what I had in mind. With that being said, after I got to point of being happy with how it ran I started looking up how to run python on android. And now we are here lol There seemed to be option out there for running python on android when I was doing the research, options I mentioned in the post. But the implementations were much more difficult then even just learning python on its own lol

I apologize, it was really not my intention to make it sound like python was inferior in anyway. I know its very powerful, incredibly easy to learn and the fastest growing language out there right now. I'm semi necrotic so you'll have to forgive my out burst haha

2

u/huttonben Jul 17 '19

Haha no worries dude.. I know the feeling. I just say what I said bc I've been there and had to learn the same things. Look into web dev with Python and Django. Bet you'd enjoy it 👍

1

u/itwasntzak Jul 17 '19

I will definitely look into that! I already some basic experience with html and css so hopefully that will make it a little easier.

Thank you so much for that recommendation, I'm going to get right to it!