News for hackers. Stuff that matters.
Re:Ask HN: What are some important math topics every program... by Aheinemann on Friday June 05, 2015 @06:20PM (#9668569)
This notion that you do not need any kind of mathematical knowledge is widespread.

Ever tried to delete 1 000 000 files in Windows Explorer ? Select All, Shift delete ?

Takes ages. Why ? because Explorer creates a list of files to be deleted by adding one after the other to the list while updating the screen.

del bak\[asterisk.asterisk] /S /Q /Y >NUL takes some time, but is way faster.

rmdir bak drops the entire directory and returns instantly.

The difference ? O(n^2) versus O(n) versus O(1)

Useful knowledge ? ... possibly.

Even then 'just' programming a website, winging full stack or doing anything worthwile you can get by without knowledge, but it sure helps...

P.S. how do you escape an asterisk ? Even google didn't know / i didn't find it...

There are no comments on this comment yet.