DEV Community

Cover image for What programming concept did you struggle the most with?
Vitor Paladini
Vitor Paladini

Posted on

What programming concept did you struggle the most with?

Was it types, promises, or ternary operators?

Maybe async, testing, recursion?

Was it OOP, malloc, or decorators?

Or maybe compilers, data structures, or recursion?

Latest comments (54)

Collapse
 
blessedcyprian profile image
blessedcyprian

python has been my main programming language and it has been little tough

Collapse
 
codinglanguages profile image
Your DevOps Guy

Dynamic programming, hands down.

Collapse
 
elmuerte profile image
Michiel Hendriks • Edited

Ah yes. Pointers, relatively easy to understand and use, and extremely easy to screw up and thereby sending you into an abyss where you don't understand any of it.

Collapse
 
elmuerte profile image
Michiel Hendriks
  • Concurrency
  • Distributed transactions
  • The above two combined

Not to understand, but to get it right.

Collapse
 
skepticalbong profile image
Siddharth Mondal

To this day I cannot understand how recursion works. I used to find OOP concepts confusing but now I'm used to it.

Collapse
 
nexusdenim profile image
Nexus Denim

The Objected Oriented Programming, back at when i started learning Programming, the first thing that set me off was setters and getters, I was like why build setters and getters if one can initialize it in Constructors and can access it through the class. That was the most difficult, But still now the OOP methods and properties confuses me a little time by time.

Collapse
 
sandordargo profile image
Sandor Dargo

I took me some time to take the time to understand covariant types

Collapse
 
ericgeek profile image
EricGeek

The concepts themselves have never been a problem, it's been the "best practices" of the concepts that have been a problem. About two decades ago, I tended to suffer from NIH (not invented here). I still seriously overthink decisions like REST vs graphQL vs RPC, which component libraries or frameworks to use, etc., as I'm still highly opinionated, but I at least understand that outsourcing the work to someone for whom the library/framework is their primary mission is more likely to produce a quality product than rolling my own in between or in support of my real tasks.

Collapse
 
wilsongramer profile image
Wilson Gramer • Edited

I was learning Go and struggled a lot with channels and buffered channels, after using promises for everything in JavaScript. I kept getting deadlocks trying to wait for multiple goroutines to all finish!

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

Hmmm... pointers which made it tough to learn C because of it.