@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8



Comments:

<0> Insty: i always question myself what's first thing to do about it
<0> not all details, just what's first(next) in line
<1> well, i have a description of the thing
<2> hmm... someone should pay more attention in cl*** next time I guess :P
<1> where it mentions the different cl***es
<1> and what they are supposed to do
<1> their behavior
<3> Insty: sounds to me like what you need to do to begin with is write a formal definition of the problem. You don't seem (to me) to know what it is that you have to do
<1> so im supposed to do the hierachy (herance? im not english sorry)
<3> oh, so you have a contract to adhere to?
<4> how do i change the size of the text in a jbutton ?
<1> it's not a contract, it's an academic thing
<5> you lack analytic thinking
<3> you know what the cl***es are to be called, what methods are required and what the methods should do? You're 75% of the way finished
<0> Ang3lu5: button.setFont(button.getFont().deriveFont(Font.PLAIN, 16))
<1> i know the cl***es,



<4> cheers wolfey
<1> i know the game, so i could do it from the top of my head
<3> Insty: "contract" in this context means "the cl*** should be called Foo, should implement this list of methods and the methods should behave in this way"
<1> after knowing how the OOP thing works
<2> euh
<0> Insty: try reading sun java tutorial?
<1> hey
<2> wouldn't that be a requirement to know before even starting with this stuff?
<1> easy
<1> one at a time please
<3> if you have a contract, you're most of the way there...that's the hard part. The rest is (mainly) grunt work
<4> when i covered programming semantics they were sometimes described as states
<2> how can you try oop programming if you didn't learn the concept yet?
<0> Insty:
<0> http://java.sun.com/docs/books/tutorial/java/index.htm
<1> Lion-O i did
<0> try first topic, OOP
<2> Insty: a moment ago you said you didn't.
<1> i know al about calsses, polimorfism, encapsulation
<1> abstract methods
<5> Insty, then where is the problem?
<1> access controls
<3> what don't you know then?
<1> (well i know it in concept, i lack the pratice bit)
<4> Insty you know any software engineering methods ?
<1> this thing about states
<6> i think he is talking about private,public,protected, package friendly
<5> what states
<1> I was told I'm supposed to use
<1> Ang3lu5? could you be a little more specific please?
<3> what exactly do you MEAN by 'states'?
<2> I think smsie is right here. he doesn't know the ***ignment.
<4> well you may know about oop that doesn't mean you can design software
<1> smsie that is precisely my problem
<3> the term 'states' is vague at and ambiguous at best
<1> i know it's not a sintax thing
<0> perhaps state is merely cl*** fields that describe where the damn ball is?
<2> how boring.
<0> :)
<1> it's supposedly a concept, like OOP is itsef
<5> ask your teacher
<3> wolfey: yes, that's entirely possible. It was one of the options I mentioned :)
<4> Insty i am pretty sure you are talking about semantics
<1> does the following ring a bell to you:
<5> for
<0> well for example when you do game, you paint the game state, you cant force painting when you 'move' ball, you update ball position and call repaint
<0> that's a state you paint
<0> (i guess)
<1> "if tests are cpu intense, as most cycles are, and should therefore be avoided; instead they are replaced with a nes cl***, even an empty one, with nothing more then a Constructor"
<3> ?!
<1> "new cl***"
<2> errr, right.
<3> is that teacher on crack?!
<2> or is this a troll, thats what I'm asking :P
<1> i can't etll
<3> if (foo==5){...} is more expensive than an anonymous cl***?!
<0> smsie: NO
<1> i'm lost too
<4> UML has state diagrams that represent the state of an object
<0> smsie: if foo takes 2 CPU cycles
<0> annoymous cl*** uses dozens of CPU cycles to construct



<2> Insty: how can you not having to learn java yet are confronted with constructors and such?
<5> and alot of memory
<1> wolfey in javac?
<0> and a good dozen for every method call
<3> wolfey: I know
<0> Insty: well java is just-in-time-compiled
<2> Insty: the whole story makes little sense to me.
<3> wolfey: which is why I asked if the teacher was on crack
<0> and int comparission is built in ANY cpu
<1> Lion-O: we're supposed to learn only the basic sintax, not explore the full java potentials
<0> smsie: hell in my game i inlined dirty code, just to avoid method calls
<7> syntax
<0> one thing however
<1> ty
<1> syntax it is
<2> Insty: So why bother with cpu intensity?
<7> sintax is maybe to do with prostitution
<0> HashMap is good to avoid long if else if else if else if sequences
<5> prostitution of objects?
<0> at expense of memory
<8> hm? prostitutes? wherE?
<1> Lion-O, i'm tottally in the dark here
<9>
<3> obviosuly
<2> besides; nothing wrong with an if.. then when used sparsely. You can also utilize the switch case and all of that stuff.
<7> Insty get more context from the instructor
<0> Insty: look just do first thing that works, at least you do something, try the 'code beauty' when you have more experience...
<1> define enums, and save the universed calculation
<0> Insty: that's my advice
<1> i understand and ultimatly agree
<0> Insty: in meanwhile i want to show you my java game ;)
<1> i would like to understand this state thing point
<5> Insty, ask your instructor what he means first
<1> Rob_uknow, that's the thing, i was trying to get some insight, so i could start brainstorming about the concept in between my free time
<7> Insty is the question online?
<1> as im already a monthe behind on schedule
<1> it is, but you need to know portuguese
<1> :)
<5> just copy your fellow students work
<1> ah
<1> you almost pulled a ":)" out with that one Rob_uknow
<0> only logical thign about your game state is your ball, say it is on x=5 y=3 ... you move it down if y>0, so you do y--, then repaint() which will paint ball (eventually) on x=5 y=2
<1> i wouldn't mind it for an insight, but this is code-war here
<0> hell i see no other point of state:)
<3> wlfshmn: well, you do y+=yBallDirection, but yeah :)
<0> smsie: yeah... some Math.cos and Math.sin thing?
<0> :)
<8> meh, you guys keep triggering me all the time
<0> wlfshmn: :))
<3> wolfey: depends what you're doing...
<1> well, i don't have to worry about that
<1> the objects movement is already implement in a specific cl***
<0> great
<1> i just have to manipulate it
<0> so what's left for you?
<1> dependending on the collision handling
<0> well you know physics, momentum?
<1> some
<1> as in "object X's movement is defined by cl*** Y under condition Z"
<1> we are given the cl***es to handle the collisions and give a result
<1> and we supposedly have to puzzle with that
<0> vector equation m1 * v1a + m2 * v1a = m1 * v1b + m2 * v2b (conservation of momentum in collisions that dont deform body)
<0> :)))
<0> (if i remember correctly)
<0> :)
<7> what is the problem you have to solve?
<1> i'm sure you do
<1> i have to do Pang
<0> bold are motion vectors
<5> wat is m1?
<0> m***
<0> sum of m*** * velocity is conserved
<7> what is the specific issue right now?
<5> m2?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

ImportError: No module named twisted.copyright
asafar
#MissKitten
inet.conf rsync
bander_83
#linuxhelp
#linux
#linux
enloco undernet
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes