Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Chopkinsca

Members
  • Content count

    1651
  • Joined

  • Last visited

3 Followers

About Chopkinsca

  • Rank
    Nothing

Recent Profile Visitors

832 profile views

Single Status Update

See all updates by Chopkinsca

  1. Actually, it is just an 'engine' for a simple game I had programmed in basica. I have very limited coding knowledge, but I have enough to know how sad my code is. I have no idea what directions to take to do it properly or anything. The fact I did this much is quite amazing.

    You are warned, it is not pretty.





    code:
    Array

    The same thing, but in basica was this awful mess:
    code:
    Array

    1. Show previous comments  16 more
    2. AndrewB

      AndrewB

      Okay, but that raises the following question: Since his program isn't object-oriented anyway, why say "omg nooo global variables"? Shouldn't the gripe be "omg nooo non object oriented programming"?

      I really wouldn't complain about global variables or a non-OO approach in a program as simple as this.

    3. Cyb

      Cyb

      Even without OOP, global variables make reading a program, especially one that gets large and complex (which this is not), a bigger pain in the ass. You'll be reading a file and all of a sudden a variable comes out of nowhere and you have no record of its type (because it's not declaired locally or passed to the function), what it might hold, etc etc. It's just a pain in the butt, in my experience anyway.

    4. AndrewB

      AndrewB

      Okay, that makes sense.

×