Skip to content

Fix design patterns according to custom rules

This code change simplifies a network server project by removing an experimental comparison between two programming approaches. Originally, the project demonstrated both "good" structured programming and "bad" goto-based programming to show the difference in code quality. The changes remove the goto version entirely, keeping only the clean, well-structured implementation.

The main updates include:

  • Removing all goto-based code and references to it as a "research project"
  • Simplifying the project to focus solely on demonstrating good programming practices
  • Cleaning up comments and documentation to reflect the single implementation
  • Removing command-line options that let users choose between the two approaches
  • Streamlining the client code by replacing a goto statement with proper structured control flow

The end result is a cleaner, more focused codebase that serves as a good example of how to write a network server using proper programming techniques, without the distraction of showing bad practices alongside the good ones.

See #1

Merge request reports

Loading