3 ms·
It's definitely the case that once you have a hammer, you begin to see the nails. A developer I know (a very good one, but without much of a math background) s
by yummyfajitas 17y ago
It's definitely the case that once you have a hammer, you begin to see the nails.
A developer I know (a very good one, but without much of a math background) showed me a network routing problem he had. The problem: he was trying to organize a distributed system to process data and pass it to the end user. After spending a week or two doing it by hand, he wrote a python script which played around with parameters automatically (for a fixed topology).
(See http://www.sce.carleton.ca/faculty/chinneck/po/Chapter10.pdffor http://www.sce.carleton.ca/faculty/chinneck/po/Chapter10.pdf... an example of the type of problem.)
I showed him how to set it up as an LP problem and use glpk to solve it, which imposed no restrictions on topology. He immediately resolved to learn LP. He told me that since then, he used LP to solve several problems he would not otherwise know how to solve (or at least would have solved mainly by fiddling/guess/check).
- kirubakaran 17y agoFixed link : http://www.sce.carleton.ca/faculty/chinneck/po/Chapter10.pdf http://www.sce.carleton.ca/faculty/chinneck/po/Chapter10.pdf
- jshen 17y agoon the flip side, I work with a bunch of math nerds (machine learning experts and what not) and they often write terrible abstractions and apis. There are a lot of skills that are important in software dev, but I feel we often act as if the math skills are more important than the rest, and I'm not sure that they are in general. Having them is definitely a plus. Also, math is a very broad field, and a lot of it is specific to certain problem domains. I'm just rambling, not sure if I have a real point ;)
- eru 17y ago> [math nerds] often write terrible abstractions [...] Category theory to the rescue!
- jshen 17y agoha, I think this is how we got into this mess ;)
- eru 17y agoActually computer guys may write brilliant software--but most of them have historically been weak in coming up with good abstractions. In the last years mathematical abstractions have become more popular. Think of functional programming and other declarative languages. One early example of the same thing have been regular expressions and grammars.
- jshen 17y agofunctional only helps when you don't have to deal with things outside of your programs memory space. Functional starts looking the same once you start grabbing stuff from databases, calling rest services, pushing stuff to files, etc
- eru 17y agoYou can get a good (simplified) overview of XMonad at this site (http://cgi.cse.unsw.edu.au/~dons/blog/2007/05/01#xmonad_part1_model http://cgi.cse.unsw.edu.au/~dons/blog/2007/05/01#xmonad_part...). They show how to deal with lots a very side-effect happy domain, and still have a nice and clean design.
- dagw 17y agoAs a math guy I know I'm guilty of looking at a problem and trying to map it to a general math problem, solving that problem, and then trying to map that solution back into code, when really I just should have gone for the brute force three line for loop. When you know enough math you tend to see everything as a potential math problem, and sometimes that can get you into trouble.