Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 91 92 [93] 94 95 ... 796

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

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1380 on: February 09, 2012, 10:39:30 am »

So, how long before you guys implement computers within computers within computers?
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1381 on: February 09, 2012, 10:45:28 am »

So, how long before you guys implement computers within computers within computers?

We already did it. :P
Logged

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1382 on: February 09, 2012, 10:46:03 am »

So, how long before you guys implement computers within computers within computers?

We already did it. :P
Depending on how recursive reality is, we might actually live in one.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1383 on: February 09, 2012, 10:53:31 am »

So, how long before you guys implement computers within computers within computers?

We already did it. :P
Depending on how recursive reality is, we might actually live in one.

Too much recursion error

Most errors just crash the program.  That one managed to screw over the OS, forcing a reboot.  Granted we were using 15 - 20 year old computers in a programming environment that stopped existing back then.
Logged

Twiggie

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1384 on: February 09, 2012, 01:02:38 pm »

Hey guys, wondering if you can help me. I'm running an SVN repository for a java project, and we're trying to use checkstyle. we have the xml file we want to use in the repository but any time i try to activate checkstyle i get this error:
Fileset from project "Supermarket" has no valid check configuration.
Fileset from project "Supermarket" has no valid check configuration.

and whenever i save a file i get this error:
Errors occurred during the build.
Errors running builder 'Checkstyle Builder' on project 'Supermarket'.
Fileset from project "Supermarket" has no valid check configuration.
Fileset from project "Supermarket" has no valid check configuration.
Fileset from project "Supermarket" has no valid check configuration.
Fileset from project "Supermarket" has no valid check configuration.

ive googled around a bit but it didnt really help at all. what do?
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1385 on: February 09, 2012, 03:58:29 pm »

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))

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1386 on: February 09, 2012, 07:05:04 pm »

Gentlemen, I have a programming issue.

In AP Computer Science, we're working with GridWorld, the environment tested on the AP exam. I have client code that looks like this:

Code: [Select]
import info.gridworld.actor.ActorWorld;
import info.gridworld.actor.Critter;

public class StuffRunner {
    public static void main(String args[]) {
        ActorWorld world = new ActorWorld();
        world.add(new Rock()); // Compiles fine
        world.add(new FunkyCritter()); // Error
    }
}

FunkyCritter is a subclass of Critter. Critter is a subclass of Actor. The function world.add takes one Actor object as an argument.

Could someone explain why this wouldn't work?

RulerOfNothing

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1387 on: February 09, 2012, 07:18:42 pm »

What kind of error?
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1388 on: February 09, 2012, 08:22:06 pm »

off topic,

I just finished making my Pig-Latin translator.

it's a very good reason as to why you should use functions.
it's 104 lines long,
and main is only 10 lines long.

Spoiler: Int Main (click to show/hide)

was my first time trying out word manipulation, and I think a got the hang of it.

also I found I prefer to work in Notepad and copy / paste into my IDE. I use it to put my thoughts in writing.
« Last Edit: February 09, 2012, 08:44:52 pm by Valid_Dark »
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1389 on: February 09, 2012, 08:50:09 pm »

also I found I prefer to work in Notepad and copy / paste into my IDE. I use it to put my thoughts in writing.
Strange habit... What IDE are you using?

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1390 on: February 09, 2012, 09:37:02 pm »

What kind of error?

Compile error. It says that world.add(FunkyCritter) cannot be found.

Gatleos

  • Bay Watcher
  • Mournhold... City of Light... City of MAGIC!
    • View Profile
    • Someone Sig This
Re: if self.isCoder(): post() #Programming Thread
« Reply #1391 on: February 09, 2012, 09:39:53 pm »

What kind of error?

Compile error. It says that world.add(FunkyCritter) cannot be found.
Does it say it's not defined? What is the content of the error message?
Logged
Think of it like Sim City, except with rival mayors that seek to destroy your citizens by arming legions of homeless people and sending them to attack you.
Quote from: Moonshadow101
it would be funny to see babies spontaneously combust
Gat HQ (Sigtext)
++U+U++ // ,.,.@UUUUUUUU

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1392 on: February 09, 2012, 09:40:20 pm »

1. Check the spelling of the function. Make sure you got upper and lower case where it needs to be.
2. Check the visibility of the function. If it is internal, you are going to need to find another way to sneak your guy in there, because the front door is tight!
3. Check you have the right number and type of arguments. It might need more than just the critter.
4. Double check that FunkeyCritter does indeed inherit from Actor.

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1393 on: February 09, 2012, 09:44:36 pm »

What kind of error?

Compile error. It says that world.add(FunkyCritter) cannot be found.

The code you posted works fine in my test environment.  Check to see if FunkyCritter isn't extending Critter correctly.  If it can't find FunkyCritter, then make sure it's either defined in the same package as your code or you import the package that it is in.  If it isn't either of those, then post the exact error message you're getting.
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #1394 on: February 09, 2012, 10:04:06 pm »

also I found I prefer to work in Notepad and copy / paste into my IDE. I use it to put my thoughts in writing.
Strange habit... What IDE are you using?

Code::Blocks

I only write in notepad when working on a complex function.
in notepad I can type noncode then hit return a few times and start coding,

and I can change the font size, I can do that in codeblocks too, but I prefer to keep the font small in codeblocks and bigger in notepad, so I can see more clearly the part I'm working on, like zooming in on the specific part I'm working on



Also, I have a question, how come when I use using namespace string, it doesn't work, yet I have to use functions in the namespace with the scope resolution "::"
such as string::size_type,
I don't know how well I worded that, basically string::size_type works, but using namespace string; size_type doesn't, but to my understanding of namespaces it should,
« Last Edit: February 09, 2012, 10:07:27 pm by Valid_Dark »
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.
Pages: 1 ... 91 92 [93] 94 95 ... 796