Map a string in Python with enumerate
Problem: create a map of the letters and indices in a string.
My first approach was to loop over the string using range(len(s)), and checking if the letter exists in the map before adding it:
Problem: create a map of the letters and indices in a string.
My first approach was to loop over the string using range(len(s)), and checking if the letter exists in the map before adding it:
This past week marked my first anniversary as a full-time software developer. I thought it would be important to stop and reflect on these last 12 months so this is my “Year 1 retro”. You can read more about my background in the ‘About’ page but here’s the TL;DR: I am a self-taught software developer.
Docker has been around for a few years but it sounded too complicated and I never knew exactly what problem it was solving. Only recently I learned about it and started using Docker both at work and on my personal projects.
Here’s a list of the git commands I use most often:
when to use it: to know what is the status of the files in your branch. It will show what files have been modified, added, removed, committed, etc. A snapshot of your branch’s current situation. It’s super safe because it doesn’t change anything. It just give you… the status. I git status everything, every time.
There are times when a command line output is too long and it’s hard to scroll through all the lines to see the beginning of the stack trace. This usually happens when you get errors and the best way to fix errors is to read the very first few lines to understand what error message you got and where the error is coming from.