DEV Community

Faith Morante
Faith Morante

Posted on

4

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more