0 Replies - 2967 Views - Last Post: 02 August 2012 - 01:18 PM

#1 modi123_1  Icon User is offline

  • Suitor #2
  • member icon

Reputation: 8390
  • View blog
  • Posts: 31,200
  • Joined: 12-June 08

[link] Does category theory make you a better programmer ?

Posted 02 August 2012 - 01:18 PM


An interesting write up and examples of using a odd math in the day to day programming world. Fun stuff!


How much of category theory knowledge should a working programmer have ? I guess this depends on what kind of language the programmer uses in his daily life. Given the proliferation of functional languages today, specifically typed functional languages (Haskell, Scala etc.) that embeds the typed lambda calculus in some form or the other, the question looks relevant to me. And apparently to a few others as well. In one of his courses on Category Theory, Graham Hutton mentioned the following points when talking about the usefulness of the theory :
  • Building bridges—exploring relationships between various mathematical objects, e.g., Products and Function
  • Unifying ideas - abstracting from unnecessary details to give general definitions and results, e.g., Functors
  • High level language - focusing on how things behave rather than what their implementation details are e.g. specification vs implementation
  • Type safety - using types to ensure that things are combined only in sensible ways e.g. (f: A -> B g: B -> C) => (g o f: A -> C)
  • Equational proofs—performing proofs in a purely equational style of reasoning

Is This A Good Question/Topic? 0
  • +

Page 1 of 1