Comments (3)
Running two servers in parallel makes sense. Preferable when there are two server implementations. For the socket exercise, the second server could be in a different programming language. Or one with blocking IO and the other with asynchronous NIO and connection keep-alive.
Some ideas on how to integrate this into the classroom exercises:
- Run two servers on different ports of the instructor's machine, or have two instructor machines in the network. Let students test every step against both servers.
- Run a second server in the public internet, for example hosted in a cloud service. After students have fixed the client, it should run without recompilation against the second server, too. For me, this would link the exercise to another topic I'm covering in my lectures.
- Provide a server implementation that students can run on their workstation. Let students test every step against the local server as well as against the server on the instructor's machine. This will tempt students to look at the local server implementation and/or to import that into their IDE, see issue #25. An advantage is that students would have access to the log file of their local server, and that they can select a different log level there.
from pityoulish.
As a stop-gap measure, I'm improving the inline comments to explicitly mention that host and port should be taken from the command line. I wonder how many are going to ignore that comment anyway ;-)
from pityoulish.
There's no point in pursuing this further. If students choose to ignore instructions, I can't help it.
from pityoulish.
Related Issues (20)
- Thread safety for MessageBoard implementations HOT 1
- Run server in IBM Cloud HOT 8
- Push image to public GitHub Container Registry HOT 2
- About deleting container images... HOT 2
- Feedback: Tutorial 2020
- Feedback: Sockets 2020
- Disable Client IP check when running in the Cloud HOT 2
- Upgrade Actions to use environment files HOT 1
- Feedback: Java RMI 2020
- Migrate Travis CI HOT 2
- Transfer repository to the "pityoulish" organization HOT 2
- Feedback: Sockets 2019
- Less logging output for Follow-the-Board connections HOT 4
- Sockets: detect response from HTTP server
- Feedback: Java RMI 2019
- Java RMI: prevent multiple tickets for same client HOT 2
- Fix JavaDoc warnings HOT 2
- Java RMI: split off the Direct Messages part
- Build: Travis integration is broken HOT 4
- Take the exercises online HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pityoulish.