101

I've always flunked at math; and knowing how intertwined programming is with math, I'm skeptical of my ability to learn how to code. Can someone be too dumb to learn programming? If it helps, I'm mostly interested in learning Common Lisp.

top 50 comments
sorted by: hot top controversial new old
[-] AFKBRBChocolate@lemmy.world 66 points 6 months ago

Title question first: yes, you absolutely can be too dumb to program.

But as others have mentioned, being bad at math isn't necessarily a deal breaker, especially if you're taking about the actual arithmetic part of math.

What turns out to be key to programming is breaking down a problem into steps and figuring out the logic to do what you want to do. The computer is going to do the actual arithmetic, but you'll need to tell it what you want to do step by step.

load more comments (1 replies)
[-] hollyberries@lemmy.blahaj.zone 44 points 6 months ago

I suck at math and believe that if you can think critically and solve problems, you can program. It is possible to learn how to break down a mathematical formula into its components and have the computer compute. You can't proof your work on your own at first, but there are tools that can.

Depending on what you're doing, you may even learn the math as you go like I did with game dev and vector math. Like any skill, it takes practice.

[-] RonSijm@programming.dev 44 points 6 months ago

Yes. But are most managers too dumb to figure out that you can't program? Also yes.

[-] MachineFab812@discuss.tchncs.de 3 points 6 months ago

I was gonna suggest there might be a "too dumb to program for the profit of others", but ... yeah, even if your pay and code is a financial detriment, we can pretty much promise it'll be an insignificant portion of the money that company is costing itself. You gotta eat, and practice is practice.

