whats the number of times the letter t appears in:
q: connection between programming language and solutions this is a rather philosphical / theoretical question.
i am interested in the question, how language (in this case programming languages) and thoughts (= solutions of problems) are connected.
i want to know, whether the programming language influences the solutions, i can come up with.
for example:
i program something in haskell (functional) and in java (oop). do the general solutions differ fundamentally or are they - aside from syntactic sugar - the same? do i not just use different algorithms and a different software design, but do i fundamentally change my whole point of view, my concept and my view of the software, depending on the paradigm i am starting from?
(note: i stands for a generic programmer)
i know, that this question is pretty hard to answer, but i find it very interesting, so i wanted to know, whether somebody has (and might share) a opinion about this.

a: without getting into the sapir-whorf hypothesis, i will make the claim that the language, framework and tools (collectively, your programming ecosystem) profoundly influences and shapes the way you think, in terms of writing software.
its not hard to see why this is true.  consider a typical line-of-business application.  traditionally, we would have written sql statements to retrieve data out of a database and produce a report.  but then orms came along, and now we can retrieve data into collections of objects.  eventually, someone pointed out well, why do we even need sql at all, and the nosql movement was born.
how do these different paradigms affect the way programmers think?  well, in sql, if you want to relate two tables of information together, you perform a join.  the nosql guy has to loop through his collections to find pairs that match.  the sql guy thinks in terms of sets and joins.  the nosql guy thinks in terms of collections and loops.
in terms of the programming language itself, your programming experience (and the way you think) will be strongly influenced by:


*

*what facilities the language offers, 

*at what level of conceptual abstraction the language is (i.e. is it low-level or high-level), 

*what paradigms the language offers (i.e. functional, imperative, object-oriented), and 

*what kind of assumptions the language designers make (e.g. many ways to do a thing vs. the one true way).  


eric raymond sums it up eloquently when he speaks of the benefits of learning lisp:

lisp is worth learning for the profound enlightenment experience you
  will have when you finally get it; that experience will make you a
  better programmer for the rest of your days, even if you never
  actually use lisp itself a lot.

for more about how language influences the way we think, see here:
http://scienceblogs.com/cognitivedaily/2005/05/13/does-our-language-affect-our-t/

a: i think its a good question, not easily answered.
all i can give you is my take on it.
theres something in your head - a problem and its solution.
the separation between those is not always clear, but they are stated in a mental language appropriate to the problem.
you can get a hint of what this language is by discussing the problem with another person.
that reveals a network of concepts in the form of words.
if a computer program is to be part of the solution, then the problem/solution needs to be communicated in keystrokes to the machine. to do this it is probably necessary to educate the machine about the problem domain, so you can tell it what you want.
when you define a datatype or write a procedure or otherwise define things in a computer language, you are augmenting that language with the concepts appropriate to your problem. you are turning it into a dsl (domain-specific-language in the lingo).
there is a lot of skill involved in this step, and different programmers have learned different ways to do this.
now if youre asking about different programming paradigms like oop, functional programming, logic programming, etc. etc., which of those shortens your path to creating the dsl that you want?
again it depends on training.
(if all you have is a hammer, everything looks like a nail.)
i encourage people to have as diverse a set of mental tools as possible.
the extent to which youve created a dsl for your problem is a matter of degree.
in the ideal extreme, it should only be necessary to state your problem, where the solution is built into the dsl.
a measure of how well youve done this is to consider incremental changes to the problem and ask how much editing in the language is necessary to effect them without errors.
the ideal is 1:1. 1:5 is not too bad. ive seen 1:50 and thats not good.
the bigger that ratio is, the harder it is to get your idea across to the code, and the harder it is to avoid putting in bugs.
(i dont know if it would help to give you an idea what i mean to show how i tried to do this in the domain of dynamic user interfaces.)

user
The text includes three hundred and seventy-two "t"s in total.
assistant