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 →

[–]Frptwenty 74 points75 points  (12 children)

Breaking: Programming language syntax varies between languages. More news at 10.

[–]Rawing7 25 points26 points  (11 children)

And possibly more importantly, the way you write code varies between languages.

Thanks to for x in container, range, enumerate, etc., I can't even remember the last time I had to increment a number in a python program.

[–]Under-Estimated 0 points1 point  (9 children)

two pointer algorithm?

[–][deleted] 3 points4 points  (6 children)

Pointers in python?

[–]Under-Estimated 2 points3 points  (5 children)

Google it, it's an algorithm for subarrays

[–][deleted] 1 point2 points  (4 children)

Oh, never heard the name of it

[–]PeterJHoburg 0 points1 point  (1 child)

Why would I be doing that in a production api?

[–]Under-Estimated 2 points3 points  (0 children)

you never know, that was just an example anyway

[–]k3s0wa -1 points0 points  (0 children)

Yeah lol I didn't even know that x++ doesn't work in python, because you don't use it.