Looking back it sounds silly but I had the hardest time understanding for each loops in Javascript. Mostly because the tutorials I found were't explaining the parameters (value, index, array) of the call back function very well but also because I wasn't very comfortable with callback functions.
What was you Kriptonite while learning how to code?
Source image: Kelly Sikkema/ @kellysikkema
Latest comments (43)
The reduce() method! I could understand the simple examples like summing an array of numbers, but it took some time to see how it could transform arrays. Now I use it all the time to transform data. Super useful.
My kryptonite is git.

I shall do that, stay tuned :).
Then maybe I should write a post about it :)?
VSAM concepts. I worked as a mainframe developer in my first job and I went through a lot of pain trying to learn the basic operations on VSAM using COBOL. It'S been 6 years since I quit my job as a mainframe programmer and I don't have any memory of VSAM anymore (except that I struggled a lot :-D).
Nice to see a fellow Berliner here. Which part do you live in?
Gotta free that memory so it's good you forgot everything about it :D. I live on the East side - Friedrichshain. Thx for your input.
Coolio! I'm from Schöneberg. (:
Nice posts, BTW. Keep 'em coming.
Thank you. Enjoy the city :).
I got spooky feeling everytime I touch RegEx. Same?
Who doesn't :)? I see many people mention RegEx, so it must be something. Maybe we need a poll :D.
Recursive functions. And let's admit it: RegEx
RegEx is a true pain point in this thread :). Oh, an recursive functions... only reading the definition gives me a headache. Did you manage to get them in the end?
Yes! Oddly (or not so oddly) enough, when they sporadically presented themselves in my mind as the logical solution to a problem. It was the aha! moment we so often experience... :)
"Complex" boolean expressions with multiple variables, especially if it contains various not operators.
I always have to spell or write those out to understand when
resultis true. I always find it best to refactor those things out of a function, into their own. And generally to avoid using double negatives.The funny thing is I actually understood them in PHP before I did it in Javascript :).
Regex is one of those things I will never know by heart. I read about it whenever I need it, I understand it and I forget how it works immediately after I use it. And the cycle continues :).
But doesn't it feel awesome, once you constructed a working regex pattern for one special use case? One were you even started to understand "positive/negative lookbehind/ahead" and that stuff? Sure, once it's working that knowledge is gone... unless you write this cat language every day :D
"Cat language". I like that. And yes, I agree, RegEx is like array methods in Javascript, you think you know it but you always need to Google it :D.