That said, advice remains the same: program on company time towards a path you don't care about beyond covering your ass and trying to deliver what's been demanded(I'm not saying don't do your best, just keep it to what you can do on the clock), and see that as practice for passion projects on the side. Save a little bit of that no-fucks-given/objectivity for objectively testing and fixing your code - fix it like someone else made the mistake, and you can do it better, but at the same time something must ship(don't let perfect be the enemy of good).

load more comments (1 replies)
[-] Synthead@lemmy.world 27 points 6 months ago

You'd be surprised how little math is involved in programming that doesn't require it. A significant majority of programming is simply managing conditionals. For example: "when the door opens, turn on the light."

Math comes into place when you need it, and hardly ever comes as a surprise. Additionally, solved problems are generally kept in libraries. For example, you don't need to calculate a sum; simply tell it to calculate a sum for you, because this is a solved problem.

What you're already running into is called "impostor's syndrome." You believe that you are not capable of something to some degree, even though reality says otherwise. You haven't tried your hand at programming, so why worry now? You're inventing problems for yourself before you even got a chance to start.

Just go for it and see what you think. If you don't enjoy it, no biggie. If you do enjoy it, keep going. No obligations 👌

[-] MagicShel@programming.dev 26 points 6 months ago

Math is less important than logical thinking which often, but not always, goes with math skills. More important still is intellectual curiosity. Do you like solving puzzles? Do you like the feeling of breakthrough after a frustrating struggle figuring out how something works? Those will take you a long way.

[-] CaptainBasculin@lemmy.ml 19 points 6 months ago

Math knowledge is not essential; but really useful in programming as you're trying to make the computer do calculations of some sort.

Someone could definitely be too dumb to code though.

[-] swordsmanluke@programming.dev 18 points 6 months ago* (last edited 6 months ago)

Programming success is more closely associated with language skills than math skills.

Yes, if you need to invent a new algorithm you'll need math. Computer Science is definitely mathematics heavy.

But writing a program is all about expressing your intent in a programming language, step by step. It's about "communicating" with the machine (and your users).

All this to say, I got C- and D grades in my math courses in college and still became a successful computer programmer. I'm not pushing the boundaries of computation, but if you need an app for your business, I can build that for you in a reliable, tested, and flexible manner.

Edit: Also! I love Common LISP. It's such an amazing language and I'm so sad that it isn't more popular in the industry.

[-] jwt@programming.dev 8 points 6 months ago

But writing a program is all about expressing your intent in a programming language, step by step. It's about "communicating" with the machine (and your users).

And your coworkers, and 'you a year from now'. For the love of god have some compassion with 'you a year from now' and save him a day of debugging.

[-] Lmaydev@programming.dev 16 points 6 months ago

80% of programming jobs will only require basic maths.

A lot of the time you're glueing together libraries written by much smarter people haha

It's more about logic than maths. People absolutely can find it too hard.

[-] captain_aggravated@sh.itjust.works 12 points 6 months ago

Directly answering your question: Yeah you can be too dumb to program. If you cannot read, write or count, you have learning to do before trying programming. I don't think that's you, because you were able to put several coherent thoughts together.

Let's talk about math class. Because I bet you're not bad at math, you're bad at math class, and this is because for the vast majority of students past about seventh grade, math class is so badly designed I'm going to call it an outright waste of time. Right around seventh grade, they throw away stuff like "If you have three pies and five friends, how do you cut the pies so everyone gets the same amount?" and start with "The transitive immutable property of additive inequality" or whatever. "For the rest of your adolescence and your entire early adulthood, math class is now about your ability to memorize and consistently apply completely arbitrary rules that we're only going to explain to you in nineteen dollar words.

That meme of 6/2(4+2) or whatever where people argue about whether it comes out to 0.5 or 18 is a symptom of this, because it turns out that meaningless math is meaningless. Funny how it's never a problem in shop class or science class where the numbers actually mean something.

Yes, there's math in programming. There's math in programming that your math teachers never even tried to teach you because the kinds of people who write school curricula aren't the kind of people who do things for society. You weren't taught boolean logic, you weren't taught base 2 or base 16 math, etc. Find a good tutorial that works for you and you'll learn it.

I'm also going to give this advice: Don't approach it from the perspective of "I'm going to learn a programming language." Because when you see how big a task that is, you'll be overwhelmed and quit. Instead, pick a project, something you want to build, and say "I'm going to learn how to make a calculator in this language." or "I'm going to make a simple game in this language." You'll learn the parts of the language you need for that, and get it done. Then pick another project, you'll find new aspects to learn about. Keep going in that fashion and before long you'll know how to program.

[-] throwawayish@lemmy.ml 11 points 6 months ago* (last edited 6 months ago)

Nah, no need to worry. I've got a friend that was bad at math and therefore dismissed a career as programmer initially. Eventually, he just couldn't ignore how much programming interested him and did start a Bachelor's degree in Computer Science (after disliking his first year of Finance). A couple of years later and he's the proud owner of a Master's degree in Computer Science while still being relatively bad at math, but it didn't stop him. Nor should it stop you.

[-] theComposer@beehaw.org 3 points 6 months ago

I'm glad it worked out for your friend! However, I've got to know, why did they choose to pursue Finance of all things if they didn't like math??

load more comments (1 replies)
[-] kingaloo@lemmy.world 10 points 6 months ago

You can be but it's very rare to find someone that is.

For programming I always tell folks you need 3 skills: adaptability, self-reliance, and strong problem solving (thinking outside of the box, etc)

The most lacking skill I see new students is self-reliance. Learning to do your own research, knowing when to ask for help and when not to, etc.

[-] CaptDust@sh.itjust.works 9 points 6 months ago* (last edited 6 months ago)

I think it depends what you want to achieve? I learned to program to let the computer do the math for me, it's worked out pretty well so far. I admit I get jealous of the cool visuals, optimizations, and clearer algos people can build with their math experiences, but it certainly hasn't stopped me from making useable webpages, apps and arduino projects.

[-] NostraDavid@programming.dev 9 points 6 months ago* (last edited 6 months ago)

Have too low IQ? Yeah sure, I guess.

Be slower at it than the norm? Absolutely.

I only learned Algebra by learning programming and through that I learned how to think abstractly (abstract just mean "hiding details" - think of how a child draws a car. You can't tell it's colour, brand, model, etc, yet you can tell it's a car, even though all those details are hidden). Once I got that, I was able to follow videos from MIT that taught me more of the maths, giving me a theoretic foundation for programming. Now I'm doing an Algorithm course (also MIT) and feel like an "actual programmer" (because I felt like a "fake programmer" before that - though that still sometimes returns). After that I intend to learn more about SQL because I'm painfully lacking in that regard.

Anyway, I've been at it since 2005 when I was a 20-something kid, and there's always something new to learn.

FYI: I made a dependency graph of a bunch of freely available MIT courses, left is a dependency for stuff on the right: https://thaumatorium.com/articles/mit-courses/

[-] caseyweederman@lemmy.ca 3 points 6 months ago

Woah, you feel like an actual programmer? I thought we were all stuck with imposter syndrome forever!

load more comments (2 replies)
[-] eksb@programming.dev 9 points 6 months ago

Like with anything, you will not know if you are going to be good at it until you spend a lot of time trying and failing and learning. If you enjoy it, just keep doing it.

[-] Omega_Haxors@lemmy.ml 8 points 6 months ago* (last edited 6 months ago)

No, as evidenced by basically the entire industry. Don't fret it, all you have to do is be smarter than your boss, and that's fucking easy.

[-] CADmonkey@lemmy.world 8 points 6 months ago

I wish I could get my head around programming. I've tried learning from books, I've tried learning from codecademy, and all I can do is follow the lessons, I don't understand how I'm supposed to turn all these lines of gibberish into a program that does something. The most common bit of advice I get is "Just make up a project! Find something that you want the computer to do, it's easy and fun!" And I'm over here like... "OK, how?" It's like someone pointing to a pile of metal and a welder and saying "Build something!" Sure, someone who knows how to weld can do that, but most people are going to need more information.

[-] WalrusByte@lemmy.world 7 points 6 months ago

You need to pick a project to start out so you have a goal, then from there it's just google searches for each individual part.

I started learning in High School because I wanted to create a game. I had learned a little bit of Java from a book my dad gave me, but I was kind of in the same spot as you at first where I didn't know how to do anything other than follow along with the book.

But once I sat down with my goal to make a game, and just started Googling stuff, that's when it started to click.

Python has easy syntax, so that might be a good place to start. You could google: "Python game library" and it would pull up something like PyGame. Then you could look up "Pygame tutorial" which would give you a baseline on how to set up a window, etc. If you have a hard time with Python fundementals, you could just google "python for loop" or "python functions".

That's pretty much what my learning process looked like: start with a goal, google how to get started, google each problem as it comes up. I still follow that same process to this day, and I have a CS degree now.

At the end of the day, it's a skill just like anything else. Just takes practice. I don't think anyone is too dumb to learn it, but it depends on how much you want it. If it's not worth the effort for you then you probably never will.

[-] hperrin@lemmy.world 3 points 6 months ago

What I tell people is to find something you regularly do manually, and automate it. I download a lot of torrents, then need to rename the many many files so my media server knows what they are. That’s something that can be automated. A perfect project for someone who’s just learning to program.

load more comments (3 replies)
[-] OwlPaste@lemmy.world 7 points 6 months ago

Not much to do with maths unless you go into calculation heavy industry. Coding is just problem solving and reading bad documentation 95% 0f the time.

[-] Semi-Hemi-Demigod@kbin.social 8 points 6 months ago

The other 5% is writing bad documentation

[-] robinm@programming.dev 7 points 6 months ago

Usually when people say “I suck at maths”, it means that they are bad at doing manual calculus. Maths is extremely useful in programming, but it’s absolutely not the same kind of math. I don’t think that the grade you had in math at school will influence in any if you will be good or bad in programming.

[-] matejc@matejc.com 7 points 6 months ago

I am not particularly good at math myself, but I like to program stuff... If I am any good at it... decide for yourself: https://github.com/matejc?tab=repositories ... anyway, if you have interest of doing something, stop the doubt, just do it.

[-] chicken@lemmy.dbzer0.com 7 points 6 months ago

Yes but it's a low bar and failing math in school doesn't mean much. Just try writing programs, be a little stubborn about it, and see how it goes.

[-] ebits21@lemmy.ca 6 points 6 months ago

You can definitely learn to program without being great at math. Obviously, depends on what kind of programming.

If you want a computer science degree though? You’ll need the math.

[-] porgamrer@programming.dev 6 points 6 months ago

Most common reason for being bad at programming is finding it boring and thinking the tools are needlessly obtuse.

If anything this is a sign of great intellect.

load more comments (1 replies)
[-] guy@lemmy.world 6 points 6 months ago

People equate maths to programming, but I think if it more as a creative, problem solving field. Most real world coding problems don't have a precise single correct way to solve them; it's more like architecting a building: you have multiple goals and a lot of freedom in how you achieve them and to what degree

[-] MonkderZweite@feddit.ch 5 points 6 months ago

Let's see. I don't like math syntax. And you can hound me with Haskell. But i like Python and Rust and Shell. So i guess, not generally.

[-] NikkiNikkiNikki@kbin.social 5 points 6 months ago

I failed math 3 years in a row in high school and I made plenty of minecraft clones using nothing but logic and basic algebra. Math isn't as important to programming as people say, I still can't do division or multiplication on paper, but in a program, I can make it do that for me.

[-] christopher@programming.dev 5 points 6 months ago

Can you follow Dave Touretzky's book? The 1990 PDF version is free.

[-] big_slap@lemmy.world 5 points 6 months ago* (last edited 6 months ago)

i would say no, as there can be programming you can begin that doesn't involve math. what I would recommend is to begin your own project by looking to see what you can automate in your life.

when I was in middle school, I told a teacher I wanted to program when I got older, and she scared me because she said that involves a lot of math. at the time, I hated math, so I avoided programming completely. it wasn't until I was 24 that I gave it a shot and was so upset at how misinformed I was. I wish I could turn back time, but oh well.

is there something you do at your current job that you think can be automated?

[-] ninjan@lemmy.mildgrim.com 5 points 6 months ago

What even is "learn how to code" these days? I work in PowerShell, Shell, Docker Compose, and various xml, yml, json config files. Do I code? When I debug a particularly nasty DNS bug using netcat, dig, nsupdate and other tools it certainly feels like when I was coding Java. And when I push a CI-CD workflow to our tools git repo I work in many of the same tools as the Developers. But I'm not even sure I'd call what I do coding.

That said you can be too "dumb" (hate that word) or rather disadvantaged that you can't figure out doors and then coding is probably a step too far. But if you can grasp the English language and use it to construct sentence and describe a work task to a colleague for them to perform with it then you can certainly learn how to build at least simpler programs in a programming language, it's really not all that different. It's the language of how to tell a computer to solve a task.

[-] Graphy@lemmy.world 5 points 6 months ago* (last edited 6 months ago)

Because of problems at home I skipped maybe 80% of high school and lucked my way into college. I’m probably as dumb as a programmer can be but still do it professionally.

I hate the “if I can do it anyone can” remarks but in this instance it’s totally true

[-] mhredox@lemmy.world 5 points 6 months ago* (last edited 6 months ago)

I have been programming for years, and although I did minor in math, I can only think of 2 times that I have ever needed any math beyond that of highschool algebra. And those were very niche one-off situations. As others have stated, logic is much much more important, and a good understanding of Boolean logic will take you MUCH farther than any other math related discipline. But even still, logic is, well.... logical if you just think about it. You really don't need to take any courses on it.

I think the main barrier for entry is that there are simply too many options and different paths to go down when beginning to learn. Also, there just aren't too many really cool things you can do as a beginner that are truly interesting and will keep your attention. The typical "hello world" exercises are boring as hell and of course people aren't going to keep being engaged when they're bored.

That's why I usually recommend beginners who want to learn to start with an Arduino, regardless of what their final goal language is. Generally speaking, once you learn one language it's pretty easy to learn others, as the foundational knowledge is mostly the same i.e. variables, loops, functions, etc.

What I think is great about the Arduino is that your code produces a physical, tactile response. Usually one of the very first programs you write (which can be completed in probably 10 minutes by a beginner) is making an led flash something like "SOS". This is leaps and bounds more interesting than something like "hello world" and will usually keep you interested and engaged much longer while learning the basics.

I started on an Arduino many years back after stumbling upon a Paul McWhorter lesson randomly on Reddit. After becoming pretty proficient with an Arduino, I transitioned over to JavaScript and started learning web development, and I'm now a full time engineer.

[-] OpenStars@kbin.social 5 points 6 months ago

Keep in mind that many math teachers are incompetent at their jobs - some of that may have had little to do with you.

Though you are correct that math does involve patience, a willingness to fail often until you eventually get it right, and a logical progression of steps where at each stage you keep track of the results of previous steps.

I'm saying that you can most likely do it! Though it may be frustrating, especially at first, while you sharpen those skills that math should have taught you but bc of cheapening out in education, you may have skipped over. It's all up to you now though... my advice is that even if it takes you 10 to 100 times longer than someone else to do some little thing, so the fuck what, the important thing is that you can do it! (And if you practice, it gets a heck of a lot easier over time) I love this quote (from C.S. Lewis):

Don't judge a man by where he is, because you don't know how far he has come.

[-] Kolanaki@yiffit.net 4 points 6 months ago

I suck at math and I know programming fairly well. It's more about logic and order of operation than anything. Knowing when to add, subtract, multiply or divide. At least when it comes to math knowledge needed. I feel like most people, even the worst at math, know when to use certain operations even if they couldn't solve the equation they wrote.

[-] averyminya@beehaw.org 4 points 6 months ago

You doing C++? Avoid.

You doing basically anything else? You'll prob be fine with regards to math.

[-] tiny_electron@beehaw.org 3 points 6 months ago

Find something you want to create in Lisp then do it! You will face problems, but you will always find solutions online and that's how you will learn and good at this. Anyone can learn I think, it's a matter of motivation like everything else, and having a goal helps a lot.

[-] Nommer@sh.itjust.works 3 points 6 months ago

I'm starting to believe I am. Been at this for a year and I still don't understand how to use methods like .filter() or .map() despite reading and practicing, it's all just smashing the keyboard until it works. I know some other devs will come in and joke they do the same thing but no, I feel truly lost when trying to figure this out.

[-] corytheboyd@kbin.social 5 points 6 months ago* (last edited 6 months ago)

It took me a long time to really grok iterative methods like this, but once it clicks, you will absolutely know and feel like you have unlocked a new super power.

It starts with completely understanding that you are just passing functions as arguments, and those functions are being invoked, in a loop, for each item in the collection. Once you have that concept internalized, you should then learn the difference between filter, map, reduce, etc. The general difference boils down to: 1. How the iterator function changes the value being iterated over (most don’t) 2. What does the iterator function itself return (i.e. map itself, not the function passed into map. map and filter both return a new list, reduce returns the data structure being reduced into)

I would skip trying to understand reduce at first, though it’s the method you can implement all other such iterative functions with. The derivations like map and filter are just easier to start with.

And again, seriously, it took me like 2 years to completely internalize all of this, even after CS classes.

load more comments (5 replies)
[-] DroneRights@lemm.ee 3 points 6 months ago

Primary and secondary school math is mostly arithmetic and memorisation. It's not until late high school and university when you get to do real math, which is a study of logic and proofs. If you were horrible at math in school, you might still have the makings of a great mathematician.

[-] Grass@sh.itjust.works 3 points 6 months ago

Just try it and decide for yourself. Make the computer do the math. I've done tons of angle stuff with quaternions in code and what the fuck even is a quaternion. What even is a matrix or imaginary number. Computer doesn't care that I don't know and just does what I tell it to. Results may not be what I hoped for sometimes but I can usually figure out what I did wrong after seeing the differences in the result.

load more comments (1 replies)
[-] janabuggs@beehaw.org 3 points 6 months ago

Programming is all about understanding relationships. You make a thing. Great. How do you identify thing? How do you reuse thing? You identify what it is and what it does. Do other things do what your thing does? Great! Make an identifier for that shared ability. Now you can call the shared identifier with other things and so on...

Anyways, I sucked at algebra which seems to be the most commonly identified issue with those of us "bad at math". I have never used more than basic algebra (something + something = something aka x + y = z). Maybe in 50s and 60s when programming was extremely hard you needed to be good at math, but that's absolutely not the case any more.

load more comments
view more: next ›
this post was submitted on 21 Dec 2023
101 points (93.9% liked)

Programming

16207 readers
2 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS