public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: "Erik Jessen" <ejessen@adelphia.net>
To: "'Mark A. Flacy'" <mflacy1@comcast.net>,
	"'xconq'" <xconq7@sources.redhat.com>
Subject: RE: OT Python stuff (was RE: Python in Xconq)
Date: Wed, 19 Nov 2003 15:08:00 -0000	[thread overview]
Message-ID: <000501c3aeaf$d2c791b0$6401a8c0@Win2k> (raw)
In-Reply-To: <16314.7906.67114.244055@flacy.home.flacy>

Oh,
In Perl, I just write:

@files = Find();
To get a list of all files in the current subtree.

But that's just me - there may be quicker ways to write it in Perl, as I
make no claims to be a Perl guru.

:)

Seriously, any OO language is preferred (IMHO), because it will be more
maintainable (C++?).

And a scripting language is seriously preferred, because it will permit
so much more stuff.

If we add a scripting language, then I would submit that we write a
simple porting script to convert GDL to that language, and drop GDL.
IMHO, GDL is just a way to fill in data-structures, and any language can
do that.

A nice GUI-builder (anything well-known & portable like TCL) would be
very useful, because the scripting language could then create new popups
as needed, and if we're aiming for flexibility, then people who do
political games are going to have lots of popups saying "Country X has
proposed trading 3 steel, 4 oil and 5 herds of cattle, in return for a
peace treaty.
What is your answer?".

Might as well get all the flexibility there...
And that sort of thing is something that no other game-builder program
has, but shouldn't be that hard to add to Xconq.

Erik


-----Original Message-----
From: xconq7-owner@sources.redhat.com
[mailto:xconq7-owner@sources.redhat.com] On Behalf Of Mark A. Flacy
Sent: Tuesday, November 18, 2003 5:30 AM
To: 'xconq'
Subject: OT Python stuff (was RE: Python in Xconq)

>>>>> "Erik" == Erik Jessen <ejessen@adelphia.net> writes:
Erik> 
Erik> Perl has all that as well - I know, because I use them on a
regular
Erik> basis.  Also, there are a great many modules others have written,
to
Erik> enable things like network play (RPC/IPC/IRC/etc.).
Erik> 
Erik> But again, I've not seen Python, so it may do all those things in
a
Erik> much nicer way.

My running joke is that Python has a very simple syntax while Perl has a
shitload of syntaxes.  If you know C, C++, or Java, you won't find very
many syntax surprises in Python.  You can write a lot of code without
using
any of the Python "odd" constructions.

Even so, you can write such gems as...

dirList = [ [k , v] for (k, v) in tmap.iteritems()]

...which converts a hashmap of tuples into a list of lists or ...

        webClientDirs = [os.path.join("com", "mycompany", "argle",
"cap", "web", "ua", "base", "session"),
                         os.path.join("com", "mycompany", "argle",
"cap", "web", "ua", "pca", "appl"),
                         os.path.join("com", "mycompany", "argle",
"foundation", "awt", "layout"),
                         os.path.join("com", "mycompany", "argle",
"base", "ccpe", "base"),
                         os.path.join("com", "mycompany", "argle",
"base", "ccpe", "events"),
                         os.path.join("com", "mycompany", "argle",
"base", "ccpe", "model"),
                         os.path.join("com", "mycompany", "argle",
"base", "ccpe", "type"),
                         os.path.join("com", "mycompany", "argle", "mw",
"gui"),
                         os.path.join("com", "mycompany", "argle", "mw",
"sdp", "jni"),
                         os.path.join("com", "mycompany", "bargle",
"base")
                         ]
        
        fulldirs = map(lambda x: os.path.join(self.config.compileDest,
x), webClientDirs)

...which created a list of subdirectories (in a cross-platform fashion)
and
then prepends a root directory to each element of the list producing
another list for later processing.

http://www.linuxjournal.com/article.php?sid=3882 is written by the guy
that
wrote fetchmail.  Worth a read.


-- 
 Mark A. Flacy
 Any opinions expressed above are my own.  Any facts expressed above
 would imply that I know what I'm writing about.  Sometimes, I do!
"Just because you're paranoid doesn't mean they aren't out to get you
 anyways."



  reply	other threads:[~2003-11-19 15:06 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 15:42 Marketing Xconq? Bill Macon
2003-11-17 18:55 ` Marketing Xconq? + battle isle suggestion Andreas Bringedal
2003-11-17 22:04   ` better Windows UI Brandon J. Van Every
2003-11-18  3:12     ` Erik Jessen
2003-11-17 21:56 ` Marketing Xconq? Eric McDonald
2003-11-17 22:38   ` Brandon J. Van Every
2003-11-18  3:15     ` Erik Jessen
2003-11-18  3:39       ` New Interpreter (was RE: Marketing Xconq?) Eric McDonald
2003-11-18  4:01         ` Erik Jessen
2003-11-18  4:05           ` Eric McDonald
2003-11-18 10:37             ` setgid (was: RE: New Interpreter (was RE: Marketing Xconq?)) Lincoln Peters
2003-11-18 15:52               ` Jim Kingdon
2003-11-18  5:17       ` Python in Xconq Brandon J. Van Every
2003-11-18 11:33         ` Erik Jessen
2003-11-18 13:37           ` OT Python stuff (was RE: Python in Xconq) Mark A. Flacy
2003-11-19 15:08             ` Erik Jessen [this message]
2003-11-19 16:44               ` Bruno Boettcher
2003-11-19 17:58                 ` Eric McDonald
2003-11-19 21:18                   ` GDL, XML and others...Re: " Jakob Ilves
2003-11-19 23:13                     ` Brandon J. Van Every
2003-11-20  5:12                     ` Eric McDonald
2003-11-20  8:54                       ` Bruno Boettcher
2003-11-20 11:01                         ` Jakob Ilves
2003-11-20 11:19                           ` Brandon J. Van Every
2003-11-20 12:59                             ` Jakob Ilves
2003-11-20 13:54                               ` One Hex Combat Resolution, and jeweled teeth Brandon J. Van Every
2003-11-20 17:06                                 ` Eric E Moore
2003-11-20 17:37                                   ` Jakob Ilves
2003-11-20 17:47                                     ` Emmanuel Fritsch
2003-11-20 19:53                                     ` Eric E Moore
2003-11-21  2:16                                   ` Eric McDonald
2003-11-21  3:03                                     ` What is Python really good for? Brandon J. Van Every
2003-11-20 11:36                           ` GDL, XML and others...Re: OT Python stuff (was RE: Python in Xconq) Bruno Boettcher
2003-11-20  4:38                   ` Erik Jessen
2003-11-20 10:19                     ` cheating Brandon J. Van Every
2003-11-21  1:46                       ` cheating Eric McDonald
2003-11-21  2:32                         ` cheating Brandon J. Van Every
2003-11-21  9:30                           ` Managing "Designers disgust". cheating Jakob Ilves
2003-11-21  9:33                             ` Brandon J. Van Every
2003-11-21 12:36                               ` Jakob Ilves
2003-11-21 14:28                                 ` Brandon J. Van Every
2003-11-19 22:14                 ` OT Python stuff (was RE: Python in Xconq) Brandon J. Van Every
2003-11-20  3:10                 ` Erik Jessen
2003-11-18  1:13   ` Marketing Xconq? Dr Eric Edward Moore
2003-11-18  1:31     ` Eric McDonald
2003-11-18  2:34       ` Lincoln Peters
2003-11-18  3:11         ` Eric McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000501c3aeaf$d2c791b0$6401a8c0@Win2k' \
    --to=ejessen@adelphia.net \
    --cc=mflacy1@comcast.net \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).