r/AskProgramming • • Jun 15 '26

Career/Edu Not getting programming unless it's math?

Taking 1st year undergraduate CS and math courses. Up to data structures in C.

I'm understanding math so much more, even if it comes slowly, and as soon as I can put programming stuff in mathematical terms everything clicks and not one second before. (On that note, fuck linked lists.)

Did anyone who was formerly in my position magically end up liking programming and the whole process of building software from ever-shifting documentation and idiosyncratic languages, and if so, what made it click for you? Or is it pretty obvious from day one whether you're team theory or team builder?

Genuine advice appreciated, I need to decide whether to give up on this whole thing and just do math

**EDIT these replies are actually amazing thank you guys keep em coming**

17 Upvotes

53 comments sorted by

View all comments

Show parent comment

2

u/BornInfamous Jun 15 '26

that went plenty deep enough for my needs

cool tip about encapsulation and 'functions do x'. you and someone else here both made the linked lists = graph theory comparison and my little mind has been blown

fair enough, if all the other languages are C but dressed up, that makes the rest of them seem more approachable. look, I am overblowing it and comparing myself incessantly to classmates who have been coding for a decade, but it's definitely helpful to get advice from you and other experienced people about how to think and what to expect. so thank you!

1

u/not_perfect_yet Jun 15 '26

comparing myself incessantly to classmates who have been coding for a decade

Right, three more then:

Yes, programming is weird. It takes a few months to really get used to it and the comparison to people for who it has already clicked is unfair.

Programming is super subjective and specialized. Once you're up to speed on the basics, you are nearly on the same level as your peers when it comes to new topics. Web development and "hardware stuff" like dealing with sensors has nearly nothing in common for example. There are different philosophies on what "good code" even is and how to properly problem solve. Yes there is an algorithm, but how you write it down is up to you. Depending on that, people can get stuck in a "wrong" way of thinking and struggle with certain problems. Also applies to you, but I just want to say that experience in years isn't everything.

If you want to "check your work" that exists in programming too, and it's just called "testing". The idea is that you write a function like "add(a,b)" and then you write another function to test that 1+1=2 is actually true and also works in different circumstances, like 1.5+1=2.5 or (-1)+1=0 . This can help a lot with finding problems when you have a complex program and the syntax is correct, but the final result is wrong.