250,000 lines of code

  • (2 Pages)
  • +
  • 1
  • 2

22 Replies - 10606 Views - Last Post: 07 April 2013 - 02:00 PM Rate Topic: -----

#16 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7561
  • View blog
  • Posts: 12,678
  • Joined: 19-March 11

Re: 250,000 lines of code

Posted 02 January 2013 - 08:33 PM

View Postextremeblueness, on 02 January 2013 - 10:19 PM, said:

You finally broke through. You mean creating my own object classes.



Yes, exactly!

Sorry if I sounded impatient, but from what I'm seeing I was pretty sure I could get it across eventually. Yes, writing your own classes to represent the world you're creating is exactly what I was talking about - and mac and Martyr, too.

So a piece of Terrain has certain characteristics, and for a Mountain they're particularly these values, and this here is a Mountain, so it has these values. So you don't have to tell each PalmTree to be green - it knows that already.
Was This Post Helpful? 0
  • +
  • -

#17 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: 250,000 lines of code

Posted 03 January 2013 - 08:13 AM

Well, this was my first Swing program, so I'm fairly certain that I'll learn (especially with all the help here at D.I.C).

edit: I really need to start using the quote and reply button, at the rate I get ninja'd here. Guess its a good thing, because that means more people are willing to help me out.

This post has been edited by extremeblueness: 03 January 2013 - 08:22 AM

Was This Post Helpful? 0
  • +
  • -

#18 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7561
  • View blog
  • Posts: 12,678
  • Joined: 19-March 11

Re: 250,000 lines of code

Posted 03 January 2013 - 09:22 AM

Quote

Well, this was my first Swing program, so I'm fairly certain that I'll learn


The important thing is that you're willing to make mistakes. If you're always making mistakes, and they're new mistakes every time, then you know you're always learning something new.
Was This Post Helpful? 3
  • +
  • -

#19 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: 250,000 lines of code

Posted 03 January 2013 - 09:52 AM

View Postjon.kiparsky, on 03 January 2013 - 04:22 PM, said:

Quote

Well, this was my first Swing program, so I'm fairly certain that I'll learn


The important thing is that you're willing to make mistakes. If you're always making mistakes, and they're new mistakes every time, then you know you're always learning something new.


I am willing to make mistakes, even if I don't understand the error messages every time.
Was This Post Helpful? 3
  • +
  • -

#20 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8891
  • View blog
  • Posts: 33,338
  • Joined: 12-June 08

Re: 250,000 lines of code

Posted 03 January 2013 - 10:05 AM

View Postextremeblueness, on 03 January 2013 - 10:52 AM, said:

I am willing to make mistakes, even if I don't understand the error messages every time.

A solid parable for life...
Was This Post Helpful? 2
  • +
  • -

#21 Gorian  Icon User is offline

  • ninja DIC
  • member icon

Reputation: 120
  • View blog
  • Posts: 1,681
  • Joined: 28-June 08

Re: 250,000 lines of code

Posted 03 January 2013 - 10:18 AM

View Postextremeblueness, on 03 January 2013 - 08:52 AM, said:

View Postjon.kiparsky, on 03 January 2013 - 04:22 PM, said:

Quote

Well, this was my first Swing program, so I'm fairly certain that I'll learn


The important thing is that you're willing to make mistakes. If you're always making mistakes, and they're new mistakes every time, then you know you're always learning something new.


I am willing to make mistakes, even if I don't understand the error messages every time.

This. This will take you far in life, and applies to EVERYTHING you do in life. It separates you from the masses who come here for help, only to downvote everyone pointing out their mistakes and how to fix them, and ultimately decide their erroneous ways are best. We have so much opportunity in life to learn from others. We just need to be humble enough to learn from those who already learned these lessons.
Was This Post Helpful? 0
  • +
  • -

#22 ishkabible  Icon User is offline

  • spelling expret
  • member icon




Reputation: 1622
  • View blog
  • Posts: 5,709
  • Joined: 03-August 09

Re: 250,000 lines of code

Posted 06 January 2013 - 10:56 AM

anytime you repeat the same code few times, you should look for a way to *not* repeat yourself. loops, arrays, functions, objects, data structures, recursion, etc... they all help you not repeat your self
Was This Post Helpful? 0
  • +
  • -

#23 carnivroar  Icon User is offline

  • D.I.C Regular

Reputation: 28
  • View blog
  • Posts: 382
  • Joined: 18-September 11

Re: 250,000 lines of code

Posted 07 April 2013 - 02:00 PM

View Postextremeblueness, on 02 January 2013 - 03:42 PM, said:

I'd completely forgotten about multi-dimensional arrays.



View Postextremeblueness, on 02 January 2013 - 08:19 PM, said:

You mean creating my own object classes.


And you are writing 250,000 lines of code - why?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2