IRC logs for #openttd on OFTC at 2014-12-29
⏴ go to previous day
00:31:30 *** Progman has joined #openttd
01:24:54 *** Biolunar has joined #openttd
01:25:05 *** liq3 is now known as Guest3348
01:50:14 *** Myhorta has joined #openttd
01:58:55 *** Biolunar has joined #openttd
01:58:55 *** FLHerne_ has joined #openttd
01:58:55 *** Supercheese has joined #openttd
01:58:56 *** MTsPony has joined #openttd
01:58:56 *** tokai|mdlx has joined #openttd
01:58:56 *** Flygon_ has joined #openttd
01:58:56 *** gelignite has joined #openttd
01:58:56 *** Eddi|zuHause has joined #openttd
01:58:56 *** luaduck_zzz has joined #openttd
01:58:56 *** Buntunub has joined #openttd
01:58:56 *** glevans2 has joined #openttd
01:58:56 *** LadyHawk has joined #openttd
01:58:56 *** Stimrol has joined #openttd
01:58:56 *** Extrems2 has joined #openttd
01:58:56 *** dihedral has joined #openttd
01:58:56 *** ccfreak2k has joined #openttd
01:58:56 *** Terkhen has joined #openttd
01:58:56 *** ^Spike^ has joined #openttd
01:58:56 *** Hirundo has joined #openttd
01:58:56 *** orudge` has joined #openttd
01:58:56 *** zeknurn has joined #openttd
01:58:56 *** TheMask96 has joined #openttd
01:58:56 *** Hazzard has joined #openttd
01:58:56 *** tycoondemon2 has joined #openttd
01:58:56 *** Defaultti has joined #openttd
01:58:56 *** XeryusTC has joined #openttd
01:58:56 *** argoneus has joined #openttd
01:58:56 *** reticulum.oftc.net sets mode: +o Terkhen
01:58:57 *** ToBeFree has joined #openttd
01:58:57 *** Sheogorath has joined #openttd
01:58:57 *** Cursarion has joined #openttd
01:58:57 *** blathijs has joined #openttd
01:58:57 *** fkinglag has joined #openttd
01:58:57 *** kais58_ has joined #openttd
01:58:57 *** Belugas has joined #openttd
01:58:57 *** fonsinchen has joined #openttd
01:58:57 *** KWKdesign has joined #openttd
01:58:57 *** Prof_Frink has joined #openttd
01:58:57 *** KenjiE20 has joined #openttd
01:58:57 *** b_jonas has joined #openttd
01:58:57 *** smeding has joined #openttd
01:58:57 *** FreeZeee has joined #openttd
01:58:57 *** jonty-comp has joined #openttd
01:58:57 *** Rubidium has joined #openttd
01:58:57 *** mikegrb has joined #openttd
01:58:57 *** Xaroth_ has joined #openttd
01:58:57 *** Xaroth|Work has joined #openttd
01:58:57 *** TinoDidriksen has joined #openttd
01:58:57 *** Nothing4You has joined #openttd
01:58:57 *** Born_Acorn has joined #openttd
01:58:57 *** davidstrauss has joined #openttd
01:58:57 *** theholyduck has joined #openttd
01:58:57 *** mgrunin has joined #openttd
01:58:57 *** SpComb^ has joined #openttd
01:58:57 *** TrueBrain has joined #openttd
01:58:57 *** CosmicRay has joined #openttd
01:58:57 *** peter1138 has joined #openttd
01:58:57 *** LordAro has joined #openttd
01:58:57 *** horazont has joined #openttd
01:58:57 *** reticulum.oftc.net sets mode: +oo Belugas peter1138
01:58:57 *** NGC3982 has joined #openttd
01:58:57 *** Titilambert has joined #openttd
01:58:57 *** lastmikoi has joined #openttd
02:31:02 *** Stimrol has joined #openttd
03:31:13 *** Biolunar_ has joined #openttd
04:20:32 *** supermop has joined #openttd
05:56:16 *** Eddi|zuHause has joined #openttd
06:39:40 *** Buntunub has joined #openttd
06:46:24 *** Supercheese has joined #openttd
07:32:28 *** andythenorth has joined #openttd
07:55:54 *** Alberth has joined #openttd
08:09:47 <andythenorth> Alberth: think we’ll need to store the goal uid (GoalID) in the company goal structure
08:10:33 <andythenorth> I wasn’t sure whether we could use the goal num in the company goal structure
08:10:42 <andythenorth> probably they’re different
08:11:11 <andythenorth> GoalID appears to be globally unique (which is what I would expect)
08:11:24 <Alberth> nah, just make a new entry in the table
08:11:57 <andythenorth> I added a line to log GoalID, I didn’t want to touch the company structure without checking with you first :)
08:11:58 <Alberth> amount of delivered stuff also needs storage
08:13:10 <andythenorth> I read some squirrel docs last night just to get acquainted with it a bit more
08:20:15 <Alberth> maybe we should have a companygoal class so you can add code to the goal?
08:20:55 <andythenorth> afaict we can then subclass for different goals
08:21:00 <andythenorth> or over-ride methods
08:21:28 <andythenorth> the class stuff in Squirrel looks pretty familiar
08:22:36 <andythenorth> give each goal subclass a ‘CheckProgress()’ method or such
08:24:43 *** sla_ro|master has joined #openttd
08:47:23 *** andythenorth has joined #openttd
08:51:51 <Alberth> andythenorth: pushed a structure, currently working on monitoring and updating goal progress
08:59:21 <andythenorth> been thinking about how to report progress
08:59:33 <andythenorth> the goal window might get quite long, and I’m not sure if we can control order there
09:00:45 * andythenorth will experiment in a bit
09:01:39 <Alberth> only show incomplete goals? perhaps add an overall goal (x of y goals achieved)
09:06:03 <andythenorth> agreed, incomplete + overall
09:06:19 <andythenorth> maybe the story book for history, if it seems worth it
09:13:37 <argoneus> how are my train friends doing
09:14:07 <Alberth> if you want an unknown number of challenges, story book or newsitem perhaps
09:15:48 <Alberth> maybe you can adjust the goal? (n-1 of n goals done, and adjust n every time a goal is done :p )
09:25:11 <andythenorth> history of last n goals
09:37:39 *** Quatroking has joined #openttd
09:38:22 *** ChanServ sets mode: +v peter1138
09:38:22 *** ChanServ sets mode: +o Rubidium
09:38:22 *** ChanServ sets mode: +v Belugas
09:38:22 *** ChanServ sets mode: +v Terkhen
09:38:22 *** ChanServ sets mode: +v DorpsGek
09:38:22 *** ChanServ sets mode: +v planetmaker
10:09:52 *** Myhorta has joined #openttd
10:27:57 *** Progman has joined #openttd
10:32:44 *** oskari89 has joined #openttd
11:17:50 *** andythenorth has joined #openttd
11:21:59 <andythenorth> also download count is a meaningless stat
11:22:59 <Alberth> pushed monitoring and updating of delivered amounts
11:23:13 <Alberth> as in, it doesn't crash when you start a new game :p
11:23:42 <andythenorth> Feature: doesn’t crash
11:23:56 <Alberth> always a useful feature :D
11:28:21 * andythenorth wonders about a range settting for goal size
11:29:58 *** TheMask96 has joined #openttd
11:40:09 <Alberth> I wondered whether the upper limit is a bit too high
11:42:07 <andythenorth> it’s 7500 currently?
12:04:59 <andythenorth> seems reasonable
12:20:34 *** Jinassi has joined #openttd
12:23:45 <andythenorth> “Deliver 500 of <invalid cargo> to Flippertyworth Recycling Plant"
12:24:19 <andythenorth> wonder if that’s a FIRS bug
12:24:43 <Alberth> that, or you swapped the {cargo} values
12:25:03 <andythenorth> it’s 1 of 10 goals
12:25:05 <andythenorth> the other 9 are fine
12:25:22 <andythenorth> I just happened to leave a game running with AI companies, and it appeared
12:27:13 <Alberth> try printing all cargoes of this.cargoes ?
12:27:49 <Alberth> afk for some shopping
12:32:40 *** Supercheese is now known as Guest38
12:32:45 *** Supercheese has joined #openttd
12:34:07 *** andythenorth has joined #openttd
12:46:58 <Wolf01> seem it's monday, back to refactoring
12:56:59 * andythenorth refactors childrens’ lunch
12:57:07 <andythenorth> or children’s even
13:06:44 <Wolf01> what one should test when the test is equal to the implementation of the function to test?
13:11:12 <andythenorth> test integration
13:11:30 <andythenorth> I read a good thing recently about the over-reliance on unit tests
13:11:40 <andythenorth> which I don’t have a link for :P
13:12:05 <andythenorth> and the chance that the tests inevitable have as many defects as the code they’re attempting to test
13:12:31 <andythenorth> also that, to meet coverage targets, people write stupid tests, like asserting 1+1=2
13:12:53 <andythenorth> I recently deleted some tests from an app that just tested python was behaving according to python spec :P
13:13:04 <andythenorth> assert on setattr
13:16:59 <Wolf01> yeah, I know it well, but as I'm testing our DateTime wrapper, I don't want to test eg. the localised format() against a string, as it could be slightly different for each system which runs the test, so I thought of testing against a generated string, but to generate it I would write the same code (it uses strftime()) used internally :P
13:34:13 *** Jinassi has joined #openttd
14:00:26 <Wolf01> mmh, DateTime::createFromFormat() acts strange, I expected that giving a constant "seconds" it would create a date with "now" and the seconds I fixed
14:00:41 <Wolf01> instead it creates 00:00:seconds I fixed
14:01:22 <Wolf01> but with the date part it acts right
14:02:41 <Wolf01> bah, PHP inconsistencies
14:02:53 *** Myhorta has joined #openttd
14:03:34 <andythenorth> testing datetime formatting is notoriously hard
14:03:49 <andythenorth> especially if you have locale, TZ, *and* user preferences support :)
14:05:23 <Wolf01> not that I want test their DateTime, but since our class sets up some defaults in case of missing/wrong data, I'm in trouble with the core implementation
14:05:51 <Wolf01> I need to find a way to test our stuff without trigger their weirdness
14:16:47 <Wolf01> what's the point of using italic in docs... | looks like / :D
14:17:05 *** Alberth has joined #openttd
14:17:05 *** ChanServ sets mode: +o Alberth
14:40:58 <Alberth> delete some completed company goals would be next?
14:46:58 *** TrueBrain has joined #openttd
15:15:33 *** Jinassi has joined #openttd
15:21:02 *** smoke_fumus has joined #openttd
15:30:40 <Wolf01> uh uh, a singleton class, this could be nice to test
15:32:02 *** supermop has joined #openttd
15:35:02 <Alberth> andythenorth: pushed 'done' detection, and removal
15:35:23 <Alberth> goal window needs to be updated and removal :p
15:35:25 <andythenorth> you are working much faster than me
15:35:40 <andythenorth> I have….children interruptions
15:36:10 <Alberth> programming with obstacles :)
15:37:40 <Alberth> no, we're doing remote pair programming :)
15:37:55 <Alberth> or perhaps co-operative programming :)
15:40:04 <Alberth> Wolf01: sort of lemmings programming?
15:52:39 <andythenorth> mostly alberth programs, and I make some strings appear twice a day
15:55:27 <Wolf01> Alberth, it could be like that, yes
15:59:36 *** TheMask96 has joined #openttd
16:07:27 <Wolf01> I need a rocket launcher
16:10:52 <Alberth> too many weird dereferencing to foreign sites :)
16:13:22 <Wolf01> eh they also warned me " You can't control the creation of the singleton object because often it is created in a static initializer or static method. As a result, you also can't mock out the behavior of that Singleton instance."
16:19:17 <Alberth> as long as you don't do anything when creating the singleton, there wouldn't be a problem right?
16:19:37 <Alberth> alternatively, create it on the first call?
16:20:29 <Wolf01> no, that's not the problem, the problem is that I need to destroy it for every test or it carries the stuff other tests put in
16:21:23 <Wolf01> but, I can't destroy a singleton :D
16:22:24 <Wolf01> I could write some reset methods, but I don't want to change the class yet, I need to test it first
16:23:26 <Wolf01> also, that weird thing is a dependency injection container too, and it have its own hardcoded dependencies
16:23:55 <Alberth> yeah, testing is overrated :p
16:24:53 <Wolf01> and that code is so weird it relies on classes instead of interfaces
16:26:07 *** Myhorta has joined #openttd
16:28:02 *** HerzogDeXtEr has joined #openttd
16:29:07 <Alberth> if you just have 1 implementation, wouldn't that be the solution you want in the first place?
16:29:41 <Wolf01> no, because it's not testable
16:31:22 <Wolf01> oh, there is a nice way to reset the parameters :D... no it just does nothing D:
16:35:35 <andythenorth> so the singleton isn’t recreated for every test?
16:36:05 <andythenorth> but the app isn’t torn down and rebuilt for each test?
16:36:17 <andythenorth> that can be slow :P
16:36:27 <Wolf01> I could move each test on a different thread
16:36:51 <Wolf01> but I'm sure it will blow up
16:38:41 <Alberth> of course, threads share memory
16:39:04 *** Jinassi has joined #openttd
16:39:53 <Wolf01> no, I have thread safe PHP, but I think there's something else to disable in PHPUnit
16:40:15 <Wolf01> for example I forgot: @preserveGlobalState disabled
16:40:31 <Wolf01> and now it passes all the tests nicely :D
16:55:08 <Wolf01> I'm trying to limit the absumption of that substance, just the minimum to not get headaches
17:02:57 <supermop> gah "goods Valley" id been playing off and on for two weeks failed
17:03:14 <supermop> i guess i will try for the cookie
17:08:17 *** zeknurn` has joined #openttd
17:09:01 *** Buntunub_ has joined #openttd
17:09:43 *** MTsPonyZzZ has joined #openttd
17:09:44 *** zeknurn` is now known as zeknurn
17:13:09 *** tokai|mdlx has joined #openttd
17:14:32 *** davidstrauss_ has joined #openttd
17:19:26 *** Cursarion has joined #openttd
18:01:21 *** MTsPony has joined #openttd
18:05:27 * andythenorth tried limiting coffee
18:12:43 *** smoke_fumus|2 has joined #openttd
18:13:48 *** andythenorth_ has joined #openttd
18:14:31 *** TrueBrain_ has joined #openttd
18:16:49 *** Pereba_ has joined #openttd
18:17:23 *** andythenorth_ is now known as andythenorth
18:17:29 *** Pereba_ is now known as Pereba
18:18:15 *** MTsPony has joined #openttd
18:18:15 *** TheMask96 has joined #openttd
18:18:15 *** oskari89 has joined #openttd
18:18:15 *** sla_ro|master has joined #openttd
18:18:28 *** oskari892 has joined #openttd
18:19:28 *** TrueBrain_ is now known as TrueBrain
18:20:57 <Wolf01> andythenorth, you can drink as many coffee as you want, yours it's like tea, if I would drink more than 5 espresso in a day I'll die in a week
18:24:32 *** MTsPonyZzZ has joined #openttd
18:27:05 * NGC3982 drinks like four espresso's a day.
18:27:17 <NGC3982> Although, in 6-10cl pints.
18:28:33 *** Pensacola has joined #openttd
18:28:58 *** TheMask96 has joined #openttd
18:28:58 *** sla_ro|master has joined #openttd
18:38:50 <andythenorth> Wolf01: I am drinking espresso or americano
18:40:51 <NGC3982> Isn't Americano diluted espresso?
18:41:08 <Wolf01> americano is ghost coffee
18:41:41 <FUZxxl> Greetings from Congress to all of you!
18:41:41 <andythenorth> mine is usually expresso filled up with water
18:42:53 <Rubidium> NGC3982: word crimes?
18:42:59 <NGC3982> I guess that is the equivalent to the Europeean Néscafé.
18:43:42 <NGC3982> No, i do actually think Expresso is a brand name for dry freece'd coffee.
18:44:11 * NGC3982 has seen it somewhere.
18:45:19 <andythenorth> it was a word crime
18:45:30 <andythenorth> obiwan on my keyboard :P
18:46:02 <Rubidium> now something more openttd related...
18:46:28 <Rubidium> this cargodist in the real world, how long does it take (specifically) UPS to update they status of packages?
18:47:41 <Rubidium> because apparantly they are to deliver a package today before 19:00 local time (45 minutes ago), but based on their tracking stuff it isn't even in my country yet
18:48:42 <Wolf01> one of my tracking shown the package was in Germany while I had it in my hands
18:48:42 <andythenorth> probably using cassandra
18:48:55 <andythenorth> the database will be consistent….eventually
18:49:00 * NGC3982 has hilight on his wife's name.
19:45:25 *** ToBeFree has joined #openttd
19:54:04 *** andythenorth has joined #openttd
20:09:40 *** Zeetherdroid has joined #openttd
20:55:44 *** Myhorta has joined #openttd
21:03:11 *** TheMask96 has joined #openttd
21:10:01 *** gelignite has joined #openttd
21:13:30 *** Extrems has joined #openttd
21:24:05 <Wolf01> boring games for boring people, back to clicker heroes :P
21:26:09 <Wolf01> good, not so much improvement since this afternoon, I'll need some other boring thing to do
22:21:02 *** Rubidium_ has joined #openttd
22:21:06 *** SpComb^_ has joined #openttd
22:21:12 *** FUZxxl_ has joined #openttd
22:21:44 *** Xaroth|W1rk has joined #openttd
22:22:28 *** Belugas has joined #openttd
22:22:28 *** ChanServ sets mode: +o Belugas
22:23:09 *** Born_Acorn has joined #openttd
22:23:09 *** theholyduck has joined #openttd
22:23:09 *** Xaroth_ has joined #openttd
22:23:09 *** jonty-comp has joined #openttd
22:23:09 *** Sheogorath has joined #openttd
22:23:09 *** argoneus has joined #openttd
22:23:09 *** Terkhen has joined #openttd
22:23:09 *** ccfreak2k has joined #openttd
22:23:09 *** Eddi|zuHause has joined #openttd
22:23:09 *** tokai|mdlx has joined #openttd
22:23:09 *** davidstrauss_ has joined #openttd
22:23:09 *** ToBeFree has joined #openttd
22:23:09 *** smoke_fumus|2 has joined #openttd
22:23:09 *** glevans2 has joined #openttd
22:23:09 *** dihedral has joined #openttd
22:23:09 *** orudge` has joined #openttd
22:23:09 *** Hazzard has joined #openttd
22:23:09 *** blathijs has joined #openttd
22:23:09 *** Rubidium has joined #openttd
22:23:09 *** Xaroth|Work has joined #openttd
22:23:09 *** graviton.oftc.net sets mode: +ovo Terkhen Terkhen Rubidium
22:23:13 *** smoke_fumus has joined #openttd
22:23:13 *** MTsPonyZzZ has joined #openttd
22:23:13 *** oskari892 has joined #openttd
22:23:13 *** Supercheese has joined #openttd
22:23:13 *** Quatroking has joined #openttd
22:23:13 *** luaduck_zzz has joined #openttd
22:23:13 *** ^Spike^ has joined #openttd
22:23:13 *** fkinglag has joined #openttd
22:23:13 *** KWKdesign has joined #openttd
22:23:13 *** TinoDidriksen has joined #openttd
22:23:13 *** CosmicRay has joined #openttd
22:23:14 *** SpComb^ has joined #openttd
22:23:14 *** mgrunin has joined #openttd
22:24:23 *** ToBeFree has joined #openttd
22:25:16 *** dihedral has joined #openttd
22:29:56 *** MTsPony has joined #openttd
22:46:02 <argoneus> so what are you guys going to do in 2015
22:54:57 <NGC3982> I will turn into a solid block of barium-132.
22:57:41 *** luaduck_zzz is now known as luaduck
23:01:31 *** Xaroth|Work has joined #openttd
23:33:14 *** Progman has joined #openttd
continue to next day ⏵