r/learnpython • • Nov 19 '19

My first application!

In October I started my Python-journey, with a full time job and a 2yo kid the spare time is scarce.
I've been following a Udemy-course and also used some android-apps to just study something every day.
2 weeks ago I made my first real script from scratch, I had a idea of automating / helping with a tedious task at work. I'm a train driver, and every train we start we fill a paper form, check some values from 2 different paper lists and enter some of that data into the control computer.

The script were terminal based and did all the calculations I wanted, checked up the values from those 2 lists (one which is short, so I just made an elseif of it, the other is long so I made a .txt with the values) and gave a summarized result.

Now 2 weeks later I've deployed it on the web with Flask to be able to share with my colleges!
With dropdowns, forms to fill and a button to run the scripts and show the result.

Thanks to inspiration from this subreddit (and others) I made it working! It's plain ugly, but the functionality is there. Guess I'll come back and sort the design with bootstrap or at least some css'ing next time I feel a dip in the studying.

I dno if there's a better way to post a image, but here's one:
Image of the result with explanations

407 Upvotes

72 comments sorted by

View all comments

8

u/catconsultant Nov 19 '19

That’s awesome! What udemy course did you go through?

13

u/Mag37 Nov 19 '19

Thank you! I'm not done yet but maybe 80% completed, I'm doing "The Python Mega Course: build 10 real world applications" with Ardit Sulce. I've found it good to go thru a lot of different aspects of Python and how to use them in different areas. Just basics, but still good fundamentals.

1

u/flabcannon Nov 19 '19

Do you think you will be able to to actually build these applications using the course or are the videos more like walkthroughs of him developing the code?

2

u/ReachingForVega Nov 20 '19

+1 for the course, you actually build the apps step by step. You will be surprised.

2

u/flabcannon Nov 20 '19

Thank you - that's the kind of training I was looking for so will check this course. I have gone through quite a few beginner courses which make big promises but end up taking you to the same plateau and leaving you there.

2

u/ReachingForVega Nov 20 '19

My personal experience is doing ATBS then doing this course with work projects in mind.

The secret to learning python is practice solving problems with projects.

2

u/flabcannon Nov 20 '19

Thanks - I've done about 60% of Python Crash Course so far but still need to make the jump to larger scale projects.

2

u/ReachingForVega Nov 20 '19

I don't think scale is necessary but putting learnings together.

Things like:

  • Call SQL and get data

  • Save to file

  • Open data in pandas

  • Manipulate data

  • Make pretty graphs

  • Save or distribute

You've built a report.

2

u/flabcannon Nov 21 '19

You're right - I should stop and think about the steps involved in the code flow like this more.

2

u/ReachingForVega Nov 21 '19

You can do it. Just break down your tasks or chunks into functions. Draw it out before you code.

→ More replies (0)