r/learnpython • • May 04 '20

I wrote my first useful Python program!

For the first time in my life, I wrote a Python program from scratch to automate my work. My boss gave me the task of copy/pasting all the fields from a long online application form to a word doc and I wrote a code to do that in 5 minutes. It shaved off at least 40 minutes from my workload. It might not seem like much, but I'm over the moon :)

Edit 1: Thank you all for your kind words. Being part of this community has helped me immensely. I’m truly grateful to have found it.

For those who asked for the code, here it goes - https://github.com/abhisu30/OnlineFormExtraction

Edit 2: For those who asked, no I didn’t use my work computer. My boss asked me to email her the word file with the form fields so I executed this code on my home computer and emailed it to her.

857 Upvotes

115 comments sorted by

View all comments

288

u/THConer May 04 '20

That's some great work. The field of automation is a field where Python is king. Remember, don't tell your boss about this little program of yours ;)

110

u/8rnlsunshine May 04 '20

Thank you my friend. Absolutely won’t tell my boss.🤐

31

u/Adro_95 May 04 '20

But you can very well share the code with us 😁

43

u/quietsam May 04 '20

am his boss. this could backfire.

11

u/LiquidAurum May 04 '20

I'm willing to take that risk

12

u/ashVV May 04 '20

Heh, nice try boss.

9

u/[deleted] May 04 '20

Everybody knows that if you ask an undercover boss if they are a boss they have to say yes.

→ More replies (1)

14

u/taiguy86 May 04 '20

To play devil's advocate here...what kind of relationship do you have with your boss? Would he see the value? Could you express you want to do this on other projects for other people? If you like the work, this could be an opportunity for you...

10

u/aplawson7707 May 04 '20

This is a good point. I have two supervisors - only one of them gets to see the stuff I come up with. The other one just thinks I'm productive and accurate. The second the latter learns that I know how to automate almost 100% of my workflow she'll be asking me to wear multiple hats, share the tools with my shitty teammates and rewarding their laziness, and not paying me a single extra cent.

→ More replies (1)

56

u/pjbardolia May 04 '20

Ya or he will give you more and more work when he comes to know how smart enough you are to finish it fast.

7

u/flying_bunuelo May 04 '20

I told everyone, and i was really proud. I had accomplished that in my third week of the internship. I never ever used it again until the last week, when i overheard someone had a similar problem. And they didn't even use it

→ More replies (1)

62

u/thomakamaru May 04 '20

I believe in the long run, telling your boss about that program will actually help you and your company.

Why should anyone fill out these forms manually, if an already implemented and tested solution exists.

Additionally, he will consult you if he ever has tedious, monotonous work again. Just make sure he knows that writing the program takes some time as well. You will learn something and your given tasks will shift more and more to interesting things.

0

u/[deleted] May 04 '20

[deleted]

13

u/Castlewood57 May 04 '20

Absolutely agree. Some seem to relish in employees being buried in work, and the look of dispair on everyone's face. While they plan their next golf outing..

→ More replies (8)

0

u/[deleted] May 04 '20

[deleted]

14

u/kite_height May 04 '20

"Sorry I don't know how to fix printers. Don't we usually call the service guy?"

25

u/chaoticneutral May 04 '20

I'm running into this problem right now.

I'm a statistical programmer meaning mostly high level scripting (SAS, R, SQL, and some python scripting), I get pulled into a meeting with two senior managers and they proceed to tell me how I need to develop an app (that will change the industry!!!) for them in C++ and were shocked... SHOCKED to find out that I couldn't do it without a significant effort.

They were thinking I could do it in a 1-2 hours every week in my spare time.

From their reaction, they didn't believe me and told me to talk to the senior statistician to make sure I was understanding what I was refusing to do and the opportunity I was missing by not helping.

The statistician has my back and thought it was equally absurd, but I'm sure right now they are double checking with other programmers because they don't trust my answer.

13

u/kite_height May 04 '20

I feel this so much. Somebody always has a "world changing app idea" but is surprise surprise never willing to pay the $250k in developer salaries and $25k/month in services that are needed to even get the prototype running...

11

u/chaoticneutral May 04 '20

The dumbest part of this whole thing is it is ACTUALLY a good idea.... they just need to pay someone to develop it instead of skimming hours of their salaried employees.

→ More replies (1)

7

u/EdwardWarren May 04 '20

That got me suspended for insubordination and eventually fired. I did programming for people on the side. My boss, a woman with permanent PMS, hires someone to do just that sort of thing then comes in an asks me to help accounting out by writing a small program for them. I asked her if she didn't just hire a guy to do that sort of thing. She didn't say a word, turned and (probably) ran to HR where she wrote me up for insubordination. I was suspended with pay for 3-4 months and then fired. I was 1 year away from retirement after 20 years with the company. My reviews were always close to perfect for twenty years.

My lawyer got me rehired and I was suspended for about 9 months more with pay and was paid what they called severance and allowed to retire. I needed 21 years service for full retirement. Funny thing was that I never told her I wouldn't help accounting. I was just joking around. She was fired 6 months later and her boss was transferred to the company's equivalent of Outer Mongolia about 9 months later and never heard from again I understand. Our company newsletter had a Retirees Section and I sent a picture of me at the wheel of the nice RV I bought with the severance money along with a story of all the wonderful places we had been to since retiring. I imagine what my boss thought of that.

→ More replies (11)

7

u/tobiathonandon May 04 '20

Yeah I agree with this. Letting your boss know you have skills such as coding will make you more valuable. It can also broaden your job/career at said company. Keep in mind that your employer may either want to keep you closer knowing you have these skills, or get rid of you, frightened that you’re competition for him/her. If it’s the latter, there are better jobs out there.

3

u/the_battousai89 lifelong beginner May 04 '20

This is true. But only OP will know whether it’s the right move to let the boss know.

→ More replies (1)
→ More replies (9)

3

u/Knifey_Hands May 04 '20

I screwed up and told my boss about this small program I made. I could literally be chilling at work but no, he gave me more work. Lesson learned.

3

u/madhousechild May 05 '20

Not quite the same thing but I've read where a programmer agrees to make a thing for $100, delivers it to the client 10 minutes later, and client says, "Why am I paying you $100 for something so easy to do?!" So from then on programmer never delivered until the next day. LOL.

→ More replies (12)