DEV Community

Discussion on: How to Learn a New Programming Language or Framework

Collapse
 
hawicaesar profile image
HawiCaesar

Please explain this point in more detail Code idiomatically

Collapse
 
codykatz4 profile image
Cody Katz

I think he means don't code in Python as you would in C#. Don't project the coding style from previous languages that you've learned onto the language that you are currently learning.

In his example Python has what are called list comprehensions that allow you to initialize list values(in this case a matrix) with very few lines of code. C# lacks this feature forcing you to write out for loops in full.