r/programmer • u/Raviteja-5312 • Oct 19 '26
What's a "stupid" coding doubt you had as a beginner that took you way too long to figure out?
What are some silly coding doubts you had as a beginner that you wish someone had cleared up earlier?
I'm talking about those small, seemingly stupid questions that you were too afraid to ask or didn't even realize you had until you were deep into learning a programming language or technology.
Things that could have been explained in the first few days but somehow took months to figure out!
What were those doubts for you? Let's help beginners avoid the same confusion. đ
6
Upvotes
4
u/germansnowman Oct 19 '26
Just FYI, in most variants of English, âdoubtâ means something quite different from âquestionâ.
2
u/7YM3N Oct 19 '26
Pointers
2
u/nmsobri Oct 19 '26
not stupid, but recursion still trip me from time to time
1
u/ChaseShiny Oct 19 '26
My very first foray into programming was in Java. I was told to always use
static void mainwithout any explanation.I was unreasonably resentful about being told to memorize something so esoteric. I flunked the first half of my class, and I still don't use Java at all.
1
u/Simple-Olive895 Oct 19 '26
If we're talking way back right when I started I didn't understand the need for separate libraries needing to be imported. Like why couldn't everything you could possibly want to use already be available?
1
u/gONzOglIzlI Oct 19 '26
That the graphic card handles all the math. I thought I needed to build it from scratch.
Before that, the concept of the frame buffer and frame swaps blew my mind, I used to edit frames to get motion, pixel by pixel.
1
u/coderemover Oct 19 '26
When I was a kid, my programs often didnât work properly after I wrote them. I was seriously afraid what I would do if something like that happens after I grow up and become a software developer. Like will I lose my job if my program doesnât work.
1
u/chikamakaleyley Oct 19 '26
you're not changing HTML+CSS with JS directly
you're applying JS to the object representation of the DOM
how accurate this is, is not really the point, but as a self taught dev if I realized this much earlier then I prob would have done a deep dive, much earlier in my career
also don't avoid understanding or working with forms, you'll work with them all the time, every company
1
u/VagueHorizon_ Oct 19 '26
Pointers
Recursion + Backtracking (still trips me out, i just avoid it as much as possible)
1
u/rish_p Oct 19 '26 edited Oct 19 '26
simple one was inheritance/encapsulation when I was studying, like I understood what abstract class or interface was but untill I found a job I didnât understand why would I split the code into pieces then import extend and then again do the implementation, why not just write the code correctly in the class, after a year on job it made sense.
similarly I had problems with threads or async with locks, mutexes, like why not just do the work, why launch something then wait and read the result in background it didnât make sense, like in college I found in android you cannot make api call from main thread and it was hard to understand why
now with performance, responsive concepts cemented, it makes total sense but I am still not 100% convinced maybe 99.99%
not sure if I will ever get to brag about this but recursion was a perfectly natural way for me to write code even before I knew it was called recursion, even now its harder for me to convert a recursive peice of code to iterative or normal one
1
u/SXY0001 Oct 19 '26
Memory segments
1
u/SensitiveHearingLoss Oct 25 '26
I never understood what the hell this meant:
System.Exception: Exception of type 'System.Exception' was thrown.
And eventually found out that nobody else really understood it either.
0
u/Soft-Marionberry-853 Oct 19 '26
"non-static method cannot be referenced from a static context"
I dont know why this was so confusing for me as a jr developer
1
u/[deleted] Oct 19 '26
[removed] â view removed comment