Re: Game updated.

From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 02/26/04


Date: Thu, 26 Feb 2004 02:56:19 GMT


"Joec" <joec@annuna.com> wrote in message
news:OZb%b.9675$aT1.7449@newsread1.news.pas.earthlink.net...
>
>
> Mike Wahler wrote:
>
> > "Joec" <joec@annuna.com> wrote in message
> > news:7N9%b.8092$yZ1.2017@newsread2.news.pas.earthlink.net...
> >
> >>I posted some updates to a game I am writing at my page
> >
> > www.annuna.com/perl5
> >
> > So what about them? Are you having trouble? Also, if you
> > want folks to look at code via a web link, please specify exactly
> > to which file(s) you're referring, not just a 'top' link.
> >
> > -Mike
> >
> >
> Get your point. Actually yes, but I will try to figure them out first.
> I have figured out alot to problems already usually I have to leave
> the program alone for a few days.

Sometimes that's the best thing to do with a broken program.
You'll typically come back to it with a fresh perspective.

>
> I do have some kind of bug, the program crashes often some time after
> entering the name and moving on the map.

Have you learned how to use a debugger?

>
> The new file is the last one on the page. I have gotten advice on other
> pogroms and I did find it useful for my future programming.
>
> I accept all comments. I write programs and unless I post them no one
> will see them and criticize them and I won't improve my programming.

Yes, I understand.

>
> As for my game, I could have organized it better and used more
> consistent naming of functions and comments. These are lessons for my
> next project. I will continue with the current project imperfect as it
> is.

Do you know about a concept call 'refactoring'? It helps make
a program more maintainable and readable, and often will expose
bugs.

>
> When writing a program should each function and struct be its own file.
> How much should be in a file? I run into the question because the
> more files the better the easier it is to re use code but it get
> difficult to mannage and debug.

There isn't really any 'hard and fast rule'. Each person must determine
what works best for them. Personally, I don't like a function that's
more than a couple of screenfuls. And I'll tend to only put functions
that are related in the same file. IOW, organize by what the code
does, rather than 'blind' modularization.

As far as managing your files, a good IDE can help with that.

> I have always been drawn to programming and I have this strong desire to
> improve my programming abilities.

Me too. Even after thirty years, I still enjoy it, and am always
eager to learn more.

>I like the criticism and
> encouragement I get from the people here.

Yes, constructive criticism is very useful. I probably don't do it
'enough', but I do try to insert a bit of encouragement in my messages
when I see someone struggling, but showing effort.

>I put alot of work into my
> little programs and I am very encouraged when they work as I intend.

Yes, it's a great feeling, ain't it?

> I
> especially like my dynamic array but I hope to replace that file with a
> template. I am still having trouble with that one.

>From seeing your posts here, I get the impression that you're trying
to do too much too fast. But that's just me. :-)

>
> I remember the old days when I could get a computer magazine and it had
> little game programs in the back. I would copy those games in basic and
> learn so much.

Yes, I remember those days, too. I surely wish I had had access to
newsgroups etc. back in the "fifteenth century" when I was first learning.
:-)

> It is too bad that they don't have similar material
> today. Yes there is tons of stuff on the web

Yes, lots of it. And we have the experts here to filter it through,
since we both know there's so much trash as well as good stuff out there.

>but there is nothing like
> typing in a program in line by line.

Yes. Practice, practice. :-)

>I would find that so useful with
> C++ and other windows libraries or perl and TK.

Are you saying you can't find enough useful stuff on the web?
I sometimes think there's *too* much. :-)

>
> I didn't intend to write this much but I did. I don't know any real
> programmers so I ramble on here and I very much appreciate the reponces
> I get.

No problem. That's why we hang out here. We like our profession, and
enjoy sharing and helping others with it.

-Mike



Relevant Pages

  • Re: Old Phrases Of Years Past
    ... Fish ~ a cowboy's rain slicker, from a rain gear manufacturer whose ... Flush ~ prosperous, rich. ... Game ~ to have courage, guts, gumption. ... "He went through a heap of trouble ...
    (rec.music.beatles)
  • Re: Where NOT to lose the Amulet
    ... Shatter your luck and it won't work. ... Every game has luck, both good and bad. ... I did have trouble with finding altars, ... Select All, Copy, then Paste will include context for you. ...
    (rec.games.roguelike.nethack)
  • Re: Trade
    ... Well, sort of. ... He has definitely gotten in trouble off the field. ... The one on-field thing Moss did that I have a problem was leaving the game ...
    (alt.sports.football.pro.ne-patriots)
  • Re: New Game Problems.
    ... This posting is provided "AS IS" with no warranties, ... > I also went through MS Config's Trouble shooter, ... >> In the Startup And Recovery window, there is a check-box in the SYSTEM ... >>>graphics) or just 'shutting off' in the middle of the game. ...
    (microsoft.public.games)
  • Re: Irish Mikes Poker Tip #4 of 4
    ... I think that the win was $1000 in a $10/20 game. ... confident, solid player, why should you be following basic tips, and ... And begginers should be encouraged to, ... I don't see much encouragement and ...
    (rec.gambling.poker)