DEV Community

Cover image for I still have to Google...
Jacob Baker
Jacob Baker

Posted on

I still have to Google...

Javascript foreach loop syntax.

for(var x as y) {

No...

foreach(var x in y) {

Nope...

... checks...

x.forEach(function(y) {

That’s the one I’m after!

Hi, I’m Jake, a lead developer. I’ve been programming for 15 years, 10 of those professionally.

This is something I continually try to get over to students/new developers. Even after all these years there are things I can’t remember and have to look up.

So, what do you have to google?

Latest comments (24)

Collapse
 
ericgruby01 profile image
Eric Gruby
  • Git commands
  • Redux devtools setup
  • Regex stuff
  • CSS grid
  • SCSS functions/loops
  • text-decoration: line-through - I always write "through" wrong... it's quite embarrassing 😅

Hi! I'm Eric, a front-end developer. I've been programming for 10 years, 8 of those professionally ✌️

Collapse
 
seal125 profile image
Stephanie Smith

Most of the time, I'm looking up array methods - especially slice() and splice(), as I haven't yet gotten used to the difference between them. :)

Collapse
 
adamcosi profile image
Adam

I've been doing this software thing for yearsssss... and I'll still forget the arg placements to those.

Don't sweat it.

Collapse
 
tommygeorge profile image
tommy george

✋🏽 Been building things on the web since ~1994. I still "google" things, and have to hit the docs on a regular basis. Absolutely nothing wrong with referencing documentation. That's what it's there for!

If it really makes someone feel better to memorize something -- great! Go for it! I'd rather take a quick peek at some docs, and move on building something! =)

Collapse
 
thatonejakeb profile image
Jacob Baker

Having all the resources available at your fingertips keeps more room in your memory for other things!

Back at a company I used to work for they had an old (dusty now) bookcase which had a ton of old reference books that they used before the days of Google and easily searchable information. Always wondered what it would be like to work back then.

Collapse
 
dougblackjr profile image
Doug Black

PHP Date formats. If it's outside of Y-m-d, I forget it.

Collapse
 
thatonejakeb profile image
Jacob Baker

Oh god, yes. I mentioned in another comment I always have to check one way or another when switching between languages. HH:mm:ss -- for JS, yep, makes sense. H:i:s -- for PHP whaaa.

Collapse
 
alexandrusimandi profile image
Alexandru Simandi

I think it's also because JS doc and examples are the most accessible on the internet. The brain picks the path of least resistance.

Collapse
 
iamschulz profile image
Daniel Schulz

A lot of that functional js stuff, most prominently Array functions.
Oh, and CSS Grid.

Collapse
 
moopet profile image
Ben Sinclair

Needles and haystacks in PHP. I know I could use some kind of intellisense plugin, but I don't wanna.

Collapse
 
khrome83 profile image
Zane Milakovic

DuckDuckGo....

For me it is switch syntax. I know it, but I always question myself, idk why. And I have been doing this for 18 years. It’s like a instinct now.

Collapse
 
antonmelnyk profile image
Anton Melnyk • Edited

Well maybe not forEach loop 😀, but complex things like regex, time formatting, functions like reduce... Sometimes indeed you can google it even if you wrote them one hundred time already!

Collapse
 
ctrleffive profile image
Chandu J S

I have to google for bootstrap carousel code every time I need it. 😐