structured programming
Wörterbuch
-
structured programming
Beispiele im Kontext
-
State machines are nasty at the best of times, so I've started to move to a different paradigm using coroutine-style functions, using a "yield" statement. Of course, C doesn't provide a "yield" statement, but I'm using protothreads to achieve this. Protothreads is great, and gives me exactly what I want to implement the above non-blocking state machine in a structured-programming style. The above function roughly translates to (pseudo-code):
Zustandsmaschinen sind die besten Zeiten böse, so habe ich angefangen zu einem anderen Paradigma mit coroutine-style-Funktionen bewegen, mit einer "Rendite"-Anweisung. Natürlich ist C nicht eine "Ausbeute" Aussage, aber ich bin mit protothreads um dies zu erreichen. Protothreads ist groß, und gibt mir genau, was ich zu den oben non-blocking Zustandsmaschine in einem strukturierten Programmierung Stil umsetzen wollen. Die obige Funktion übersetzt in etwa (Pseudo-Code):
-
State machines are nasty at the best of times, so I've started to move to a different paradigm using coroutine-style functions, using a "yield" statement. Of course, C doesn't provide a "yield" statement, but I'm using protothreads to achieve this. Protothreads is great, and gives me exactly what I want to implement the above non-blocking state machine in a structured-programming style. The above function roughly translates to (pseudo-code):
Statuscomputer sind in den besten Zeiten, böse, so dass ich angefangen habe, verschieben in ein anderes Paradigma mit Koroutine-Style-Funktionen, mit einer "Rendite"-Anweisung. Natürlich C nicht zur Verfügung, einer Anweisung "Yield", aber ich verwende Protothread, um dies zu erreichen. Protothread ist groß, und gibt mir genau das, was ich will, die oben nicht blockierende State Machine in eine strukturierte Programmierung-Stil zu implementieren. Die obige Funktion übersetzt etwa (Pseudocode):
-
Shell scripts are especially well suited for administrative system tasks and other routine repetitive tasks not requiring the bells and whistles of a full-blown tightly structured programming language.
Shell-Skripte sind besonders gut für administrative Aufgaben im System und andere Routine wiederholende Aufgaben, die nicht der Glocken und Pfeifen eines vollwertigen dicht strukturierten Programmiersprache geeignet.