Friday Facts #197 - Chugging along

Regular reports on Factorio development.

Friday Facts #197 - Chugging along

Postby Klonan » Fri Jun 30, 2017 6:15 pm

User avatar
Klonan
Factorio Staff
Factorio Staff
 
Posts: 2730
Joined: Sun Jan 11, 2015 2:09 pm

Re: Friday Facts #197 - Chugging along

Postby DerivePi » Fri Jun 30, 2017 6:34 pm

And I was just looking for a sample outline of class inheritance for a project (how the "is_a" rule is applied in a real production). Are different template implementations (ex. class dialog<>) considered inheritance though?
User avatar
DerivePi
Filter Inserter
Filter Inserter
 
Posts: 516
Joined: Thu May 29, 2014 4:51 pm

Re: Friday Facts #197 - Chugging along

Postby TheVeteraNoob » Fri Jun 30, 2017 6:42 pm

So when is recursive blueprints getting added to the base game.
TheVeteraNoob
Long Handed Inserter
Long Handed Inserter
 
Posts: 53
Joined: Wed Jul 20, 2016 2:20 pm

Re: Friday Facts #197 - Chugging along

Postby Zool » Fri Jun 30, 2017 7:33 pm

This ... recursive fab ... is ... INSANE !!!!
Zool
Long Handed Inserter
Long Handed Inserter
 
Posts: 55
Joined: Fri Jul 10, 2015 6:55 pm

Re: Friday Facts #197 - Chugging along

Postby Koub » Fri Jun 30, 2017 7:43 pm

I wholeheartedly hope the recursive blueprints bill be added into vanilla, just to be able to do such automation crasiness without mods :)
Koub - Please consider English is not my native language.
Koub
Global Moderator
Global Moderator
 
Posts: 2689
Joined: Fri May 30, 2014 8:54 am
Location: France

Re: Friday Facts #197 - Chugging along

Postby 5thHorseman » Fri Jun 30, 2017 7:44 pm

For 0.16 Twinsen has assigned himself a lot of these 'Fix the GUI' tasks, so no doubt there will be some interesting FFF material from him coming soon.


Yessssssssssssssssss
User avatar
5thHorseman
Fast Inserter
Fast Inserter
 
Posts: 249
Joined: Fri Jun 10, 2016 11:21 pm

Re: Friday Facts #197 - Chugging along

Postby mOoEyThEcOw » Fri Jun 30, 2017 10:22 pm

DerivePi wrote:And I was just looking for a sample outline of class inheritance for a project (how the "is_a" rule is applied in a real production). Are different template implementations (ex. class dialog<>) considered inheritance though?


Generally no, if you look at the doxygen picture they posted the templates have a blue dotted line which means "variation_of" and the yellow line which means "is_a" points to the base class of the template (eg "Foo<T>"), and the specialized template (ed "Foo<Bar>"). Templates are tricky, due to the raw power of C++ templates (they are turing complete at compile time... sort of like very complex esoteric lisp macros basically (lisp macros are written in lisp, C++ templates are their own language)) a specialized template can't be considered "is_a" to any shared thing (even the base class technically) because the specialized template might be a wildly different class (including having different base classes). It's best to think of a specialized template as a completely separate class from any other specialized template of the same template.

Some people do do things like `template <typename T> class Foo<T> : Foo<void> {...};` and then specialize `Foo<void>` (or a similar variation) to get the "is_a" behavior from specialized templates. Though it's really better to just use a `FooBase` class rather than mucking around with a `Foo<void>` class which is just asking for trouble.
mOoEyThEcOw
Burner Inserter
Burner Inserter
 
Posts: 18
Joined: Fri Mar 17, 2017 11:27 pm

Re: Friday Facts #197 - Chugging along

Postby doc » Fri Jun 30, 2017 11:23 pm

Super chuffed to see the mod I started mentioned for the 2nd time in a community spotlight! Big props to justarandomgeek for keeping it going and DaveMcW for his ridiculous creation!

And great news that GUI will be getting some love soon, hopefully this will have a lot of benefits for modders too.
doc
Long Handed Inserter
Long Handed Inserter
 
Posts: 94
Joined: Mon Mar 28, 2016 3:52 pm

Re: Friday Facts #197 - Chugging along

Postby YokoZar » Sat Jul 01, 2017 12:08 am

I really appreciate the blog post, stabilizing releases is always some of the most exciting work for me in Software.

Hopefully this savegame-destroying UI issue hasn't slipped past all of your radars before someone on the dev side made an actual decision about it: viewtopic.php?f=6&t=47857 (a moderator kept it out of the bug forum)
YokoZar
Burner Inserter
Burner Inserter
 
Posts: 10
Joined: Sat May 06, 2017 3:29 am

Re: Friday Facts #197 - Chugging along

Postby Alice3173 » Sat Jul 01, 2017 3:53 am

there will be an additional 3-4 bodies (live) in the office

Thanks for specifying they're live. I was worried you guys were intending to convert to a mortuary.
User avatar
Alice3173
Long Handed Inserter
Long Handed Inserter
 
Posts: 57
Joined: Sun Apr 24, 2016 11:35 pm

Re: Friday Facts #197 - Chugging along

Postby webkilla » Sat Jul 01, 2017 1:52 pm

.15 stable release soon?


YES!
webkilla
Inserter
Inserter
 
Posts: 41
Joined: Sun May 11, 2014 4:17 pm

Re: Friday Facts #197 - Chugging along

Postby ibeatbabybiters » Sat Jul 01, 2017 7:43 pm

You say that GUI inheritance tree is complex? I think you have never seen enterprise "quality" code before :D
Usually I don't beat babies, but when I do I beat baby biters.
ibeatbabybiters
Inserter
Inserter
 
Posts: 30
Joined: Sun Apr 30, 2017 7:14 pm

Re: Friday Facts #197 - Chugging along

Postby Ranakastrasz » Sat Jul 01, 2017 8:49 pm

I looked at the diagram, from the top. Said, oh, around 30 classes. Glanced to the root, saw a line leading away.....

Scrolled down.

Started screaming....

Dear god, that's a lot of classes.


And I thought my amateur Unity project was complex. Heh.

I doubt there is less than 200 classes there. Geeze.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
 
Posts: 1510
Joined: Thu Jun 12, 2014 3:05 am


Return to News

Who is online

Users browsing this forum: Bing [Bot], pleegwat and 12 guests