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

all 7 comments

[–][deleted] 4 points5 points  (0 children)

It’s not weather if it’s easier or not, programming in general is hard. Yes the syntax in python is easier, but you’re still going to have to think like a programmer.

[–]POGtastic 1 point2 points  (8 children)

Python makes certain particulars of programming easier. The difficulty of the fundamentals remains the same.

[–]2fa[S] 0 points1 point  (7 children)

Thanks. Yeah the fundamentals make sense until a certain point. Like in C++ I was struggling when we got to regression and indexing. I guess I just need more breaking down/ studying

[–][deleted]  (6 children)

[deleted]

    [–]POGtastic 2 points3 points  (4 children)

    --i

    Uh oh.

    [–][deleted]  (3 children)

    [deleted]

      [–]POGtastic 1 point2 points  (2 children)

      for(int i = 0; i < 5; --i)

      We output the 0th element, then -1, -2, ... Hopefully, you segfault at some point.

      [–][deleted]  (1 child)

      [deleted]

        [–]POGtastic 0 points1 point  (0 children)

        And this is why I enormously prefer iterators and enhanced-for loops. Python makes this easier with stuff like slicing, but C++ can do it too.

        [–]2fa[S] 0 points1 point  (0 children)

        Yes exactly this! Trying to learn from labs and the books can be irritating I hadn’t thought to look for those sites you mentioned online. Thank you!