2 ms·
Programming paradigms are all very much different sides of the same n-sided coin. One thing that's quite interesting to me about Factorio is how intelligent co
by munk-a 6y ago
Programming paradigms are all very much different sides of the same n-sided coin. One thing that's quite interesting to me about Factorio is how intelligent components like inserters are - they refuse to accept materials that their destination won't accept so one parallel in Factorio that isn't going to be matched by most views of functional programming is that you have an input of {{Gear, Gear, Iron Plate, Wire, Wire, Turret, Assembler, CPU}, {Coal, Coal, Coal, Wooden Chest, Ammo, Wire}} and an Assembler with Inserter setup to build Inserters - given that belt state prior to execution then you will apply that function and end up with a belt state like: {{Gear, Wire, Wire, Turret, Assembler}, {Coal, Coal, Coal, Wooden Chest, Ammo, Wire}} and a produced Inserter.
Factorio is incredibly resilient to mistakes which is a bit odd in that style of game - normally bad input in an assembly line game like that will result in a system freeze but Factorio just shrugs and keeps on keeping on.