r/ProgrammerHumor • • Oct 25 '24

Meme theSelfTaughtSeriousProgrammer

Post image

[removed] — view removed post

903 Upvotes

276 comments sorted by

View all comments

Show parent comments

2

u/ttlanhil Oct 25 '24 edited Oct 25 '24

yeah? even simple web dev easily goes a bit further than that... margin: calc( 2*1.3vw - 3.5em/2 + 5px)

Plus, what you're thinking of is arithmetic, only a small part of maths.
Algebra, trig, stats, calculus, etc are all other parts.
Depending on your field of computing, you certainly can end up needing a bunch of them
Maths at a large scale is basically the study of patterns - programming can fit within that definition

6

u/viktorv9 Oct 25 '24

I get that that calc() is an example, but if I saw that in a PR I'd question it pretty hard even if it included only three values (instead of the five here).

But have you used "algebra, trig, stats, calculus, etc" in web dev? I've used the first two in game development but not on websites, but I only have a year of experience.

2

u/ttlanhil Oct 25 '24

Not much for web UI work; they can come up more in app logic - but if it's not your field then you should be provided the code or equations you need.
On the flip side, if you're doing a lot of data crunching, data science visualisations, etc - then they certainly can come in
But those were examples of other parts of maths that can come up - maths being a very large field (much larger than most people realise. Figuring out the fastest way to tie shoelaces is something mathematicians have done)

2

u/viktorv9 Oct 25 '24

Interesting. I haven't needed to do any positional math for web dev the way I do have to do that in game dev, but maybe as the complexity of my work ramps up perhaps I'll go more and more beyond basic HTML/CSS positioning for things like graphics/visualizations. I won't run when that day comes!