6,566
edits
(Switch from {{git link}} to {{fgaddon source}} to provide a functional link to the correct infrastructure.) |
|||
(One intermediate revision by one other user not shown) | |||
Line 46: | Line 46: | ||
}} | }} | ||
}} | }} | ||
What would make sense is to assist the people who come second or third and want to re-use an existing framework where possible in implementing and re-factoring. Or people who just want to work on the framework and don't have a particular use case in mind. Because then you can make it work with a well-defined set of requirements in mind, rather than trying to guess what the requirements are ahead of time.<ref>{{cite web | |||
| url = http://forum.flightgear.org/viewtopic.php?p=277685#p277685 | |||
| title = <nowiki>Re: FMC</nowiki> | |||
| author = <nowiki>Thorsten</nowiki> | |||
| date = Feb 26th, 2016 | |||
| added = Feb 26th, 2016 | |||
| script_version = 0.25 | |||
}} | |||
</ref> | |||
{{FGCquote | {{FGCquote | ||
Line 257: | Line 266: | ||
== Moving huge conditionals into hash functions == | == Moving huge conditionals into hash functions == | ||
The next problem we want to tackle is getting rid of huge conditional blocks inside the '''update()''' method: {{ | The next problem we want to tackle is getting rid of huge conditional blocks inside the '''update()''' method: {{fgaddon source|path=Aircraft/747-400/Models/Cockpit/Instruments/PFD/PFD.nas}} | ||
<syntaxhighlight lang="nasal" line="GESHI_FANCY_LINE_NUMBERS" start="258"> | <syntaxhighlight lang="nasal" line="GESHI_FANCY_LINE_NUMBERS" start="258"> |