DEV Community

Faith Morante
Faith Morante

Posted on

Weekly Retro #1 - Python, React, Express, etc

I like the idea of looking back, digesting what you have learned and sharing it to people who will be able to relate to it.

I learned a lot of things this week.

1) Python - List Comprehensions

I'm a new learner of Python and so far I'm enjoying it. I'm subscribed to Trey Hunner and Python Morsels. Check it out!

So there a syntax in python for shortcuts of for loops and even nested loops, which I still find confusing, still need to get used to it. It's called list comprehensions.

So this:

doubled_odds = []
for n in numbers:
    if n % 2 == 1:
        doubled_odds.append(n * 2)
Enter fullscreen mode Exit fullscreen mode

Can be translated to:

doubled_odds = [n * 2 for n in numbers if n % 2 == 1]
Enter fullscreen mode Exit fullscreen mode

2) React and Express with uploading files to Google Cloud Storage

I have done uploading to AWS using AWS Amplify. So now I had a task to use GCP instead. You can check my post here about that: https://dev.to/idiglove/file-upload-with-react-express-and-google-cloud-storage-with-folder-structure-2i5j

3) Amazon coding challenges

I didn't do a good job with that. I really need to practice more.

Here's a list of some possible questions that they will ask.

https://leetcode.com/discuss/interview-question/344650/Amazon-Online-Assessment-Questions

Cheers,
FM

Top comments (0)