Click here to Skip to main content
15,900,714 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: In this company, there are two kinds of developers Pin
Leng Vang11-Apr-18 6:17
Leng Vang11-Apr-18 6:17 
GeneralRe: In this company, there are two kinds of developers Pin
OriginalGriff11-Apr-18 6:32
mveOriginalGriff11-Apr-18 6:32 
GeneralRe: In this company, there are two kinds of developers Pin
Jon McKee10-Apr-18 9:06
professionalJon McKee10-Apr-18 9:06 
GeneralRe: In this company, there are two kinds of developers Pin
Eddy Vluggen10-Apr-18 10:25
professionalEddy Vluggen10-Apr-18 10:25 
GeneralRe: In this company, there are two kinds of developers Pin
Richard Andrew x6410-Apr-18 10:42
professionalRichard Andrew x6410-Apr-18 10:42 
GeneralRe: In this company, there are two kinds of developers Pin
kalberts11-Apr-18 1:34
kalberts11-Apr-18 1:34 
GeneralRe: In this company, there are two kinds of developers Pin
MSBassSinger11-Apr-18 4:01
professionalMSBassSinger11-Apr-18 4:01 
GeneralRe: In this company, there are two kinds of developers Pin
kalberts11-Apr-18 5:04
kalberts11-Apr-18 5:04 
You can't (in any reasonable way) make a GUI application without handlers for input events, like you can't make an OS without interrupt handlers for physical units.

But even if you register callbacks for user input events, that doesn't mean that your basic programming paradigm is event oriented coding, as in FSM: One event leads to one atomic transition.

Certainly, there may be software designers who base the entire code design on an FSM-like model, but those are few and far between today (with the exception of communication protocols).

I recall from the Win 3.x/9x days an article about how a compiler was rewritten to fit the event model: E.g. the scanner delivering a new token from the input stream was modeled as an event (read: Windows message). Adding a node to the DAG was an event, etc. In software built by such a model, the mainloop (a concept the modern programmer never sees) is essentially an array indexed by current state and event code, each table element indicating the next state and usually some atomic action. Lots of the program logic is reflected in this state table, not in a sequence of if-else or while-loop statements. The use of flow control statements are in the atomic state transition actions.

In those days, I made (for educational purposes only, to teach students event driven programming) an implementation of X.215, the OSI Session Layer protocol, which is "rather messy" if you have to code it in sequential code. Implemented as an FSM model, it is almost trivial. Of course: Creating that table is a huge task (but for X.215, ITU had done that task for us Smile | :) ).

Event-driven development focuses on the state table. Obviously, you can implement a state table solution in any language that can handle function pointers (aka. delegates, in C# lore). But you don't see it done that way very often.
GeneralRe: In this company, there are two kinds of developers Pin
Jon McKee10-Apr-18 15:35
professionalJon McKee10-Apr-18 15:35 
GeneralRe: In this company, there are two kinds of developers Pin
Eddy Vluggen11-Apr-18 0:21
professionalEddy Vluggen11-Apr-18 0:21 
GeneralRe: In this company, there are two kinds of developers Pin
Leng Vang11-Apr-18 6:24
Leng Vang11-Apr-18 6:24 
GeneralRe: In this company, there are two kinds of developers Pin
Nicholas Marty11-Apr-18 3:10
professionalNicholas Marty11-Apr-18 3:10 
GeneralRe: In this company, there are two kinds of developers Pin
Eddy Vluggen11-Apr-18 3:20
professionalEddy Vluggen11-Apr-18 3:20 
GeneralRe: In this company, there are two kinds of developers Pin
Sucramsy11-Apr-18 5:30
Sucramsy11-Apr-18 5:30 
GeneralRe: In this company, there are two kinds of developers Pin
MarkTJohnson10-Apr-18 6:56
professionalMarkTJohnson10-Apr-18 6:56 
GeneralRe: In this company, there are two kinds of developers Pin
Michael Breeden10-Apr-18 7:13
Michael Breeden10-Apr-18 7:13 
GeneralRe: In this company, there are two kinds of developers Pin
MarkTJohnson10-Apr-18 8:34
professionalMarkTJohnson10-Apr-18 8:34 
GeneralRe: In this company, there are two kinds of developers Pin
den2k8810-Apr-18 21:12
professionalden2k8810-Apr-18 21:12 
GeneralRe: In this company, there are two kinds of developers Pin
David Luca10-Apr-18 21:49
professionalDavid Luca10-Apr-18 21:49 
GeneralRe: In this company, there are two kinds of developers Pin
den2k8810-Apr-18 22:41
professionalden2k8810-Apr-18 22:41 
GeneralRe: In this company, there are two kinds of developers Pin
Dr.Walt Fair, PE10-Apr-18 12:18
professionalDr.Walt Fair, PE10-Apr-18 12:18 
GeneralRe: In this company, there are two kinds of developers Pin
Kirill Illenseer10-Apr-18 23:13
Kirill Illenseer10-Apr-18 23:13 
GeneralRe: In this company, there are two kinds of developers Pin
Leng Vang11-Apr-18 6:31
Leng Vang11-Apr-18 6:31 
GeneralRe: In this company, there are two kinds of developers Pin
Kirill Illenseer18-Jun-18 20:10
Kirill Illenseer18-Jun-18 20:10 
GeneralRe: In this company, there are two kinds of developers Pin
kalberts11-Apr-18 2:29
kalberts11-Apr-18 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes