Stuff I Learned Today, Part 2 - Pycharm && Problem Solving

Stuff I Learned Today, Part 2 - Pycharm && Problem Solving

Nothing is more valuable to me than what I learn from my seniors (and other colleagues too). I am so grateful to them 

For their precious time. And for every single lesson that I learn from them.

And so I like to consolidate things. And I like to write them up. And if I just type these anywhere I will lose them and not revisit them.

But on here:
  • I have to force myself to write things coherently. 
  • I will revisit them as I like to read back my blogs sometimes.
  • I will use an image
  • That image will trigger my memory

So today I learned

From my senior colleague and former manager whom I respect very deeply and learn loads from I learned this:
  • think about it as a logic puzzle
  • you have changed 2 things are are now getting errors so you need to determine which change or if it's both has caused the tests to fail
  • like any experiment if you have multiple variables 
    • can you hold one variable static
    • and change the other
      • TO SEE IF YOU GET THE EXPECTED OUTPUT
      • then DETERMINE WHICH ONE HAS CAUSED THE ERROR
An image of yosemite, precious stones, and text titles delineating this blog


Revising Things

Just want to revise the main things here.
CAN YOU HOLD ONE VARIABLE STATIC
                AND CHANGE THE OTHER ONE
        AND SEE IF YOU GET THE EXPECTED OUTPUT
THEN DETERMINE WHICH ONE HAS CAUSED THE ERROR

Hey do you like my haiku? Or visual art lol? Here it is again

CAN YOU HOLD ONE VARIABLE STATIC
                AND CHANGE THE OTHER ONE
        AND SEE IF YOU GET THE EXPECTED OUTPUT
THEN DETERMINE WHICH ONE HAS CAUSED THE ERROR

Further notes from my former boss

"What is the error telling you?". "Think of it as a logic puzzle." "Basically think about it as a logic puzzle. You have changed 2 things and now are getting errors so you need to determine which change has caused the tests to fail. Or if it is both."

"Like any experiment if you have multiple variables can you hole one variable static and change the other one. To see if you get the expected output." "THEN DETERMINE WHICH CHANGE HAS CAUSED THE ERROR." 

Pycharm

A colleague has taught me some ming boggling Pycharm commands.

He also just reminded me to search for how other people have done stuff as well.
  • command and shift and o allows you to search directly for a file path
  • the line at the top left that goes through a circle allows you to see all of your files changed
  • the little circle at the top with the four little straight lines through it allows you to see the location of your current open file - mind blowing

VENVS

A staff engineer at work sent me a venvs tutorial cos I keep failing on them.

A senior colleague looked over them. He said which bits to do and which bits to skip. He also made some suggestions on how to approach it. I have messaged him for a further chat on how to do it anyway. Thanks x

Edit: Have spoke with my colleague and basically I need to do it all

just:
- skip the vscode bits
- skip the windows bits

Comments

Popular posts from this blog

Hello World

“But yesterday, I heard God say, you were born to be the one…”

In the Water, I find Fire