Programming *into* a language vs. writing C code in Ruby

Posted by bastibe on Programmers See other posts from Programmers or by bastibe
Published on 2012-02-27T08:32:10Z Indexed on 2012/12/14 11:20 UTC
Read the original article Hit count: 255

Filed under:
|

Code Complete states that you should aways code into a language as opposed to code in it. By that, they mean

Don't limit your programming thinking only to the concepts that are supported automatically by your language. The best programmers think of what they want to do, and then they assess how to accomplish their objectives with the programming tools at their disposal. (chapter 34.4)

Doesn't this lead to using one style of programming in every language out there, regardless of the particular strengths and weaknesses of the language at hand?

Or, to put the question in a more answerable format:

Would you propose that one should try to encode one's problem as neatly as possible with the particulars of one's language, or should you rather search the most elegant solution overall, even if that means that you need to implement possibly awkward constructs that do not exist natively in one's language?

© Programmers or respective owner

Related posts about General

Related posts about code-complete