java - Mapping Languages to Paradigms -


I recently read Eric Steven Raymond's article "How To Become A Hacker" and I like 5 major languages ​​(he suggests learning tips like Python, C / C +, Lisp, Java, and Pearl) today As a way to cover the main programming criteria in use.

His advice is that it is not important for a programmer who knows in specific languages, for two reasons, it is important to know the various methods of programming.

The first reason is that To make a new language trivial, once you understand the general approach to how to solve it.

The second reason is that there is no best language - they all dislike business, it would be best to know which type of language was chosen to give a specific type of problem is. This is what I am most interested in, but I have a problem that is really making a difference between 5 languages. Lots of overlaps occur.

So my specific question is that these 5 languages ​​have been given, their intention is the programming paradigm, and give an example of a kind of problem, it would be most appropriate.

Example answer (and I'm not sure this answer is correct):

  Pearl - mainly a functional language - great for quick text replacement in many files command line.  

I have been posting some other similar questions, but I especially want to know about these 5 languages. I'm just looking for a starting point, nothing is detailed, thanks in advance!

I think you are getting it wrong. Essar himself says, this is not language , it matters, it is paradigm so when you say that

  1. Pearl is a functional language
  2. Very good for quick text replacement in many files from the command line

You can use the main points of a functional language Are missing one, which are great for building large systems using the following methods: Ach Solving small (well-chosen) small problems with well-prepared tasks, until we have a complete system, we have cut the code duplication that we are using which algorithms are the same And incorporate their similarities by using higher order tasks. We reduce the behavior of the branch by using the high order function to create the function which we need for any situation.

Similarly, I can say that

  1. Java is primarily an OOP language
  2. Write a large, strong system Well, for that

but remember that point about the OOP language code domain with problem About modeling concepts, so that we leave the problem in a clear way. We have reduced the duplication of code that is related to the related concepts and that code has been terminated which relates to the same parallels in those classes which describe it. We reduce branch behavior by providing different subspecies of a separation correctly with different behavior.

Entire, the primary point of programming languages ​​and their respective criteria is

    , which does not allow you to think about anything that does not affect the quality of the program, if it was not (deserving) desirable, we would write all the machine code.

  • This is accomplished by providing a set of tools for construction residues (with other things)

  • Just make sure that you learn that when other people get better solutions (This means that they will eventually get good too;) I think that you primarily mean "good solution", the mapping of ideas from " code Clearly for Modulo Concerns about Efficiency, which compels you to write in the language of C (C?)?


Comments