Slide 1

Slide 1 text

Where is it?! Avoiding the XY Problem @talyssonoc

Slide 2

Slide 2 text

Talysson Oliveira Software architect & Chief Learning Officer at Codeminer42

Slide 3

Slide 3 text

codeminer42.com @codeminer42

Slide 4

Slide 4 text

What is the XY problem?

Slide 5

Slide 5 text

I need to get a file extension, but idk how to do it (Problem X)

Slide 6

Slide 6 text

Oh, I just need to read the 2 last chars of the file name! But idk how to do it either… (Problem Y)

Slide 7

Slide 7 text

Hey, so… how do I get the 2 last chars of a file name?

Slide 8

Slide 8 text

Hey, so… how do I get the 2 last chars of a file name? What?! That's such a weird question, but…

Slide 9

Slide 9 text

Well, you can do: string[-2, 2]

Slide 10

Slide 10 text

Hum, so… it didn't work for my HTML file, can you actually help me??? 💧

Slide 11

Slide 11 text

💧 #@*&%! ?????

Slide 12

Slide 12 text

OH! You want to get the file extension?! (Problem X)

Slide 13

Slide 13 text

Yes!

Slide 14

Slide 14 text

File.extname(file_name) 😲

Slide 15

Slide 15 text

💧 Hum, so… it didn't work for my HTML file

Slide 16

Slide 16 text

💧 You're absolutely right! Here's

Slide 17

Slide 17 text

:)

Slide 18

Slide 18 text

Where was the answer?!

Slide 19

Slide 19 text

Asking smart questions - Don't theorize solutions before understanding the problem - Do not have "asking an AI" as your first alternative - AIs won't find conceptual gaps on your question, they'll always have an answer, even if that answer is misleading - Read official documentation about the problem - You might solve it yourself at this point! - Gather all the context and info about your previous attempts - And then ask for help (to a person or an AI) about the problem, not about your theory for a possible solution - Don't expect anyone to make decisions for you

Slide 20

Slide 20 text

Answering questions smartly - Do not give an answer if the question is confusing - Answering as quick as possible might make you feel good. Resist it - It might actually hinder the progress if you do that irresponsibly - Ask for more context and information - Make sure you understand the problem as well - Make it clear when you're not certain about your answer - And then answer the question

Slide 21

Slide 21 text

AVOID THE XY PROBLEM

Slide 22

Slide 22 text

Thank you! codeminer42.com @codeminer42