Code Monkey home page Code Monkey logo

askfm's Introduction

AskFM

This project is adapting my previous AskFM project (learned from when I didn't use pointers, OOP, or even error handling, and aims to improve it! The code is adapted from Mostafa Saad Ibrahim's code. However, this attempts to make SIGNIFICANT improvements to certain aspects, such as the ability to handle errors, user-friendliness, and conformity with OOP principles

See the original here: https://docs.google.com/presentation/d/1Ap3777-JwOExXrHGjKdxCDg9rQFjMKV9/edit#slide=id.p1

December 6th UPDATE:

  1. Some variable names were improved
  2. The optionsMenu (previously called ShowReadMenu) utility function has an improved signature, a va_list object to hold menu options, and much better error handling - as well as validation of user input. The new optionsMenu is GUARANTEED to return a valid input value
  3. The readInteger utility function (aka readInt) also has significant improvements, not limited to the declaration/definition separation. It is now capable of handling invalid input, it is MUCH more user-friendly: it has CLEAR error messages, and allows a maximum number of attempts at input from the user before stopping (rather than repeating the same thing over and over)
  4. The AskMeSystem struct has been adapted into a CLASS in order to obey OOP principles, such as encapsulation and abstraction. At the time of writing, the struct has been converted, and tentative .h and .cpp files have been written. I want to change a few other things before making separate files for these things

IMMEDIATE FUTURE PLANS:

  1. Change the run() function within AskFM (specific)
  2. Eliminate the using namespace std; (specific)
  3. Change the STRUCTS into CLASSES, so that the code follows basic OOP principles
  4. Improve error handling in all aspects of the code

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.