DEV Community

Cover image for What was the hardest concept you had to wrap your head around?
Arika O
Arika O

Posted on • Edited on

What was the hardest concept you had to wrap your head around?

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)

Collapse
 
royalfig profile image
Ryan Feigenbaum

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.

Collapse
 
jdhenckel profile image
jdhenckel • Edited

My kryptonite is git.

xkcd

 
arikaturika profile image
Arika O

I shall do that, stay tuned :).

 
arikaturika profile image
Arika O

Then maybe I should write a post about it :)?

Collapse
 
pulakchakraborty profile image
Pulak Chakraborty

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?

Collapse
 
arikaturika profile image
Arika O

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.

Collapse
 
pulakchakraborty profile image
Pulak Chakraborty

Coolio! I'm from Schöneberg. (:
Nice posts, BTW. Keep 'em coming.

Thread Thread
 
arikaturika profile image
Arika O

Thank you. Enjoy the city :).

Collapse
 
davidyaonz profile image
David Yao

I got spooky feeling everytime I touch RegEx. Same?

Collapse
 
arikaturika profile image
Arika O

Who doesn't :)? I see many people mention RegEx, so it must be something. Maybe we need a poll :D.

Collapse
 
netk profile image
David Quintero 📿

Recursive functions. And let's admit it: RegEx

Collapse
 
arikaturika profile image
Arika O

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?

Collapse
 
netk profile image
David Quintero 📿

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... :)

Collapse
 
elmuerte profile image
Michiel Hendriks

"Complex" boolean expressions with multiple variables, especially if it contains various not operators.

result = !(a && !b || c)
Enter fullscreen mode Exit fullscreen mode

I always have to spell or write those out to understand when result is true. I always find it best to refactor those things out of a function, into their own. And generally to avoid using double negatives.

Collapse
 
arikaturika profile image
Arika O

The funny thing is I actually understood them in PHP before I did it in Javascript :).

Collapse
 
arikaturika profile image
Arika O

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 :).

Collapse
 
marcusatlocalhost profile image
Marcus

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

Thread Thread
 
arikaturika profile image
Arika O

"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.