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

20

u/Conrad_noble Noble1988 Nov 19 '19

Your story sounds so much like my own apart from I'm yet to finish any project.

Your story is an inspiration to me.

11

u/Mag37 Nov 19 '19

Haha! I've heard so many times in YouTube videos "Just build on your personal projects while you learn!" but I just couldn't come up with anything relevant to build on.. Until I stumbled on the idea of automating something in my job, which otherwise is very none-office like. You'll find something that motivates you, could be anything! Something really simple, or something complex that you just start sketching.

Thank you!

2

u/[deleted] Nov 19 '19

Did you start as a complete newbie? 6 weeks is incredible!

I have a project in mind but it has meant learning Pandas and Dash which has added a lot of time.

You've inspired me to keep going.

3

u/Mag37 Nov 20 '19

Well kinda yes, I've always been quite tech savvy, only been doing some minor web and scripting from time to time because of necessity, but then mostly copy-pasting, using pre-built stuff, templates and other people's work. Never really understanding any language, creating from ground up.

I did some basic pandas in the Udemy course, seems like there's a lot to learn but also a lot of potential!

You'll make it! Just start small and ugly, it'll grow larger and you'll figure out smarter way to redo things along the way!

0

u/[deleted] Nov 20 '19

[deleted]

2

u/Mag37 Nov 20 '19

Haha thank you, I will keep studying on the side, see where it leads :)