Giter VIP home page Giter VIP logo

Comments (3)

rolandweber avatar rolandweber commented on August 18, 2024

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:

  1. 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.
  2. 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.
  3. 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.

rolandweber avatar rolandweber commented on August 18, 2024

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.

rolandweber avatar rolandweber commented on August 18, 2024

There's no point in pursuing this further. If students choose to ignore instructions, I can't help it.

from pityoulish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.