Skip to main content
Post Closed as "Duplicate" by gnat, Andras Deak -- Слава Україні, Daniel, Michael Gaskill, MachavityMod
deleted 62 characters in body
Source Link

I hang out in the Haskell tag a lot and there are frequently questions from people learning functional programming for the first time. It

It is usually pretty obvious who they are, but I like helping people learn my favorite language. FrequentlyFrequently someone will ask how to do something in the way one would solve the problem in an imperative language. TechnicallyTechnically, it can be done using advanced language features, but it is probably better to approach the entire problem in a different way.

In these cases, is it better to answer the question asked, or to suggest how to solve the problem better given in a functional language? (or perhaps both?)

I hang out in the Haskell tag a lot and there are frequently questions from people learning functional programming for the first time. It is usually pretty obvious who they are, but I like helping people learn my favorite language. Frequently someone will ask how to do something in the way one would solve the problem in an imperative language. Technically, it can be done using advanced language features, but it is probably better to approach the entire problem in a different way.

In these cases, is it better to answer the question asked, or to suggest how to solve the problem better given in a functional language? (or perhaps both?)

I hang out in the tag a lot and there are frequently questions from people learning functional programming for the first time.

It is usually pretty obvious who they are, but I like helping people learn my favorite language. Frequently someone will ask how to do something in the way one would solve the problem in an imperative language. Technically, it can be done using advanced language features, but it is probably better to approach the entire problem in a different way.

In these cases, is it better to answer the question asked, or to suggest how to solve the problem better given in a functional language? (or perhaps both?)

Source Link
John F. Miller
  • 27.2k
  • 16
  • 5

How to answer a question when the right answer may not be a good idea

I hang out in the Haskell tag a lot and there are frequently questions from people learning functional programming for the first time. It is usually pretty obvious who they are, but I like helping people learn my favorite language. Frequently someone will ask how to do something in the way one would solve the problem in an imperative language. Technically, it can be done using advanced language features, but it is probably better to approach the entire problem in a different way.

In these cases, is it better to answer the question asked, or to suggest how to solve the problem better given in a functional language? (or perhaps both?)