about
Bits Hello
01/13/2022
Bits Repository

Bits_Hello

code, output, and build for C++, Rust, C#, Python, and JavaScript on Windows, macOS, and Linux

These pages support comparison of fragments of code in several different languages, much as you might compare a sentence of English with one in Spanish to help you learn Spanish. The examples below show the traditional first program: Hello World in each of five lanaguage. C++, Rust, and C# are statically typed languages. Python and JavaScript are dynamically typed. More on that in the next Bit.
 
Source Code Source Code

left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1 left1
right1 right1 right1 right1 right1 right1 right1 right1 right1 right1 right1 right1 right1 right1
Output Output
left2
right2
Build Build
left3
right3

Notes

  • Rust is built with the Cargo tool: package manager, builder, executer, and more. Cargo is part of the Rust ecosystem available when you install Rust.
  • C++ is built with the CMake tool: a third party make tool. Here is a Demo. You can download CMake free of charge.
  • C# code is built with the dotnet command line package manager, builder, and executer. For simple console applications dotnet builds a stripped down source that gets wrapped with needed boilerplate when built. I chose to provide the boiler plate. The dotnet CLI is part of the Visual Studio infrastructure you can download here.
  • Python is built and executed with the Python interpreter using "python filename.py" You can download Python here.
  • All you need for Javascript development is a text editor and browser. The major browsers, Firefox, Chrome, Edge, ... all have tools for inspecting and debugging JavaScript.
  • I use, and recommend, Visual Studio Code, a light weight code editor that accepts plugins for common languages. Plugins support intellisense and debugging. You can download VS Code here.
  Next Prev Pages Sections About Keys