DEV Community

Discussion on: Go vs Rust for web dev

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

You must use those languages for creating back-end (APIs), not for "web development" as is. (To clarify on web we use databases, html, css, js and the interface structure could be written directly on the javascript, or on html and adding a "passive" script for fetching data or printing the html, css and js directly from the server side programming language).

Giving that, it will depend on the logic and needs of your software piece. For some reason it could be better to write some given API with C#, other with Java, other with PHP, other with Python, or Go, or Rust or C++ or..........

For example if you need high decimal precision to perform a task, you will choose Java or C# instead PHP.

Each language has its implicit implementations for datatypes and runs different tasks better than others (or scale better, or its faster to develop something with or...).

Simplified/ TL; DR: There's no perfect language for a given generic context. Instead you have the best language for a given task, that's one of the points on developing a microservice architecture instead a monolith, because you can develop each micro-service with a different language 😄

Collapse
 
glebirovich profile image
Gleb Irovich

Thanks an elaborate response!