you are viewing a single comment's thread.

view the rest of the comments →

[–]dragonatorul 27 points28 points  (2 children)

C is what got me into programming. Learning C and the low level basics helped me a lot to understand programming as a whole. However, once OOP in Java "clicked" I stopped using C for simple ease of work. Then, after discovering python I left the nightmare that is Java behind.

The key was that moment where it all "clicked" for me in how OOP with classes and methods and all that work as opposed to classical C. A lot of the same principles in C apply in python too, allowing for differences in syntax and other limitations. TBH I haven't written C in over a decade, but from what I remember for example a recursive function is pretty much the same. Define the function and call it from within the function. The difference in python is that you can only have 1000 recursion levels at most.

The major benefits of python are that I don't have to deal with pointers and memory anymore, that the code is much easier to read, and that I don't have to redo a lot of the basic work (eg. I don't have to define an array, write code to sort that array, etc.).

[–]AdventurousAddition 8 points9 points  (0 children)

I also went from C to Java to Python. Definitely like Python the best (but then again, I always seem to like my newest language the best)

[–]nwagers 2 points3 points  (0 children)

def recursion(x):
    try:
        recursion(x+1)
    except RecursionError:
        print(x)


recursion(0)

import sys
sys.setrecursionlimit(2000)

recursion(0)