[skip all navigation]

Shoutbox Main
Please log in to shout.

[01:47 pm]  Azrael -- Partially because lol humans, and partially because people who play mods are dumb xD
[01:47 pm]  Azrael -- If anything, bloated file sizes attract more people to mods, because they assume there must be more content, which will make it more worth their time to download.
[01:46 pm]  Azrael -- The only reason map sizes are so important is because of bnet's transfer speed. You can't transfer mods on bnet, so it doesn't matter.
[01:45 pm]  Azrael -- Lol... who cares about file size for mods?
[01:24 pm]  Dem0n -- IskatuMesk used to make mods that were like 4+ gbs
[01:24 pm]  Dem0n -- Just leave it. That's not even big for a mod.
[11:01 am]  Arkane -- still 300
[11:01 am]  Arkane -- did it
[10:48 am]  trgk -- WinMPQ -> compact?
[10:36 am]  Arkane -- but iz still 300mb ;~;
[10:35 am]  Arkane -- so I deleted the .wavs to make it smaller
[10:35 am]  Arkane -- my mod is 300mb
[10:33 am]  Arkane -- D:
[10:33 am]  Arkane -- guize
[09:06 am]  Generalpie -- "payne -- hey farty, in C language, I don't need to open a "{" after an IF or a FOR if there is only one line of code after that command, right?" That's actually why Apple devices suffered (and most still do) from the GOTO FAIL bug
[07:48 am]  Test -- http://pastebin.com/jSg2GqXH is what I usually do when I begin programming in Java.
[07:48 am]  Test -- Having a seperate class is where object orientated programming begins.
[07:46 am]  payne -- you only have one class which can have that central method: why not put everything inside that same class?
[07:46 am]  payne -- but what could be the use of having multiple classes then?
[07:45 am]  payne -- gg good night everyone :bye2:
[07:45 am]  Test -- You want everything that you want done in that method.
[07:44 am]  Test -- You only want to have one instance of public static void main(string[] args) { ... }
[07:37 am]  payne -- I just don't understand how to work with multiple classes...
[07:35 am]  payne -- http://pastebin.com/Zp27jupA why does this not work :massimo:
[07:33 am]  payne -- T_T
[07:32 am]  trgk -- I don't know JAVA. Sorry
[07:31 am]  payne -- so basically, " Cercle c2 = new Cercle(2.7);" just says "create a new object named "c2" which will have its value linked to the "Cercle" method used with the "2.7" value" ?
[07:30 am]  payne -- i has exam today :c
[07:30 am]  trgk -- That was rather a bad example. :( OOP is hard.
[07:28 am]  O)FaRTy1billion -- I gotta sleep. I got work tomorrow xD
[07:28 am]  O)FaRTy1billion -- anyway stop drawing me back in to this, aaaa
[07:28 am]  O)FaRTy1billion -- oh
[07:27 am]  O)FaRTy1billion -- If you're referring to me talking about a game earlier, I was just trying to think of like a more practical example for a constructor method
[07:27 am]  trgk -- Just an example;
[07:27 am]  O)FaRTy1billion -- I don't think he is creating a physics engine. :P
[07:27 am]  trgk -- If you are creating physics engine, then changing radius of circle won't be just "radius = 6.1;"
[07:26 am]  payne -- test, your thing, http://pastebin.com/9a8fn0MD, those "bob" methods are actually useless, right?
[07:26 am]  O)FaRTy1billion -- if you had that getRadius method, then you could do c1.getRadius(); and it would return the radius
[07:26 am]  trgk -- "kkaaa" thing was about JAVA
[07:25 am]  O)FaRTy1billion -- like you could do public whatever double getRadius() { return rayon; } .. but it makes more sense to me at least to just make the variable public if you're going to do that xD
[07:25 am]  payne -- what would be a method that could get a private variable to be usable elsewhere? A method with a public local variable which would simply copy that private variable as a return value?
[07:25 am]  trgk -- c1.SetRadius(6.1); // maybe
[07:25 am]  payne -- and to change that radius, eventually... the line would look like " Cercle c1 = new Cercle(6.1);" or " c1 = Cercle(6.1);"
[07:24 am]  O)FaRTy1billion -- radius is private, so you'd either need a method for getting it or to make it public
[07:24 am]  O)FaRTy1billion -- anyway, I really have to go to bed now. Good-bye! xD
[07:24 am]  payne -- would I be able to call back the radius value of "c1", for example?
[07:23 am]  O)FaRTy1billion -- Or maybe what if you want to increase the radius?
[07:22 am]  O)FaRTy1billion -- Like I'm assuming the class might eventually get some other methods for using the radius, like if you wanted area and not just the perimeter.
[07:22 am]  Test -- Mine is more object orientated, and keeps the object alive. Instead of just using it once for one calculation.
[07:21 am]  O)FaRTy1billion -- That's faster and shorter for what the program currently does, but it doesn't really accomplish what the class is trying to set up
[07:20 am]  O)FaRTy1billion -- Another example is if you had like a game with a unit class, you might do like new unit(some ID), and then the constructor method would look up the properties for that unit ID and set the HP, weapons, and other stats based on the defaults for that unit ID.
[07:20 am]  Test -- http://pastebin.com/9a8fn0MD
[07:20 am]  payne -- http://pastebin.com/mkS9u8pM this is TONS faster and shorter... why bother with constructors?
[07:19 am]  O)FaRTy1billion -- You might also use it to fill variables with some expected initial values... It's just code that initializes a new instance of the class
[07:18 am]  O)FaRTy1billion -- you're using it to set some property (the radius)
[07:18 am]  O)FaRTy1billion -- because it's what the code calls when you make a new instance
[07:18 am]  payne -- but why would I choose to use constructors?
[07:18 am]  O)FaRTy1billion -- Like here your constructor is setting the radius, either to a specified value (if given) or to a default value
[07:17 am]  O)FaRTy1billion -- there are also deconstructors for when you destroy an instance of a class xD
[07:17 am]  O)FaRTy1billion -- I don't know, because I don't know Java xD
[07:17 am]  O)FaRTy1billion -- when you make a new instance of a class it calls the constructor to set it up however you want
[07:17 am]  payne -- well, it still works with bob though... it's weird
[07:16 am]  payne -- what is the role of constructors..?!
[07:16 am]  O)FaRTy1billion -- it wants bob to be circle because the class is called circle
[07:16 am]  Test -- You have a variable that isn't static, but calling it from a static method.
[07:16 am]  payne -- so "new" forces method to have same name as class?
[07:16 am]  payne -- I don't understand why it wants "bob" to be "Circle"... isn't "bob" just the name of a method inside the Circle class? what is the problem...
[07:15 am]  O)FaRTy1billion -- the function name should be the same as the class name because it is a constructor. the 'new' is saying a new of the class
[07:15 am]  Test -- That class makes no sense haha
[07:13 am]  payne -- well, the compiling gives back an error, but it still runs properly...
[07:12 am]  payne -- http://pastebin.com/ceryvHN4 I don't understand why this doesn't work
[07:09 am]  payne -- :bye3 *
[07:09 am]  payne -- :by3
[07:09 am]  payne -- good night :farty:
[07:09 am]  payne -- thx for all the help again
[07:08 am]  O)FaRTy1billion -- anyway, I need to go to bed
[07:07 am]  O)FaRTy1billion -- unless Java has like like a variant type that it's making 'bob', allowing you to make 'bob' a cercle ;o
[07:07 am]  O)FaRTy1billion -- it shouldn't be bob c3, because the type is Cercle
[07:06 am]  O)FaRTy1billion -- xD Does your professor ever question where you get some of the weird things we tell you?
[07:06 am]  payne -- changing " Cercle c3 = new Cercle();" into " bob c3 = new Cercle();" gives me an error, but still renders the whole properly...
[07:05 am]  O)FaRTy1billion -- Do you need it outside of the class?
[07:04 am]  payne -- I basically don't understand why the professor made this example with a "private" instead of a "public"
[07:03 am]  O)FaRTy1billion -- you can make it public, and then you'd be able to reference it from outside the class
[07:03 am]  payne -- to be able to call it in another class
[07:03 am]  payne -- I was just wondering, generally
[07:03 am]  O)FaRTy1billion -- Or do you mean like from somewhere else retrieve it?
[07:02 am]  O)FaRTy1billion -- Why do you want it to be another class? It's a specific property of your circle ;o
[07:01 am]  O)FaRTy1billion -- you're saying I have a circle variable here, now make me a circle with a specified radius
[07:01 am]  payne -- is there a way to call that "private double rayon;" into another class?
[07:00 am]  O)FaRTy1billion -- It's creating a new instance of that class
[07:00 am]  O)FaRTy1billion -- Why do you keep saying "4 8 15 16 23 42"?
[07:00 am]  payne -- http://pastebin.com/0936aVdU what is that "new" thingy? not sure I understand
[06:59 am]  O)FaRTy1billion -- All the stuff I'm learning about 3D graphics is making the 3D dots program I made in highschool make waaay more sense, and now I'd be able to fix the things that weren't working. xD
[06:58 am]  jjf28 -- nightz :cube:
[06:58 am]  jjf28 -- 4 8 15 16 23 42
[06:56 am]  O)FaRTy1billion -- also Payne, you're using a web-safe color. The chances of someone using that exact orange is pretty high.
[06:55 am]  O)FaRTy1billion -- quaternion * vector to make a matrix
[06:55 am]  O)FaRTy1billion -- Incidentally, the screenshot I posted earlier as an example of how I have my syntax highlighting has part of the quaternion code ...
[06:54 am]  jjf28 -- oh classes with computers
[06:54 am]  jjf28 -- they let you work on your computer in highschool classes? :O
Link to this page

Members in shoutbox:


Search the shoutbox:

Search for:
Shouted by:

Shoutbox commands:

/w [name] >> Whispers to a member.

/r >> Whispers to the last person who whispered you.

/a >> Whispers to the last person you whispered to.

/me >> Makes the shout as an action.