Exercise 5
+54
tiffanycarabuena
ikoymaster
padibergonia
Chad Festejo
Jake Darren T. Colina
Dianne Jean Dumdum
Calvin John Dalino
Mark Bryan B. Gonzales
Sherwin_Elioreg
Michael Anthony Jandayan
rowellpines
Marlie E. Sisneros
Russel John L. Serrano
arnulfotaghoy
florenzie_palma
Julie Ann R. Monteroso
Godofredo C. Pisngot Jr.
vinceilagan
Xaviery Dwight Noval
Genne Fernandez
rancisolanobero
Nesscel Ann Marie Calara
irwin rod adesna
irelene cosicol
exzellrobelo
oberorancismichael
merafehangad
jezrelle larubes
cherilyn lagare
kevin.cris.ramos
willypedroso
Jovanne Nick L. Cacayan
jennifer conta
Marybert V. Lee
Jevelyn C. Labor
Mhel Sheryll Jala
KatrinaAnirtak
April Kaye Bestre Bigonte
Phoebe Angelie Gallardo
Cariza Joy Ensoy
Allan Gregor Gepulla
Mary Claire P. Avila
dudzcomz
Alaina Simbal
Ma. Monique Asuque
Ruchan Alangilan
juvilyn consejo
jonalyn sanchez
ericpapasit
Gwapong_Tao_Edward_Baylon
Frenzess-Joy H. Elman
abigail_duhaylungsod
george101_2007
Admin
58 posters
Page 1 of 3
Page 1 of 3 • 1, 2, 3
Exercise 5
A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
Exercise 5
George Norman Patayon
(a) Sketch out the general structure of each program.
For programmer A:
For programmer B:
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
- The only problem that I see is only for programmer B where it is only notifications; there would be a tendency where there would be an exception event during the notification. But this can be handled using exception handlers.
(a) Sketch out the general structure of each program.
For programmer A:
For programmer B:
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
- The only problem that I see is only for programmer B where it is only notifications; there would be a tendency where there would be an exception event during the notification. But this can be handled using exception handlers.
george101_2007- Posts : 5
Join date : 2011-03-11
Re: Exercise 5
a)
b)Programmer B: reduces his codes by using event-loop style it is more readable, easier to maintain and has clear and concise coding.
Programmer A: provides fine granularity in managing events but it requires more code and it can be difficult to maintain.
b)Programmer B: reduces his codes by using event-loop style it is more readable, easier to maintain and has clear and concise coding.
Programmer A: provides fine granularity in managing events but it requires more code and it can be difficult to maintain.
abigail_duhaylungsod- Posts : 5
Join date : 2011-03-10
Exercise 5 - F. J. Elman
Exercise 5:
A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
Answer:
(a) 1.) Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
2.) Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
(b) I think Programmer A used the practical coding by using the event-loop style of program, since this style has short-length of codes and can be easily managed, whereas the Programmer B used the lengthy-style of coding and is very difficult to manage and trace. There could also be problems when it comes to callback functions.
A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
Answer:
(a) 1.) Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
2.) Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
(b) I think Programmer A used the practical coding by using the event-loop style of program, since this style has short-length of codes and can be easily managed, whereas the Programmer B used the lengthy-style of coding and is very difficult to manage and trace. There could also be problems when it comes to callback functions.
Last edited by Frenzess-Joy H. Elman on Fri Mar 11, 2011 9:03 pm; edited 1 time in total
Frenzess-Joy H. Elman- Posts : 5
Join date : 2011-03-10
Age : 32
Location : Bajada, Davao City
Eric N. Papas
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
If the programmers will not have error handler the program may be crushed because the user can enter invalid input.
If the programmers will not use database technology, the entered filenames will be gone.
ericpapasit- Posts : 5
Join date : 2011-01-11
Re: Exercise 5
a.) (1) get an event-> handle event (list) or handle event (save) -> (if yes) open list or save
(2) get an event-> passed to callback function ->(if yes) open list or save
b.) For me it is wiser for the Programmer A to use event-loop style of program because it will automatically respond to users input and actions rather than Programmer B who uses callback style which makes the program lengthy as to calling a callback function pass indirectly from a managed application, through a DLL function, and back to the managed implementation.
(2) get an event-> passed to callback function ->(if yes) open list or save
b.) For me it is wiser for the Programmer A to use event-loop style of program because it will automatically respond to users input and actions rather than Programmer B who uses callback style which makes the program lengthy as to calling a callback function pass indirectly from a managed application, through a DLL function, and back to the managed implementation.
Last edited by jonalyn sanchez on Fri Mar 11, 2011 10:22 pm; edited 1 time in total
jonalyn sanchez- Posts : 5
Join date : 2011-03-10
exercise 5
a.)
b.) The possible problem would be Programmer A needs more programs or codes in order to satisfies the required process so in this sense, thus, the event-loop is at the highest level of control within the program while Programmer B is just easy to load and to use.
b.) The possible problem would be Programmer A needs more programs or codes in order to satisfies the required process so in this sense, thus, the event-loop is at the highest level of control within the program while Programmer B is just easy to load and to use.
Last edited by juvilyn consejo on Fri Mar 11, 2011 10:32 pm; edited 2 times in total (Reason for editing : the picture is not displayed.)
juvilyn consejo- Posts : 5
Join date : 2011-01-11
Age : 33
Location : tagum city
Re: Exercise 5
A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
i'll try to find out sir.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
i'll try to find out sir.
Ruchan Alangilan- Posts : 5
Join date : 2011-03-11
Re: Exercise 5
A. PROGRAMMER A
PROGRAMMER B
B. PROGRAMMER A – Since it uses looping it would shorten the length of the code which would be simpler and very easy to maintain, while PROGRAMMER B - used a long-length coding technique that could be hard to trace and debug when problems arise.
PROGRAMMER B
B. PROGRAMMER A – Since it uses looping it would shorten the length of the code which would be simpler and very easy to maintain, while PROGRAMMER B - used a long-length coding technique that could be hard to trace and debug when problems arise.
Ma. Monique Asuque- Posts : 5
Join date : 2011-03-09
Re: Exercise 5
a.)
Programmer A:
get an event-> Handle event for list or handle event for save -> if yes (for the event list) open list or save (for the event save).
Programmer B:
get an event-> Process events to identify proper event handler -> Save (Confirmation) or Open List.
b.)
Programmer B used a complex style of coding that makes it more difficult to trace for errors.
Programmer A:
get an event-> Handle event for list or handle event for save -> if yes (for the event list) open list or save (for the event save).
Programmer B:
get an event-> Process events to identify proper event handler -> Save (Confirmation) or Open List.
b.)
Programmer B used a complex style of coding that makes it more difficult to trace for errors.
Last edited by Alaina Simbal on Thu Apr 07, 2011 12:59 pm; edited 3 times in total
Alaina Simbal- Posts : 5
Join date : 2011-03-11
Exercise 5
a. GetFilenameEvent------>notify----> confirm email
b. GetFilenameEvent------>notify----> confirm email
b. GetFilenameEvent------>notify----> confirm email
dudzcomz- Posts : 5
Join date : 2011-03-11
Exercise 5
With the help of my friends and by understanding i can arrive to these answers..
A)
B)
Programmer A used an event-loop style of coding which is easier to understand and is more brief and concise. On the other hand Programmer B used a more complex style of coding which happens to be more complicated to trace and manage.
A)
B)
Programmer A used an event-loop style of coding which is easier to understand and is more brief and concise. On the other hand Programmer B used a more complex style of coding which happens to be more complicated to trace and manage.
Mary Claire P. Avila- Posts : 5
Join date : 2011-03-11
Age : 32
Re: Exercise 5
Programmer A: always loop until it found something like an event. It causes more runtime resources
https://docs.google.com/leaf?id=0B6U1UbM5LRx_ZDY2M2UxNTYtYjIxNy00MjMyLTlhN2ItZThmMzM2OGM0MGVm&hl=en&authkey=COOQ93A
Programmer B: it waits for something to happen. Two synchronous event might happen and might cause runtime problems
https://docs.google.com/leaf?id=0B6U1UbM5LRx_ZTg2MTliNTItMDhlMi00MmYwLThkNTAtNjVlNTg5ZDBiZmM4&hl=en&authkey=CMiAgKEP
https://docs.google.com/leaf?id=0B6U1UbM5LRx_ZDY2M2UxNTYtYjIxNy00MjMyLTlhN2ItZThmMzM2OGM0MGVm&hl=en&authkey=COOQ93A
Programmer B: it waits for something to happen. Two synchronous event might happen and might cause runtime problems
https://docs.google.com/leaf?id=0B6U1UbM5LRx_ZTg2MTliNTItMDhlMi00MmYwLThkNTAtNjVlNTg5ZDBiZmM4&hl=en&authkey=CMiAgKEP
Last edited by Allan Gregor Gepulla on Sat Mar 12, 2011 9:50 am; edited 1 time in total (Reason for editing : added links for picture)
Allan Gregor Gepulla- Posts : 5
Join date : 2011-03-11
Re: Exercise 5
a.
Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
b.
Programmer A used simplified coding by using the event-loop style of program where this style is coded shorter and easy to manage while Programmer B used a style that is longer to code and harder to read but has the ability to manage events better.
Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
b.
Programmer A used simplified coding by using the event-loop style of program where this style is coded shorter and easy to manage while Programmer B used a style that is longer to code and harder to read but has the ability to manage events better.
Cariza Joy Ensoy- Posts : 5
Join date : 2011-03-11
Re: Exercise 5
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
Programmer A has a high level codes used but it prone to many bugs which would come up to inconsistency where programmer B has used callback but has codes to be executed better.
Phoebe Angelie Gallardo- Posts : 5
Join date : 2011-03-08
Exercise5
Charmagne Christal Billuga
https://2img.net/r/ihimizer/i/22505891.png/
A. it's readable and concise
B. i think their might be a big problem here and it will be when the costumers may enter a wrong data then the program may be having an error
https://2img.net/r/ihimizer/i/22505891.png/
A. it's readable and concise
B. i think their might be a big problem here and it will be when the costumers may enter a wrong data then the program may be having an error
April Kaye Bestre Bigonte- Posts : 8
Join date : 2010-12-01
Age : 33
Location : Obrero, Davao City
Exercise 5
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
KatrinaAnirtak- Posts : 5
Join date : 2011-03-11
Re: Exercise 5
a.)
Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
b.)
Programmer A: uses the event-loop style which is very easy to manage and understand and this styles has short-length of codes.
Programmer B:uses the long-length coding which is hard to trace and manage.
Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List
b.)
Programmer A: uses the event-loop style which is very easy to manage and understand and this styles has short-length of codes.
Programmer B:uses the long-length coding which is hard to trace and manage.
Mhel Sheryll Jala- Posts : 5
Join date : 2011-03-08
Age : 31
Exercise 5
5. A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
a.) programmer A
https://2img.net/r/ihimizer/i/programmera.jpg/
When an event occurs, the event loop takes care of dispatching that event to the relevant code in order to handle the event. While there may be some layers of library / framework between your application code and the low-level event handler, ultimately it’ll usually be some part of your application code that gets invoked in response to the event.
Programmer B
https://2img.net/r/ihimizer/i/programmerb.jpg/
b. Programmer A uses a better kind of programming algorithm using event loops since it is easier to do and understand "for me". Event Loop provides more detailed, fine grained approach because it read events from an event queue, interpret an "event control string" to identify the event needed and it provides ability to run event handler. On the other hand, programmer B using a callback style uses the more composite one but Callbacks provide structured environment since it can build a table linking event with event handlers. Callbacks simplified the even processing.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
a.) programmer A
https://2img.net/r/ihimizer/i/programmera.jpg/
When an event occurs, the event loop takes care of dispatching that event to the relevant code in order to handle the event. While there may be some layers of library / framework between your application code and the low-level event handler, ultimately it’ll usually be some part of your application code that gets invoked in response to the event.
Programmer B
https://2img.net/r/ihimizer/i/programmerb.jpg/
b. Programmer A uses a better kind of programming algorithm using event loops since it is easier to do and understand "for me". Event Loop provides more detailed, fine grained approach because it read events from an event queue, interpret an "event control string" to identify the event needed and it provides ability to run event handler. On the other hand, programmer B using a callback style uses the more composite one but Callbacks provide structured environment since it can build a table linking event with event handlers. Callbacks simplified the even processing.
Last edited by Marybert V. Lee on Sat Mar 12, 2011 12:28 am; edited 2 times in total (Reason for editing : unable to see image)
Re: Exercise 5
A designer described the following interface for a save operation. The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
jennifer conta- Posts : 5
Join date : 2011-03-09
Age : 33
Location : Davao City
Re: Exercise 5
(a) Sketch out the general structure of each program.
PROGRAMMER A
PROGRAMMER B
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
ANSWER:
Both styles of the two programmers may encounter the delayed processing problem if there are other events in the queue before them.Either one could pull the event off the event queue and block the operation of the other.
PROGRAMMER A
PROGRAMMER B
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
ANSWER:
Both styles of the two programmers may encounter the delayed processing problem if there are other events in the queue before them.Either one could pull the event off the event queue and block the operation of the other.
Jovanne Nick L. Cacayan- Posts : 5
Join date : 2011-03-10
Re: Exercise 5
(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.
Last edited by willypedroso on Tue Mar 15, 2011 1:53 am; edited 1 time in total
willypedroso- Posts : 5
Join date : 2011-03-12
Age : 33
Page 1 of 3 • 1, 2, 3
Page 1 of 3
Permissions in this forum:
You cannot reply to topics in this forum
|
|