Author Topic: Showing some code  (Read 6480 times)

Shizzle

  • Mighty Duke
  • ****
  • Posts: 1537
  • Skyndarbau, Yusklin, Yarvik, Werend and Kayne
    • View Profile
Showing some code
« Topic Start: June 10, 2012, 11:29:41 AM »
This is a request to the Devs.

Often when people ask for features for the game, we get the reply 'it is too much work/too difficult to code'. That is usually the point where I back down, because I don't know anything about coding. Would it be possible to show us a tiny fraction of the code Battlemaster is built upon, with some generic explanation and an estimation of the time invested to write it?

This might help me and others to appreciate what you people do for this game, and make the whole 'code' concept less abstract :)

EDIT: in no way does this have to be anything 'classified'. I'm sure you have plenty of boring/obsolete coding lying around? Also, perhaps elaborate on that elusive 'transition to doctrine'?

Tom

  • BM Dev Team
  • Exalted Emperor
  • *
  • Posts: 8228
    • View Profile
    • BattleMaster
Re: Showing some code
« Reply #1: June 10, 2012, 06:16:59 PM »
The problem with "showing code" is that a fragment of code without the models, libraries, database structure and so on is really meaningless. It tells you nothing whatsoever.

Shizzle

  • Mighty Duke
  • ****
  • Posts: 1537
  • Skyndarbau, Yusklin, Yarvik, Werend and Kayne
    • View Profile
Re: Showing some code
« Reply #2: June 10, 2012, 06:19:54 PM »
The problem with "showing code" is that a fragment of code without the models, libraries, database structure and so on is really meaningless. It tells you nothing whatsoever.

I wouldn't know, really - sorry for my ignorance :)

Poliorketes

  • Noble Lord
  • ***
  • Posts: 276
    • View Profile
Re: Showing some code
« Reply #3: June 11, 2012, 12:18:45 AM »
Ah! programming! ... what memories!...  ::) ...Programming is like... I don't know... like to make a (enormous) 3-D crossword puzzle connected by many words to another 10 or 20 3-D crosswords ... and trying to make the less possible errors... because to find and mend them is usually a nightmare.  (Often you feel like you are doing it in a strange language and without half word's definitions)  :P

And when you end all of this, you can say "Hey, one program down! Only 47 left to end the application!"  ;D

To show a piece of one of the crosswords can't explain the enormous complexity of all the program.

 

feyeleanor

  • Noble Lord
  • ***
  • Posts: 320
    • View Profile
Re: Showing some code
« Reply #4: June 11, 2012, 12:31:35 AM »
My inner programmer would love to see some of the code, but then I'll only want to join the Dev team and help out and that'd be a very bad idea  ::)

Geronus

  • Honourable King
  • *****
  • Posts: 2332
  • Dum dee dum dee dum
    • View Profile
Re: Showing some code
« Reply #5: June 12, 2012, 03:27:01 PM »
My inner programmer would love to see some of the code, but then I'll only want to join the Dev team and help out and that'd be a very bad idea  ::)

I can't see how. Help is good! ALL YOUR FREE TIME IS BELONG TO US!  :D

feyeleanor

  • Noble Lord
  • ***
  • Posts: 320
    • View Profile
Re: Showing some code
« Reply #6: June 12, 2012, 05:16:36 PM »
I can't see how. Help is good! ALL YOUR FREE TIME IS BELONG TO US!  :D

ALL MY FREE TIME ALREADY BELONGS TO BM!!!! ARGHHH!!!!!!!

Anyway, I'd have to overcome my distaste for php ::)

Eithad

  • Noble Lord
  • ***
  • Posts: 134
    • View Profile
Re: Showing some code
« Reply #7: June 13, 2012, 03:09:33 AM »
google php, now you know what code looks like. Tom has in the past told us how many lines of code there were in total and how many man hours that it equated to.

Shizzle

  • Mighty Duke
  • ****
  • Posts: 1537
  • Skyndarbau, Yusklin, Yarvik, Werend and Kayne
    • View Profile
Re: Showing some code
« Reply #8: June 13, 2012, 08:43:23 AM »
google php, now you know what code looks like. Tom has in the past told us how many lines of code there were in total and how many man hours that it equated to.

Can you remember how much? :)

Tom

  • BM Dev Team
  • Exalted Emperor
  • *
  • Posts: 8228
    • View Profile
    • BattleMaster
Re: Showing some code
« Reply #9: June 13, 2012, 08:46:43 AM »
Can you remember how much? :)
http://wiki.battlemaster.org/wiki/SLOCCount

though that is way, way outdated and I should probably update it.

Tom

  • BM Dev Team
  • Exalted Emperor
  • *
  • Posts: 8228
    • View Profile
    • BattleMaster
Re: Showing some code
« Reply #10: June 13, 2012, 09:17:03 AM »
I just updated it. Interestingly, it is very stable now, which is mostly because more code is being refactored than added. The count only considers existing files, so the development history is lost on it. If someone knows a similar tool that analysis a subversion repository, I'd be very interested in learning about it.


Shizzle

  • Mighty Duke
  • ****
  • Posts: 1537
  • Skyndarbau, Yusklin, Yarvik, Werend and Kayne
    • View Profile
Re: Showing some code
« Reply #11: June 13, 2012, 06:36:31 PM »
That's amazing!

Kai

  • Noble Lord
  • ***
  • Posts: 492
    • View Profile
Re: Showing some code
« Reply #12: June 13, 2012, 07:02:59 PM »
Its funny I started playing this game before I even knew what programming was, through learning about it in university and now my casual job is all programming. I think probably the gayest "piece" of code would be the turn update. I'd sure like to see that.

Foundation

  • Honourable King
  • *****
  • Posts: 2526
  • Okay... you got me
    • View Profile
    • White Halmos
Re: Showing some code
« Reply #13: June 13, 2012, 09:46:49 PM »
* Foundation objects to the low salary. :P

I demand a raise to $57,000!
The above is accurate 25% of the time, truthful 50% of the time, and facetious 100% of the time.

Darksun

  • Noble Lord
  • ***
  • Posts: 205
    • View Profile
    • Bucksplace
Re: Showing some code
« Reply #14: June 14, 2012, 02:33:13 PM »
I think probably the gayest "piece" of code would be the turn update. I'd sure like to see that.

Autocorrect FTW!