Re:On anthropomorphism in science (1985)
by elihu on Tuesday May 30, 2017 @09:13PM
(#14449837)
I suppose learning a language that forces you to work in a declarative style (such as Haskell) rather than imperative might be enlightening, but if that's not practical you could try using declarative style in C and/or Python. For instance, don't use global mutable variables and whenever possible write functions that take in const arguments and produce some return value without changing the state of anything.
[ Parent
| on HN ]
I'll definitely check out Haskell, thanks for the input!
Re:On anthropomorphism in science (1985)
by chickenfries on Wednesday May 31, 2017 @11:11AM
(#14453132)
Another language I might suggest for exposing yourself to declarative / functional programming is Erlang or Elixir. I've tried to learn Haskell myself but the number of new concepts can be really daunting. Erlang is a little easier to get going with, and exposes you to many similar declarative concepts.