Can I become a good programmer without math and algorithms knowledge?

Knowledge of algorithms has very little to do with programming skill.  As some random dude* on the internet once said:  "When in doubt, use brute force."  Let's unpack what this means.


A good programmer knows how to implement a dictionary algorithm in Python.  A great programmer knows that someone smarter than she is has already implemented a dictionary as part of the python language, and trusts that it will work well enough for most purposes.


A good programmer tries to pick the best algorithm in terms of performance.  A great programmer picks the simplest non-stupid algorithm and only considers changing it later if performance is an issue (it almost never is), if changing the algorithm will significantly improve overall performance (it almost never does), and if the performance improvement justifies the cost of making the change (how many dollars is a 5% overall improvement worth?).


Good programmers have a deep understanding of big-O notation.  Great programmers know that in the real world, battles are won and lost in the coefficients.  (This is particularly true in kernel and compiler coding.)


Good programmers know that they'll spend 98 days/year debugging and 2 days/year doing performance optimization.  Great programmers tilt that ratio towards optimization by choosing simpler algorithms that are easier to understand and easier to debug.




To give an analogy:  you don't really need to understand assembly language to be a great programmer, unless you happen to be writing operating system or compiler code.  Likewise, you don't really need a deep understanding of algorithms unless you're writing mathematical libraries, in which case, you do.  
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值