You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for make test2 (namely FileLoad.hs, FileIO.hs) prevents code re-use and evolve because it awkwardly entangles two aspects:
the part responsible for communicating with FileServer.java (the "service"), and
the part that does the actual testing, e.g., compare actual outputs against the expected ones
Migrating to the Tasty framework (Issue #32) requires extracting the first part out as a "service adapter" (will call it JavaCompileServerAdapter). The service adapter is a Haskell client of the actual service written in Java and it provides service to other Haskell code.
Requirements:
The service adapter should just do one thing: compile a given Java source and returns the output; it shouldn't be aware of the other part of the code base, so that reuse is possible.
All communication with the Java compilation service should be made through this service adapter, and the communication protocol should be available only to the two parties: service adapter and service.
The text was updated successfully, but these errors were encountered:
The code for
make test2
(namelyFileLoad.hs
,FileIO.hs
) prevents code re-use and evolve because it awkwardly entangles two aspects:FileServer.java
(the "service"), andMigrating to the Tasty framework (Issue #32) requires extracting the first part out as a "service adapter" (will call it
JavaCompileServerAdapter
). The service adapter is a Haskell client of the actual service written in Java and it provides service to other Haskell code.Requirements:
The text was updated successfully, but these errors were encountered: