r/learnpython • • Mar 22 '23

What do you even code?

I am a beginner to python and all coding. I don't know much. All the recommendations are "code everyday". Practice every day is great but what do I practice? Do I open up an empty IDE and code what? I don't know how to do any projects on my own. Do I just YouTube crap and copy them or what? What do I actually code?

341 Upvotes

107 comments sorted by

View all comments

1

u/Tureni Mar 22 '23

Well today, I'm working on a cloud function that helps a major retail chain in my country to show more or less ads. This chain has a specific item that you need to have an appointment to get. Think measuring feet for custom shoes for example.

It's obviously a part of a greater system (as in all work around IT), but my specific part is;

- Call the REST api that the chain has set up with their opening hours and appointments already made. Figure out how many available timeslots there are in the next x days.

- Find out how many total timeslots there were in the next x days, calculate a percentage utilisation and set a label; green, yellow, red. Green means more ads in the shops area, red means less ads.

- Write that to a CSV file in a GCS bucket.

- Have a second cloud function that reacts to the new file in the bucket, which writes the results for every store into BigQuery.

- All google cloud is done with terraform.

So; consuming APIs, doing business logic, using google cloud, converting data between different formats (rest response->dict->csv->whatever type of sql you use for big query).

My recommendation after learning the very basics is trying to consume an API. Find a free API, send some requests to it, see what you get back.

Then get into one of the big cloud operators - I use google because that is what my job says, but my last job was AWS. Learn one, then the others will be easier to understand.

Terraform is nice to have when you have large applications you manage, but we use it everywhere. Not totally necessary here, but a "nice to have".