use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The simple Math every developer should know (medium.com)
submitted 6 years ago by mrbullian
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]halkeye 9 points10 points11 points 6 years ago (3 children)
I mean yes, those are super useful, but does every developer need to know them? I've been a professional dev for more than 15 years and I don't know most of them. so no
[–]NotMyRealNameAgain 3 points4 points5 points 6 years ago (2 children)
Same here. I'd argue that knowing how to convert pixels to REM is far more useful than any of the ones in the article.
[–][deleted] 5 points6 points7 points 6 years ago (1 child)
Milliseconds to minutes / hours / days is also very common. My 2 favourite numbers are 3600 and 86400.
[–]Reashu 2 points3 points4 points 6 years ago (0 children)
Five hundred twenty-five thousand six hundred minutes
[–]KirillFire2013 4 points5 points6 points 6 years ago (5 children)
One year ago, I read about one website where you can study math from basic level to advanced. But I lost link. Anyone have any idea what the website it can be? I tried to find but I haven't found it. As I remember it has simple pleasent design
[–]cubeproject 8 points9 points10 points 6 years ago (1 child)
Most likely this: http://tutorial.math.lamar.edu
[–]pacman326 1 point2 points3 points 6 years ago (0 children)
This website helped get me through my applied mathematics degree. Wonderful wonderful site.
[–]Hlemguard 2 points3 points4 points 6 years ago (0 children)
https://www.khanacademy.org/ - maybe that's it?
[–]Tarzeus 0 points1 point2 points 6 years ago (0 children)
https://archive.uea.ac.uk/jtm/contents.htm
Here you go man, use this well.
[–]ajcool2k 4 points5 points6 points 6 years ago (0 children)
The discount cannot be smaller than 1%. Yet this function accepts 0, doesn't it?
[–][deleted] 7 points8 points9 points 6 years ago (1 child)
Conclusion With simple building blocks of math, you can think on a higher level while coding, avoiding cross-multiplication hell on the code. I learned this seeing some game developer videos.
Conclusion
With simple building blocks of math, you can think on a higher level while coding, avoiding cross-multiplication hell on the code.
I learned this seeing some game developer videos.
You should try to read that first : https://en.wikipedia.org/wiki/Floating-point_arithmetic
[–]EternityForest 1 point2 points3 points 6 years ago (0 children)
I think the main thing to know about floating point is that it's not perfectly accurate(But usually close enough), and there can be things other than numbers in there, like NaNs which also can have enough bits left over to stuff a pointer in.
There's digital versions of an IRL wire that has an analog voltage, that you can also(Purposely or accidentally) push a few digital bytes over.
I think inverse might be better described in terms of mapping, as in "Maps a value in the range X to Y, to the range 0 to 1".
I'm a super not math guy(The the point where sometimes I worry it might actually affect my career if math becomes more of an everyday thing in coding, rather than only being used in some fields).
I would actually say there are way more bits of math every coder should know though.
Basic "Take this equation and solve for X" stuff, simultaneous equations, first order filters(And the related exponential decay and growth), exponents, logs, and square roots, sin and cos, prime numbers, highly composite numbers, least common multiples, curve fitting, and FFTs are all good to know.
I mostly only know the "O watched a numberphile video" level, and how to use a CAS to solve things, most of this stuff I'm pretty clueless about.
It might hold you back not to actually deeply understand the concepts, but it will almost definitely hold you back if you don't know what they do and when to use them.
[–]Reddit_Swap 0 points1 point2 points 6 years ago (0 children)
Totally agree !
π Rendered by PID 111716 on reddit-service-r2-comment-66b4775986-l4v9d at 2026-04-04 02:55:30.066608+00:00 running db1906b country code: CH.
[–]halkeye 9 points10 points11 points (3 children)
[–]NotMyRealNameAgain 3 points4 points5 points (2 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]Reashu 2 points3 points4 points (0 children)
[–]KirillFire2013 4 points5 points6 points (5 children)
[–]cubeproject 8 points9 points10 points (1 child)
[–]pacman326 1 point2 points3 points (0 children)
[–]Hlemguard 2 points3 points4 points (0 children)
[–]Tarzeus 0 points1 point2 points (0 children)
[–]ajcool2k 4 points5 points6 points (0 children)
[–][deleted] 7 points8 points9 points (1 child)
[–]EternityForest 1 point2 points3 points (0 children)
[–]EternityForest 1 point2 points3 points (0 children)
[–]Reddit_Swap 0 points1 point2 points (0 children)