DEV Community

Discussion on: What's that piece of code that you have to Google *every time*?

Collapse
 
harleybl profile image
harleybl

This isn't just a #beginners thing. I've been developing for a long time but have mental blocks with certain syntax. I was just writing up a post about the things I have to look up all the time.
For Typescript/Javascript I never remember when to do 'for of' or 'for in' when iterating an array or iterable. No matter what language I am writing in I wind up having to look up the syntax for initializing a Map or Dictionary with a bunch of values.

Collapse
 
vtrpldn profile image
Vitor Paladini • Edited

Indeed not a #beginners only thing! My reasoning behind the tag is so that junior devs can see that it is perfectly normal to search for code πŸ˜„

I decided to post this question when I realised that despite having 10 years experience making websites I still need to Google how to add a .css file with <link />

Collapse
 
wulymammoth profile image
David

We lose what we don't use