r/web_programming • u/tipppph • Apr 21 '17
What language(s) should I use?
tldr; What language(s) would you use to create a website where a user would input information (using a drop-down menu) and receive a list of data based off the initial data input?
The closes thing I can think of that would make sense is the =SUMIF equation in Excel.
--
I have this idea for a website, but I'm not sure what programming language(s) would be the easiest to learn and use to make my idea come to life. I'd like to create a simple website where the person would input their date of birth and receive a list of events and specific data based on their birthday/age. I don't want to save any user data and and its super simple design-wise in my head.
My secondary questions are: How would I have to structure/organize the data so that it would generate in a list format. (example: 1. This 2. That 3. Them)
If I wanted specific data (based of the users birth date) to pop up in a sentence (example: By the time you were 21 years old, [Number] were here), how would I go about that?
Am I better off just saving myself the stress/anguish and just pay someone to code if for me?
3
u/maynard_james_quinoa Apr 22 '17
You could accomplish this quite easily with Javascript and a Json file.
3
u/[deleted] Apr 22 '17
You can create a simple website with HTML and JavaScript. HTML is for creating the general structure of the website (e.g. some descriptive text, dropdowns, "start" - button, etc).
JavaScript is for creating interactivity: Read out what date the user picked and create a simple request (ajax) which will ask a server for all events on this date. Then read the servers response and display it on the website.
You will also need to programm that server. You can use PHP or Python for this. The server is really simple because it only gets a date, search its database for all events with this date and returns them.
2. Use a database for storing the data (MySQL is easy to setup). The main advantage of a database is that you can search the data very fast and its easy to access. In the database you can create a simple table which has a date, text and description column or whatever you need. After the sever read the data from the database, it should put them in a json file because thats easy to read/parse with JavaScript.
For a newbie this might be overwhelming but I think the hardest part is to collect all the data for the database. You could pay someone for coding this for you, but this is a nice little project to learn some of the basics of web development. Just try it out!