Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 136 137 [138] 139 140 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 881830 times)

blackmagechill

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2055 on: March 26, 2012, 06:02:38 pm »

I'm trying to learn python. It's a lot like that time I tried to learn ruby, except python has cleaner syntax. Anybody got any ideas as to where to get started?
Logged

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2056 on: March 26, 2012, 06:23:03 pm »

Hook one of these (http://www.arduino.cc/) up to a mechanized club and a speaker and I'll write a program that beats you over the head to remind you to learn to program!

Those things are so cool. I want one so bad.

I'm trying to learn python. It's a lot like that time I tried to learn ruby, except python has cleaner syntax. Anybody got any ideas as to where to get started?

Imo, the best way to learn a language is to dive in head-first. Try Project Euler for problems that will introduce you to a lot of Python's features by forcing you to use them in order to find the solutions. Also, The Python Documentation is a very handy reference.

MadocComadrin

  • Bay Watcher
  • A mysterious laboratory goblin!
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2057 on: March 26, 2012, 08:56:46 pm »

Hook one of these (http://www.arduino.cc/) up to a mechanized club and a speaker and I'll write a program that beats you over the head to remind you to learn to program!
I can't be aaaaarrrrsed!
Hmm, then we'll have to dearse you. >:D
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2058 on: March 26, 2012, 10:09:55 pm »

Hook one of these (http://www.arduino.cc/) up to a mechanized club and a speaker and I'll write a program that beats you over the head to remind you to learn to program!

Those things are so cool. I want one so bad.

Yes.

I saw online somewhere a couple months a similar device for $8... now I can't find it again :(

Was pleasantly surprised to see arduinos in Radio Shack the other day though...
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #2059 on: March 27, 2012, 05:28:20 pm »

Hmm. Would it be worthwhile for me to share an alternative to XML/JSON here? I am 99% certain that no one here needs such a thing. But who knows what people might find interesting.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2060 on: March 27, 2012, 05:36:42 pm »

We are programmers. We always like looking at alternatives. You never know when something might work better for a project.

(yes)

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2061 on: March 27, 2012, 06:22:24 pm »

Lay it down on us, brother!
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #2062 on: March 27, 2012, 07:16:55 pm »

MNML

Spoiler: Preface: (click to show/hide)

Spoiler: Introduction: (click to show/hide)

Spoiler: Overview: (click to show/hide)


Spoiler: Formal Grammar(new): (click to show/hide)



javascript implementation:
pending...

java implementation:
pending...

c# implementation
pending...


Edited for spelling: I think I over used separate: because I mis-spelled it a lot.
« Last Edit: March 27, 2012, 08:37:58 pm by Nadaka »
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2063 on: March 27, 2012, 09:20:39 pm »

Life sucks.  Since I don't actually have time to read that much thread, has anyone wanted/needed me for anything in the last 40 pages or so?  PM me if I take too long to answer.  Sorry folks. :(
Logged

malloc

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2064 on: March 29, 2012, 02:04:51 am »

MNML

Reminds me of http://xkcd.com/927/
Good luck.

But either way, XML is not too bad. It really depends on the implementation, rather the format.
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2065 on: March 29, 2012, 12:36:09 pm »

MNML
Hmmm. Too many reserved characters, and how would you discern between strings and non-strings ("25" is not 25)?
I can see it having a use, but I probably won't.
Also, I keep reading it as MNML...
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #2066 on: March 29, 2012, 01:30:45 pm »

MNML
Hmmm. Too many reserved characters, and how would you discern between strings and non-strings ("25" is not 25)?
I can see it having a use, but I probably won't.
Also, I keep reading it as MNML...

I don't differentiate between "25" and 25 at this time. Both are words. Though "25" is a 4 character word containing quotation mark characters, and 25 is a 2 character word only containing digits. In order to differentiate them in the spec, I would need to add quote marks to the reserved character list, and because strings as such are technically an enclosure, i should probably use a matching pair of markers, and the closing quite character is not on the standard keyboard.

I think the reserved character list is as minimal as it can be without increasing the size of an encoded stream and using multi-character tokens. I could eliminate comments, but then there would be no comments. I need a set of paired enclosure characters for collections and an escape sequence start character. Eliminating the attribute start character and value separator character creates an ambiguous grammar. Both can be eliminated only if there are no named attributes. The attribute start character can only be eliminated if there are no attributes without values, in that case only an value separator is needed to indicate the presence of an attribute value pair. And the value separator can only be eliminated if an attributes value is always a collection, in that case the separator will be the opening character of a collection following the attribute name.

And I was actually considering adding 1 or 2 additional reserved characters to provide type information (so you can distinguish between "25" and 25 for instance).
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2067 on: March 29, 2012, 01:38:21 pm »

Adding "string" support decreases the number of errors you can get, because suddenly all reserved characters inside a string are no longer reserved (except " ). Especially having to escape () is going to be a pain.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #2068 on: March 29, 2012, 02:34:05 pm »

I'll consider it. And strings are something people kind of expect to be able to do. Though it may raise some issues with encoding. When do you use strings vs a sequence of words?



This is a bunch of words.

"This is a single string."

"This" "is" "a" "bunch" "of" "strings."
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2069 on: March 29, 2012, 04:39:49 pm »

True, depends totally on what you aim to do with it.
If you want to replace JSON and XML (and that is how I interpreted it), expect people to not give a shit about arbitrary partmentalisation of string data called "words". Spaces are characters, too, you know. Those poor, misunderstood whitespaces... Always discriminated against by the black letters, never allowed to appear more than once, or they'll be... "trimmed". Man, the stories I could tell you.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))
Pages: 1 ... 136 137 [138] 139 140 ... 796