#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-09-08

Timestamps are in GMT/BST.

02:20:48Watusimoto has joined
02:23:21Watusimoto_ has joined
02:25:56Watusimoto Quit (Ping timeout: 256 seconds)
02:34:49Platskies has joined
03:15:08Skybax Quit (Ping timeout: 250 seconds)
03:34:04Nothing_MuchGood morning!
03:53:15Watusimoto has joined
03:54:00Watusimoto_ Quit (Ping timeout: 240 seconds)
04:01:41LordDVG has joined
04:14:58Nothing_MuchHi everyone
04:35:29Nothing_MuchIs anybody in charge of the twitter account?
05:26:07YoshiSmb has joined
06:10:42Nothing_Much Quit (Remote host closed the connection)
06:13:27Nothing_Much has joined
06:13:27Nothing_Much Quit (Changing host)
06:13:27Nothing_Much has joined
06:50:04YoshiSmb Quit (Ping timeout: 250 seconds)
06:54:03YoshiSmb has joined
07:01:26Watusimoto Quit (Ping timeout: 240 seconds)
07:10:09Watusimoto has joined
07:14:21Watusimotohi YoshiSmb
07:15:43Watusimotojust reading about the nsa
07:16:21YoshiSmbnsa?
07:16:38Nothing_Muchnational security agency/association
07:16:53YoshiSmbahh.
07:17:38Nothing_Muchbasically, if you've ever owned a windows pc, a smart phone, or any computer out there, it'll spy on you
07:17:40Nothing_Muchthe nsa
07:18:03Nothing_Muchit's pretty messed up
07:23:13Watusimotoindeed it is
07:23:54Nothing_Muchit's not just the USA that has it
07:24:18Watusimotoindeed it isn't
08:45:20YoshiSmb Quit (Ping timeout: 250 seconds)
09:18:44Platskies Quit (Quit: Gotta go)
10:08:14YoshiSmb has joined
10:12:28YoshiSmbis somebody online?
10:30:19YoshiSmbhelllo?
10:39:57YoshiSmbhello?
10:43:36Watusimotoapparently not!
10:53:58Watusimotoworking on bitfighter
10:54:39YoshiSmbohh.
10:57:00Watusimoto Quit (Remote host closed the connection)
10:57:21Watusimoto has joined
11:49:24Skybax has joined
11:49:27SkybaxHalla
11:56:00YoshiSmb Quit (Ping timeout: 250 seconds)
12:27:45Watusimoto Quit (Ping timeout: 261 seconds)
12:58:50Skybax Quit (Ping timeout: 250 seconds)
13:08:17Watusimoto has joined
13:24:14LordDVG Quit (Remote host closed the connection)
13:29:56Watusimoto Quit (Ping timeout: 264 seconds)
13:36:46Watusimoto has joined
14:27:18raptor has joined
14:27:18ChanServ sets mode +o
14:27:25raptorgood day
14:28:37Nothing_MuchHey raptor
14:30:40raptori promise i'll code again sometime..
14:33:43Nothing_MuchTake your time dude.
14:56:47kaenditto...
14:59:42Watusimotohello
15:00:05WatusimotoI am getting really sick of the stupid spawndelay crap
15:00:11Watusimotoit's currently broken
15:00:31Watusimotoand I'm having troubles following all the convoluted logic that it uses
15:00:56Watusimotoso I decided to try to get our testing framework up and running for full client-server interactions
15:01:10Watusimotoso I could write some tests and try to get a better handle on this
15:01:22Watusimotobut now I'm hitting a road block on that as well
15:01:26Watusimotogrrrr....
15:01:47WatusimotoI need to create a mock version of UIManager
15:02:00Watusimotounsure if I should do it by hand or try to implement google mock
15:02:18Watusimotounfortunately, it's a huge class, and has several template members
15:03:19Watusimotoargh
15:06:20raptorhi
15:06:30raptordidn't kaen attempt to mock UIManager?
15:07:01kaennope
15:07:22raptornevermind then.
15:07:54kaenwhy does it have to be mocked, Watusimoto ?
15:08:00raptorspawndelay and /idle junk, right?
15:08:12kaenI mean, is it causing some sort of runtime error?
15:08:14raptorI removed like half of the junk in there a few months back
15:08:20Watusimotoit is the gateway to all our UI code
15:08:57kaenI guess I don't understand how that prevents you from testing clientgame
15:09:04Watusimotosince we don't want the UI code to be run (tests shouldn't be tringgering explosion sfx, should they?)
15:09:14Watusimotoclientgame requires a UIManager
15:09:24Watusimototo do all its UI stuff
15:09:48kaensounds like we need an injectable dummy UIManager
15:09:52WatusimotoI've refactored things a little so that you pass the clientGame constructor a UIManager rather than having it instantiate its own
15:10:01kaenok, that's the injectable part
15:10:02Watusimotoyes, that's it exactly
15:10:15Watusimotoso we need to create the dummy UIManager
15:10:39kaenwell, I know this is lame.... but what if you copy/paste UIManager.* and delete the implementations?
15:10:43Watusimotothe UIManager header is 263 lines
15:10:56Watusimotothat is lame :-)
15:11:15WatusimotoI would need to create a UIManager interface
15:11:28Watusimotoand two implementations - the real and the dummy
15:11:35Watusimotothen in the test code I can instnatiate the dummy
15:12:07Watusimotoit's all doable, just a huge amount of typing
15:12:26Watusimotothough I knew we'd have to do it sometime
15:12:47WatusimotoI'm also stuck on the naming
15:13:07Watusimotowe need a name for the interface, for the real one, and the fake one
15:13:36WatusimotoUIManager is interface, UIManagerImpl is class, UIManagerFake is fake?
15:13:43WatusimotoI hate impl
15:13:47kaenthe most common convention I've seen is IUIManager and CUIManager
15:13:53kaen(interface and concrete)
15:14:05WatusimotoI've never seen CUIManager
15:14:30WatusimotoI think IUIManager looks a bit goofy
15:14:47Watusimotoespecially when in the real code, there is only the implementation
15:15:57raptorsave me from the Impls
15:16:09kaenok, UIManager as the interface makes sense too
15:16:41kaenUIManagerReal/UIManagerDummy ?
15:17:03kaenUIManagerReal would only show up once in the source code (wherever you construct it)
15:17:06raptorUserInterfaceManagerInterfaceJavaBeanParent
15:17:17kaenlol
15:17:50Nothing_Much Quit (Remote host closed the connection)
15:18:22kaenbut yes, testing means that a dummy UIManager is inevitable unless you want to write the mock code and bring in a mock library (something we've been able to avoid so far)
15:18:39kaenwhich sounds like even more work than copy/paste/mass delete
15:18:53WatusimotoI think UIManager should be the interface
15:19:06Watusimotoand mockUIManager or fakeUIManager is the fake
15:19:53Watusimotogoogle mock would actually not be much more work than what we are proposing
15:19:56kaenI have no strong feelings, but a shared prefix will make them show up next to eachother in class lists
15:20:18kaenit would definitely be handy have a mock library
15:20:25Watusimotoand what we are proposing is a step along the way towards implementing google mock
15:20:32kaenbut mocking is sort of a copout for bad architecture imo
15:21:29Watusimotoso UIManager, UIManagerFake, UIManagerReal?
15:21:36kaensounds fine to me
15:21:49Watusimotowhy is mocking a copout?
15:22:13WatusimotoI can't see how it could be avoided if you want to wall off some functions from testing (like gfx and sfx)
15:22:43kaenwell, if uimanager had really good design it would be usable (though not necessarily useful) without a graphic/sound context
15:22:57kaenand we could just prevent it from acquiring one and be done
15:23:08kaengranted
15:23:20kaenit was designed long before unit testing was a twinkle in our eye
15:24:20kaenthat's not meant to be a criticism, but I'm just pointing out we could save from having mocks or an interface layer if that were the case
15:24:45Watusimotonot taken as a criticism
15:26:00Nothing_Much has joined
15:31:25koda has joined
15:43:19Watusimotowell, I'll get it working in the morning
15:43:22Watusimotogood night!
15:45:14Nothing_Muchl8r Watusimoto
15:47:48Watusimoto Quit (Ping timeout: 260 seconds)
15:50:47raptornight!
15:50:54raptorwow do i hate oglconsole
15:52:53raptorkaen: quick OGL question -
15:53:56raptorwhen you do this: glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadMatrixf(C->pMatrix);
15:54:08raptorand then the same thing with glMatrixMode(GL_MODELVIEW);
15:54:16raptorwhat are you *actually* doing?
15:55:20raptornot 'you' exactly, but when that is done in code
15:58:17raptorit's using GLfloat pMatrix[16];
16:04:22raptoractually I think I understand what's happening...
16:07:01Nothing_Muchkaen's at work I believe
16:07:42kaennope, got of just a bit ago
16:09:57Nothing_Much Quit (Quit: bye)
16:12:08kaenraptor, that's configuring the "modelviewprojection matrix"
16:12:16kaen(obviously)
16:12:35kaenit sets up how the points you pass to gl are rendered
16:12:59raptorbecause I don't know why oglconsole is doing half the things it does - it seems like most of it is already done elsewhere in our game
16:13:10kaenprojection is for your position of the worl, modelview is for the attributes of the "model" (i.e. mesh)
16:13:20raptoryes
16:13:21kaenthat stuff is probably popped
16:13:22raptorok
16:13:24raptorit is
16:13:26kaenok
16:15:37Nothing_Much has joined
16:21:31raptorI'm starting to think we should just kill oglconsole in favor of our own console...
16:43:01Nothing_Much Quit (Quit: bye)
17:11:59Nothing_Much has joined
17:52:07raptor Quit (Ping timeout: 264 seconds)
18:09:49koda Quit (Quit: koda)
18:29:48raptor has joined
18:29:48ChanServ sets mode +o
20:35:04raptor Quit ()
23:55:24Watusimoto has joined

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.