IRC logs for #openttd on OFTC at 2015-11-11
⏴ go to previous day
00:03:47 *** Extrems has joined #openttd
00:36:48 *** Myhorta has joined #openttd
00:37:50 *** Progman has joined #openttd
00:45:46 *** drac_boy has joined #openttd
01:29:43 *** sim-al2 has joined #openttd
02:30:28 *** strohalm has joined #openttd
06:56:16 *** Eddi|zuHause has joined #openttd
08:35:37 *** sla_ro|master has joined #openttd
09:36:45 *** Sirenia has joined #openttd
10:09:08 <greeter> is it just me or is that a lot of if statements?
10:09:27 <Supercheese> it certainly is a lot of something
10:10:25 <greeter> hey i don't know c++, that could be beautiful looking code, that just to me looks horrible and ugly
10:28:29 <peter1138> Looks autogenerated, but...
10:29:16 *** Myhorta has joined #openttd
10:55:32 <__ln__> peter1138: autogenerated code wouldn't have random lines commented out with //
11:00:30 *** Klanticus has joined #openttd
11:01:11 <peter1138> __ln__, hence the "but"
11:02:22 <__ln__> also autogenerated code would probably have some kind of repeating structure
11:27:47 <Eddi|zuHause> so, this could use some codestyle and commments, but what exactly is so horrible about it that makes it share-worthy?
11:32:53 <SpComb> > The coding style is what you might expect from a self-taught high school student, so it could be a challenge to understand, but feel free to give it a shot!
11:35:40 <__ln__> Eddi|zuHause: the ten-thousand-line function?
11:37:09 <SpComb> Eddi|zuHause: it's such dense code that it's really painful to understand, and it kinda looks like there's a lot of duplication, so it's going to be difficult to modify
11:37:34 <SpComb> aka spagetti code, the same kind you have running your car ECU's safety-critical features :P
11:37:39 <Eddi|zuHause> so it's a "do everything" function that could use some refactoring
11:38:28 <__ln__> that's the most surprising use of the word "some" that i've heard
11:40:02 <SpComb> and the code style kinda reflects on the stereotype of someone who learned the basic language structure during their first few weeks writing code, and then just carried on from there without ever getting to the parts about organizing code, or reading anyone else's code
11:41:03 <SpComb> it works if you just work solo on your own project, and lugaru is a succesfull game, but it just doesn't work anymore if you want to have anyone else working on it
11:41:52 *** Progman has joined #openttd
11:45:50 <Eddi|zuHause> if you never collaborated with someone else, how would you ever learn about code style?
11:47:02 <SpComb> it does eventually come if you start re-reading your own code after not actively working on it for a while
11:57:56 <SpComb> but that was definitely share-worthy to the C++ course channel where they just started their courswork project, and most groups are doing some kind of game :)
12:03:48 <Wolf01> i should do some crunches
12:19:49 *** Progman_ has joined #openttd
12:22:29 *** rahtgaz has joined #openttd
12:25:10 *** Progman_ is now known as Progman
13:31:25 *** Hiddenfunstuff has joined #openttd
13:32:10 *** Supercheese has joined #openttd
13:36:04 *** cursarion has joined #openttd
14:16:14 *** Flygon_ has joined #openttd
15:00:48 *** Myhorta has joined #openttd
15:34:49 *** sla_ro|master has joined #openttd
15:41:58 *** ChanServ sets mode: +v tokai
16:00:07 *** sim-al2 has joined #openttd
16:34:29 *** fjb is now known as Guest8502
16:46:41 *** Alberth has joined #openttd
16:46:41 *** ChanServ sets mode: +o Alberth
17:41:38 *** Wormnest has joined #openttd
17:43:55 *** frosch123 has joined #openttd
17:51:12 *** TheMask96 has joined #openttd
18:05:31 *** FLHerne has joined #openttd
18:07:15 <frosch123> meh, devs.openttd.org does not know the svg mimetype :/
18:08:53 <Alberth> mimetypes are overrated anyway :p
18:11:39 *** smoke_fumus has joined #openttd
18:11:40 <frosch123> i hope coop is better :p
18:16:04 <Alberth> oh, it misses a few back-links :p
18:16:21 <frosch123> yes, i cut pax and supplies
18:16:41 <frosch123> not sure whether i should merge the industry->supplies links
18:16:49 <frosch123> currently there are multiple nodes for the same supply cargo
18:17:08 *** HerzogDeXtEr has joined #openttd
18:17:47 <frosch123> could also colour the supplies
18:18:46 <Alberth> coulouring is probably better, as many supplies occur at lots of places
18:19:03 <Alberth> keeping them separate makes cleaner picture
18:21:28 *** sla_ro|master2 has joined #openttd
18:25:45 <frosch123> except for farm supplies in arctic, there is always only one source
18:28:22 <Alberth> full firs is hopeless by definition almost, you probably need to make it manually, where this graph is a nice starting point
18:28:52 <Alberth> you could try a circular graph or so :p
18:29:14 <frosch123> people already did manual graphs
18:29:31 <frosch123> but i wanted some dotty source to edit stuff
18:29:51 <frosch123> it's so hard to discuss new economies on a pure text level
18:30:05 *** rahtgaz has joined #openttd
18:32:45 <Alberth> yep, makes a lot of sense
19:02:43 *** FLHerne has joined #openttd
19:02:45 <frosch123> why does the coffee estate produce fruit btw?
19:02:51 <frosch123> (in addition to coffee)
19:16:13 <Taede> maybe they sell the coffee cherries as well as the beans?
19:38:31 <planetmaker> nice, frosch123 :)
19:42:17 *** Pensacola has joined #openttd
19:52:22 <Eddi|zuHause> am i missing some fancy javascript or other plugin? the images don't show
19:53:15 <frosch123> you need a browser that is newer than 2003 or so
19:53:57 <Eddi|zuHause> well, i should have that, but it doesn't seem to work
19:54:31 <Eddi|zuHause> it gets worse, when i open the images directly, it shows the boxes, but not the text
19:56:46 <Eddi|zuHause> frosch123: but you're now at the exact point where i think graphviz fails. you got SOME graph, but if you want to clarify or emphasise something to get more comprehensibility/overview out of it, you don't have the right options to tweak it
19:57:56 <frosch123> you can use dotty to move stuff
19:58:08 <frosch123> but i think the graphs are fine (except full firs)
19:58:18 <Alberth> :o you can? I never managed to achieve that
19:58:21 <frosch123> but i doubt anyone could do a sane graph of full firs manually
19:58:46 <Alberth> in a week full time, lots is possible :p
19:58:50 <frosch123> Alberth: dotty is 20 years old and thus cryptic as hell, but it works somewhat
19:59:41 <Alberth> you're a better decrypter than me with dotty, then :)
20:01:21 <frosch123> you cannot save it except as image though
20:01:28 <frosch123> so, mostly worthless :)
20:09:24 <Eddi|zuHause> i never figured out dotty
20:09:46 <frosch123> it helps to read the docs :p
20:10:03 <frosch123> it's not intuitive for a past-95 gui standard
20:10:16 <Eddi|zuHause> let me rephrase that: i never felt the urge to figure out dotty
20:10:22 <frosch123> you need to use the middle button in the right places and such
20:10:59 <Alberth> I can work with xfig :)
20:11:51 <frosch123> rocs has a nice interface
20:12:05 <frosch123> but at least in my version it fails to import .dot
20:35:56 <Alberth> if you kill all the label stuff, it loads
20:41:50 <Alberth> hmm, this is not unlike that game where you have to layout a graph such that no lines cross :p
20:42:28 <frosch123> yay, the firs brand got a mini-game spin-off
20:45:22 *** sim-al2 has joined #openttd
20:54:38 *** oskari89 has joined #openttd
20:55:29 <Alberth> looks quite buggy, judging by the debug messages it emits :)
20:58:42 <frosch123> well, i don't consider a one-time effort to create a nice graph worth it
20:59:01 <frosch123> i keep it like andy, better something auto-generated, that is always up-to-date
21:22:08 <Alberth> much easier to maintain indeed
21:50:58 *** gelignite has joined #openttd
22:24:48 *** Progman has joined #openttd
22:32:05 *** Cybertinus has joined #openttd
22:46:08 *** Hiddenfunstuff has quit IRC
23:33:28 *** sla_ro|master2 has quit IRC
continue to next day ⏵