Apr 13, 2018

Current Status

Andrea "Rum Rogers" Serreli

6d ago
Ugh. No semicolons.
And I don't know why, but until now I thought you used Allman indentation style.

Steve

6d ago
Lacking anything constructive to say, I'll just say this: "One can not simply getroottable()."
Or possibly this: "Man, I can't wait to get me some inventory."

Misel

6d ago
return object
}

followed by an "else"? ;)

Ron Gilbert

6d ago
While not required, I find putting else statements in places like that makes the intent of the code more understandable, and if the return is replaced, the logic is still intact.

Brian

6d ago
No warning message if a null is passed as the argument?  Must be a standard case you need to support for some reason.  So many other specific warning messages, you must be in serious debug mode.

Adam

6d ago
When you don't camel case your getroottable it means something very different in Australia!

Alasdair

5d ago
Totally unrelated to the code itself; you should take a look at polacode or carbon for sharing code as images.

Now, with regards to the code, what's this for? I'll admit excitement at prospect of you working on a game with a prominent inventory.

Jon

5d ago
Do you do all your games in python? Do you have anything written on subject? What's your experience in terms of performance etc?

Artem

5d ago
You should try TypeScript. It provides gradual static typing to JS and really helps when the project gets large.

Ron Gilbert

5d ago
1. I use python for tools, never for run-time game code. Too many performance issues.
2. This isn't Java, it's Squirrel (what I used for TWP).

Ron Gilbert

5d ago
Get null passed in is not an error, so it just flows null back up and it's checked/ignored higher up.

Ron Gilbert

5d ago
you should take a look at polacode or carbon for sharing code as images.

I don't use VS Code and for Carbon, I'd lose all my custom syntax coloring. I don't plan on sharing very much code (this was just a lark), so just taking a screenshot is fine.

Harban Vassbakk

5d ago
I love how every time you share code, there are so many comments on how it could be better, or disbelief over which editor configuration you have. That's programmers, I guess.

Ron Gilbert

5d ago
"code is like farts... you can only stand your own."

Charlie

5d ago
Best response ever!

Alessander

4d ago
Well done, sir! That is undoubtedly evidence of great progress!
Changing subject, Ron, have you seen my dime?

Roman

3d ago
Yeah great response...can I add it to my "It always worked for me", "I only test in production" etc list? ;-)
Here are the rules for commenting.