Python sucks.

Chazcon

Prince
Joined
Feb 16, 2006
Messages
476
Location
Left Coast
That will be all.
 
snafusmith - big GRIN! Check your PM's.

btw, Python still sucks. Whitespace as code? I mean, really...

I'm going to write my own language, it will surpass Python on the stupidity scale. I will call it - Nothingness. It will contain all whitespace, and no text. IDE's will not be required as all code written in Nothingness will reside completely in the programmer's imagination. No debugging, no bugs, no errors! Imagine the productivity and flexibility!

Or perhaps I'll finalize my liquid programming language...
 
snafusmith - big GRIN! Check your PM's.

btw, Python still sucks. Whitespace as code? I mean, really...

I'm going to write my own language, it will surpass Python on the stupidity scale. I will call it - Nothingness. It will contain all whitespace, and no text. IDE's will not be required as all code written in Nothingness will reside completely in the programmer's imagination. No debugging, no bugs, no errors! Imagine the productivity and flexibility!

Or perhaps I'll finalize my liquid programming language...

Far too late for that...

It's been done...
 
Python is easily the best beginners language.
IMO it's not, it is very hard to debug I mea like try to find the spot where you put one too few whitespace chars in 5000 lines of code.
Guess do not like Python & I think white space is stupid I prefer my C++/JavaScript style (i only know JavaScript and Python). I just enjoy the abilities Python gives in Civ.
 
ROFL! i like whitespace programming language, it's funny!
 
Where do you run into this problem???

Python is easily the best beginners language.

Recent Example:

Works:
Code:
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
	"Main Civilopedia Page"

	def __init__(self):

		CvPediaScreen.CvPediaScreen.__init__(self)
		...

Does not work:
Code:
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
	"Main Civilopedia Page"

	def __init__(self):
		CvPediaScreen.CvPediaScreen.__init__(self)
		...

Difference: extra line break.

The error message was something very explanatory like "Argument 1 expected string, not instance." Best of all, if I replaced self with "" in the second example, got "Argument 1 expected instance, not string."

