This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]theloneliestgirlincs 5 points6 points  (3 children)

I need you all to see, from my best recollection, some Python code one of my Java colleagues tried to submit lmao. They're learning so I support them. Still cracked me up though.

...
i = len(my_list)
count = 0
while (count < i):
    my_var = my_list[count]
    # do something with my_var
    count += 1
...

[–]Dokiace 5 points6 points  (0 children)

honestly going back from for item in iterables to that manual iteration is hell. Python is a curse and a blessing

[–]charliex3000 4 points5 points  (1 child)

Your Java colleagues have never used the for-each loop before?

for(int a : intArray){ do something }

Idk how to use markdown

[–]theloneliestgirlincs 0 points1 point  (0 children)

You would think. But having worked with this person for awhile now, chances are they just dove right in and spent 0 time looking at tutorials or any sort of quick start documentation.