6

It's not my intention to start a web technology war so be nice do not do that 😁

Short Info: I'm "desktop programmer" (if that word exists) in either C # or Java 😎

question: I would like to create my own website, just simple to start with and maybe expand it later with eg. Arduino temperature meter
I have a look at 2 programming languages ​​that I can build it in, Js or PHP. I just do not know which one to choose, I'm probably the most to Js, but what are the pros and cons of these 2 and / or is there a completely different programming language I have to take a look at?

Comments
  • 5
    just use asp.net with razor pages
  • 1
    @bigworld12 That's also an option. had completely forgotten asp.net. I did not mention from the start that it is also because I would like to learn a new language πŸ€“
  • 2
    @JKielsgaard I've created some websites with "SparkJava" (sparkjava.com, has nothing to do with Apache Spark), you can write the Backend in Java/any JVM language (I'd recommend Kotlin too). As you're already familiar with Java, I guess that could be a good idea.
  • 3
    if it's just a website with static data, use html/css/js,for dynamic data include php
  • 0
    @systemctl cool, I will take a look at that πŸ€“
  • 0
    @bigworld12 when you write "include php" do you mean as in use HTML,CSS,js and php together?
  • 2
    What kind of website are we talking?

    Just a static site/ template collecting data from an arduino or will that data be stored somewhere else first?
  • 1
    @C0D4 The arduino part is an additional project, but had in mind that there should be some form of API the arduino can call and change data.
  • 2
    This is the right question. First you have to know what you woud build and then you have to choose the tools.
  • 0
    @JackToolsNet I know what I want to do, I probably have not been clear about it πŸ€“.

    I want a kind of profile / cv website and then I would like to add small widgets like arduino temperature later
  • 1
    @JKielsgaard
    If you don’t want to use C# / Java, you could use PHP or nodeJS for the api / rest calls to the arduino and then JS for the passing of data and displaying it to the front end in what I assume is a temperature gauge or charts of some kind.

    I would look at what data you want to collect, and then what data you need so you can display it in the form you want. Find a way to bridge those together, almost any web language will get this task done though for the api calls anyway.
  • 2
    @JKielsgaard then I choose nodejs for Front and Backend
  • 1
    Html, css, and js is for front-end, you can use any for the back-end, php (since you mentioned it), c#, java
  • 1
    have you heard of backend-as-a-service. search it πŸ˜„
  • 1
    I’d probably go the ASP route too, C# and .NET is my primary ecosystem, so it’d make total sense, especially with something like .net core etc.
  • 0
    @Bitwise thanks I think that was the information that I needed, I have never work with web development and want to try to learn the basics and now I have info i research more on.
Add Comment