Maybe this would be easier if I were a beginner. :(
 
Recent Example:

Works:
Code:
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
	"Main Civilopedia Page"

	def __init__(self):

		CvPediaScreen.CvPediaScreen.__init__(self)
		...

Does not work:
Code:
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
	"Main Civilopedia Page"

	def __init__(self):
		CvPediaScreen.CvPediaScreen.__init__(self)
		...

Difference: extra line break.

The error message was something very explanatory like "Argument 1 expected string, not instance." Best of all, if I replaced self with "" in the second example, got "Argument 1 expected instance, not string."

Maybe this would be easier if I were a beginner. :(

Random strings cause errors that "Main Civilopedia Page" is a string. Use triple quotes (""") to surround multi-line comments and (#) in front of regular comments.

And why in the heck do you have stacked defs??? You obviously know nothing about the language so take a course, buy a book, or find a tutorial.

From what I can see the code is so messed up that its amazing it works at all. :dubious:
 
Random strings cause errors that "Main Civilopedia Page" is a string. Use triple quotes (""") to surround multi-line comments and (#) in front of regular comments.

And why in the heck do you have stacked defs??? You obviously know nothing about the language so take a course, buy a book, or find a tutorial.

From what I can see the code is so messed up that its amazing it works at all. :dubious:

The stacked defs were already there. I can replace the top one with "class" now that now since it is unlikely I'll need to merge back from previous versions of Sevopedia.

I just checked -- "Main Civilopedia Page" is in there from the original file from Firaxis. I'm not going to go in and unnecessarily correct anything Firaxis did because it plays hell with later merging. I think it might be some kind of nonstandard pydoc.

Telling someone he "obviously knows nothing" about anything is uncalled for. Even if it is true. :lol:

Besides, I'm just responding to a previous post that said "this is the best language for beginners". I think if that were true, I wouldn't need to "take a course, buy a book, or find a tutorial."

Edit: Fixing everything you mentioned doesn't take care of the problem anyway. Point is, whitespace matters.
 
The stacked defs were already there. I can replace the top one with "class" now that now since it is unlikely I'll need to merge back from previous versions of Sevopedia.

I just checked -- "Main Civilopedia Page" is in there from the original file from Firaxis. I'm not going to go in and unnecessarily correct anything Firaxis did because it plays hell with later merging. I think it might be some kind of nonstandard pydoc.

Telling someone he "obviously knows nothing" about anything is uncalled for. Even if it is true. :lol:

Besides, I'm just responding to a previous post that said "this is the best language for beginners". I think if that were true, I wouldn't need to "take a course, buy a book, or find a tutorial."

Edit: Fixing everything you mentioned doesn't take care of the problem anyway. Point is, whitespace matters.

What file are you editing? I originally guessed CvPediaMain but it has a class not nested defs. And about the white space the only thing that matters usually is the tab level.

And sorry about the insult. Although I suggest making some python programs outside of Civ4.
 
What file are you editing? I originally guessed CvPediaMain but it has a class not nested defs. And about the white space the only thing that matters usually is the tab level.

And sorry about the insult. Although I suggest making some python programs outside of Civ4.

Yes, I'm editing CvPediaMain. Yes, the Firaxis version was a class. I'm editing the heavily modded Sevopedia.

I haven't had any use for python outside of Civ4 yet. And I don't claim to be any sort of expert, I am just playing around for fun mostly.

Is Boost.python not standard python perhaps? The website actually mentions "documentation strings" as a feature.
 
thanks Chazcon! you summarized all my hopelessness into two words...

really, python ruined my childhood dream of becomming the world's second best game programmer after Sid Meier...

okay, just kidding, but really, for people with nil experience in programming, this kinda stuff is hard...

you really made me feel a little better.

Cybrxkhan
 
thanks Chazcon! you summarized all my hopelessness into two words...

really, python ruined my childhood dream of becomming the world's second best game programmer after Sid Meier...

okay, just kidding, but really, for people with nil experience in programming, this kinda stuff is hard...

you really made me feel a little better.

Cybrxkhan

Learning languages for a game makes it even harder and results in a very incomplete education. If you want to learn a language buy a book or take a course and become comfortable with it. Its also like riding a bike in as its tough to forget.

Programming isn't something you learn to make use for. It's a hobby and to get pretty skilled will take as much work as getting into a good select sports team. you'll have to set up your own projects or get them from a book. If you want to program games I suggest using pygame to make a checker or side scrolling game. If you stick with it you'll learn a lot.
 
okay, just kidding, but really, for people with nil experience in programming, this kinda stuff is hard...

You actually have nil experience in programming? Ouch.

Python is teaching me so many new concepts. Latent strong typing, bound functions, closures, tuples, etc. are all new to me.

Then there are more operators than I've ever seen in a single language. Who came up with // as an operator? When I first saw it I thought it was a comment. :lol:

Then there are the old style vs. new style classes. I didn't have any idea about that until I tried to make some sense out of Dr. Elmer Jiggle's CvCustomEventManager. Yikes!

Never even mind all the fun with whitespace.

And that is just the start. Variable length argument lists. Operator overloading. Even multiple inheritance! I think that only C++ could possibly be worse.

I don't even want to think about how all this stuff looks to someone who is completely new to programming. I'm probably speaking Greek to you.

"A language for beginners." :rolleyes: More like a powerful language for hackers: "I can write my own GUI library in 1k lines!"

I think a "complete education" in python is going to take a while. I'm going to "obviously know nothing" for a very long time. Sorry, but I don't plan to wait that long to mod Civ4. Oops I forgot the colon again...
 
Why do we not have simple .txt files like alpha centauri? -expects flames-

Is there any benefit to these fancier formats?
 
Back
Top Bottom