I proposed some exercises and I saw they iterate in lists like this:
for i in range( len( list ) ):
What kind of python teacher did they have?
@ekaitz_zarraga I have been using python enough that when I looked at that bit of code I couldn't figure out what it was supposed to do.
@inmysocks let me tell you what it does:
It is an idiom to make other programmers know that the teacher that taught you this is a complete incompetent.
@ekaitz_zarraga ahh, then it looks like it works very well.
@inmysocks Perfectly, right?
> What kind of python teacher did they have?
A C programmer, or a Java programmer who hasn't been paying attention since 2008.
@gcupc I think he is a guy that studied Economy and thinks he knows how to code because he wrote a couple of 20-line R scripts.
If the guy is the guy I think... I heard this dude say:
- I don't use functions, just some loops sometimes.
@ekaitz_zarraga I've met a guy from the scientific side of Python who would flat out refuse to use any convenient Python idioms and resort to C-like code on the premise that it should be readable for people not familiar with Python. Put like that it kind of sounds like it makes sense, but then why have different languages at all, if you constrain yourself to assignments, if/while/for and calling functions…
@isagalaev If you like C idioms use C. right?
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!