Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 285 286 [287] 288 289 ... 796

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

olemars

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4290 on: March 28, 2013, 04:14:04 pm »

Shit, I need to call my boss and tell him our coding standards document has leaked.
Logged

Zrk2

  • Bay Watcher
  • Emperor of the Damned
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4291 on: March 29, 2013, 12:19:53 am »

Olemars every time you post I am further convinced that your avatar is actually your portrait.
Logged
He's just keeping up with the Cardassians.

fractalman

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4292 on: March 29, 2013, 01:57:24 am »

print("hello world") is very rare in my programs.  I usually say print("test successfull"). 
Logged
This is a masterwork ledger.  It contains 3719356 pages on the topic of the precise number and location of stones in Spindlybrooks.  In the text, the dwarves are hauling.
"And here is where we get the undead unicorns. Stop looking at me that way, you should have seen the zombie deer running around last week!"

Soadreqm

  • Bay Watcher
  • I'm okay with this. I'm okay with a lot of things.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4293 on: March 30, 2013, 03:09:06 pm »

Speaking of printing, Does anyone here have experience with Python console output on Windows? On Linux, there is Curses, but the Windows version seems to be super old and incomplete to begin with. I haven't actually tried it yet, I was just wondering is anyone else has.
Logged

Twiggie

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4294 on: March 30, 2013, 04:09:39 pm »

well there's your niche in the market :D
Logged

fractalman

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4295 on: March 30, 2013, 11:43:31 pm »

I tried python as part of a physics project.
Wound up hating it. 
It felt like arbitrary code waiting to happen due to a lack of type-safety. 
Logged
This is a masterwork ledger.  It contains 3719356 pages on the topic of the precise number and location of stones in Spindlybrooks.  In the text, the dwarves are hauling.
"And here is where we get the undead unicorns. Stop looking at me that way, you should have seen the zombie deer running around last week!"

Mephisto

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4296 on: March 31, 2013, 12:10:04 am »

It felt like arbitrary code waiting to happen due to a lack of type-safety. 

I'm having trouble grokking what this means. Care to explain?
Logged

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: if self.isCoder(): post() #Programming Thread
« Reply #4297 on: March 31, 2013, 12:25:05 am »

I tried python as part of a physics project.
Wound up hating it. 
It felt like arbitrary code waiting to happen due to a lack of type-safety. 

Wiki seems to be telling me that Python does have type-safety in the form of runtime dynamic type-checking. ???
Maybe you're confusing strongly typed with type-safety?

Eg, TI-BASIC doesn't have types, I think.
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4298 on: March 31, 2013, 01:55:07 am »

TI-BASIC don't have shit. Nothing but 28 global variables and lists to work with. I usually use lists as local variables, but there's not enough memory to hold too many lists; plus, everything is really slow. It's damn interesting to program with such constraints.

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4299 on: March 31, 2013, 02:15:16 am »

TI-BASIC don't have shit. Nothing but 28 global variables and lists to work with. I usually use lists as local variables, but there's not enough memory to hold too many lists; plus, everything is really slow. It's damn interesting to program with such constraints.
Depending on the calculator, you can make more space. My TI 81 Silver came with a bunch of worthless programs which I erased with the memory management feature. Clear out some RAM and ROM space, and suddenly it will actually run a good deal faster. Though still really slow if you use TI-BASIC; you really need assembly for any decent speed on those things.
Logged

zombie urist

  • Bay Watcher
  • [NOT_LIVING]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4300 on: April 04, 2013, 04:32:58 pm »

Biggest problem with TI-Basic is no objects. Also TI-Basic does have types, but only a few. Try storing a string to A and then adding it to an int B.

Does anyone know a good way to get mouse position using javascript on a canvas? evt.layerX and evt.layerY are getting the overall position for some reason.
Logged
The worst part of all of this is that Shakerag won.

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #4301 on: April 07, 2013, 02:08:54 pm »

I've been working on my archipelago map generation some this weekend, and I now have a static "static" generator.

Basically it is a location aware seed number generator that will let me implement highly scalable terrain generation. I could easily generate a map with a surface area larger than earth with 1 meter resolution. And better yet, I can reproduce any part of that map dynamically and relatively efficiently without having to generate the whole thing.

As an added side bonus, it seems to produce fewer visual pattern artifacts than java's basic Random.

Spoiler (click to show/hide)

yea... I know it isn't much to look at.
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.

Dutchling

  • Bay Watcher
  • Ridin' with Biden
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4302 on: April 07, 2013, 02:41:14 pm »

I see many tormented souls in that.
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #4303 on: April 07, 2013, 11:04:54 pm »

I see many tormented souls in that.

You want to see the torment of souls?

This is my first test run of the new terrain algorithm...

Spoiler (click to show/hide)

yea. that isn't right.
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.

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: if self.isCoder(): post() #Programming Thread
« Reply #4304 on: April 07, 2013, 11:06:58 pm »

My, isn't that a pretty fractal. :P
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward
Pages: 1 ... 285 286 [287] 288 289 ... 796