Difficulty when combining web languages

Asked

Viewed 124 times

-8

I’m a beginner in web programming and I’m making a mess when it comes to mixing the codes, I have studied a lot but I still have a lot of doubt at the moment to combine all the codes, for now I use HTML, PHP, CSS, Javascript, Jquery, Bootstrap and Ajax, come on:

1- When I will do a project how I can know what language(s) to use?

What one language does that another does?

3- Which language is best for each situation?

4- What is the order in which I must declare them?

5- What triggers each of them? What does it take for each of them to start? Do they all start together? Do they start separately? Which one starts first? What is the best order to place them? Or it depends on how you program?

6- How to know when to use each one? (Can you give examples? This is very important to me).

The more examples they give, the better it will be and I’m sure this is the doubt of many people.

Thank you very much friends!

  • 2

    The question is broad and asks for opinions. It does not ask a lot of things together. Read [tour] and [help] to better understand what types of questions are acceptable.

  • Your questions are very reasonable, but if you put them all together in one question, it’s just hard to answer. Take a look here: http://answall.com/a/25215/129 and here: http://answall.com/q/35547/129

1 answer

5

  1. When I’m going to do a project how I can know what language(s) to use?

Your browser only understands HMTL, CSS and Javascript, languages like Ruby, PHP, Python, etc., will generate code that browsers understand.

  1. What one language does that another does?

Hard to compare backend languages, practically today, all backend languages can do the same thing, the difference is that in some a task can be easier and in others more difficult.

  1. Which language is best for each situation?

If you work with high performance in the backend look for languages like Scala, Java, Erlang. If you’re developing projects you need to develop quickly use PHP, Ruby.

  1. What is the order in which I must declare them?

Start with HTML, it will be the structure of your project (imagine a building, first build the structure. Then style your HTML with CSS (finish). Add Javascript behavior, effects, transitions, callbacks, etc... Finally create communication with the database through languages such as PHP, Ruby, Python, etc...

  1. What triggers each of them? What does it take for each of them to start? Do they all start together? Do they start separately? Which one starts first? What is the best order to place them? Or it depends on how you program?

When a user opens a browser and enters a URL, the server receives this information (probably on port 80, http) and initializes the HTTP server (apache, Nginx, etc.), this server communicates with the application and tries to resolve it by returning a response. There is a life cycle for each request, can be complex or not.

  1. How do I know when to use each one? (Can you give examples? This is very important to me).

This is perhaps the most difficult question, it depends very much on the purpose of your project. Start at the basics, and evolve your project according to need.

I hope I helped, the questions are very generic and difficult to answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.