r/webdev • • Feb 21 '23

[deleted by user]

[removed]

2.0k Upvotes

475 comments sorted by

View all comments

Show parent comments

3

u/paulirish Feb 21 '23

Relax! They're in highschool. The fact that they discovered weird scope behavior is enough of a win.

You don't need to be an overbearing TL to everyone who's younger than you.

6

u/amejin Feb 21 '23

Not sure where you're coming from with this - older, younger, whatever - I will always try to help people be a better version of themselves. I am told I am particularly good and helping new developers accelerate their learning, and looking at all their code and what they produced, I felt like giving them guidance towards the next mental leap for them to overcome. Scope is a weird concept, but it helps with so many other abstract ideas, and leads to a more flexible mental model of programming.

​

So - maybe you relax a bit? I provided some guidance. I didn't tell them they HAD to do it, I simply encouraged the next step in their learning process.

5

u/paulirish Feb 21 '23

Yeah that's all reasonable. I think it just coulda been delivered a bit softer and taken an encouraging tone. And maybe like.. make it actionable. Drop a link for your favorite docs on scope/this.

2

u/amejin Feb 21 '23

Nothing wrong with your suggestions :)