1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

How hard would it be to code something like this?

Discussion in 'Programming' started by kevinthestan, Jul 25, 2019.

  1. kevinthestan

    kevinthestan Registered Member

    Joined:
    Nov 25, 2015
    Messages:
    94
    Likes Received:
    22
    Location:
    Canada
  2. PaintedBlack

    PaintedBlack Junior Member

    Joined:
    Dec 5, 2017
    Messages:
    192
    Likes Received:
    303
    Gender:
    Male
    Occupation:
    Digging myself out
    Location:
    Dumpster
    disclaimer: I've never coded anything more than the simplest calculators, but considering this can 'basically' be coded inside of excel, it should be fairly easy, even for a beginner, given he is intelligent.
    I think the visual side of things will be tougher to code.
     
  3. kevinthestan

    kevinthestan Registered Member

    Joined:
    Nov 25, 2015
    Messages:
    94
    Likes Received:
    22
    Location:
    Canada
    Interesting -- im sure the visual side would just be simple css but ive been trying my shot at the actual functionality and failing miserably :/
     
  4. PaintedBlack

    PaintedBlack Junior Member

    Joined:
    Dec 5, 2017
    Messages:
    192
    Likes Received:
    303
    Gender:
    Male
    Occupation:
    Digging myself out
    Location:
    Dumpster
    I honestly don't know much about the terminology in play here, but you could start off by searching online for 'coding pivot table'. What we have here with this trade site is basically a pivot table, you adjust a handful of values and the code cuts down the database to show results that match. There might be a better name for this type of thing, but back in high school IT class that's what we called them ^^
     
  5. cnick79

    cnick79 Senior Member

    Joined:
    Jun 10, 2010
    Messages:
    869
    Likes Received:
    467
    Location:
    Wandering
    Are you using client side filtering using JavaScript or make remote calls to filter on the backend? Either way it’s not difficult, more tedious depending on how many filters you have available.
     
    • Thanks Thanks x 2
  6. kevinthestan

    kevinthestan Registered Member

    Joined:
    Nov 25, 2015
    Messages:
    94
    Likes Received:
    22
    Location:
    Canada
    This is tuff
     
  7. PIEGE

    PIEGE Newbie

    Joined:
    Jul 4, 2019
    Messages:
    22
    Likes Received:
    4
    Gender:
    Male
    The concept is not difficult, this could be made as simple as exposing a database of information ( in this case diamonds ) using a framework for building REST API (look up crud). Actual implementation of front end and back end can be as big or small as your information needs.
     
  8. babypar

    babypar Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 19, 2007
    Messages:
    590
    Likes Received:
    126
    It’s not that different, what’s the source of your info, API or is it held in your own DB
     
  9. nullday000

    nullday000 Jr. VIP Jr. VIP

    Joined:
    Mar 12, 2017
    Messages:
    104
    Likes Received:
    31
    Are you asking from backend perspective or from frontend?
    Nothing special, just a typical datatables library, plus several inputs that emit events on change and the datatable catch those events and apply filters.