about
03/02/2024
Bits Repository
Bits Code Repository
organized bits of syntax, idoms, and patterns
Bits Index
1.0 Contents
Bits_HelloCpp, Bits_HelloRust, Bits_HelloCSharp, Bits_HelloPython, Bits_HelloJs
There are a couple of necessary inconsistencies that this will help you sort out.
You will probably want to view "picture-in-picture" or "full-screen"
so details are large enough to be seen easily.
2.0 Bits - Background & Code Snippets
-
Introduction Introduction to code in C#, C++, Rust, Python, and JavaScript on Windows, macOS, and Linux -
Tooling VS Code with tools to develop C#, C++, and Rust on Windows, Linux, and macOS -
References References for VS Code and languages -
Hello World Step-by-step instructions for setting up environment for editing and debugging code
C++ Hello World Use C++ with CMake
Rust Hello World Use Rust with cargo
C# Hello World Use C# with dotnet CLI
Python Hello World Use Python with interpreter
JavaScript Hello World Use with HTML page -
Data Explore types: copy, move, and reference. Consider bind, copy, assign, and move ops -
Objects Declare Classes/Structs and create instances. Focus on user-defined types. -
Generics Demonstrate implementation and execution of generic functions and classes -
Iteration Demonstrate iteration through strings, slices, and user-defined collection types -
useful libraries Explore useful libraries for application support
3.0 Language Categories
Categories | Comments | ||
---|---|---|---|
Types | Static Types C++, Rust, C# | Dynamic Types C#, Python, JavaScript | Static types => types of variables and expressions are fixed at compile-time Dynamic types => variables have the types of the data to which they bind, and can be rebound to data of a different type at run-time. |
Execution | Native Code C++, Rust | Managed Code C#, Python, JavaScript | Native code runs in a process created for its execution. Managed code runs in a virtual machine hosted by the process created for its execution. |
Similarity | This page orders the languages by similarity, e.g., C++, Rust, C#, Python, and JavaScript. Each of the languages is most similar to its adjacent siblings. |
4.0 References
Reference | Comments |
---|---|
C++ Summary - Wikipedia | Summary of the language, its versions, types, execution, and syntax. |
C++ Reference | Excellent thorough reference to the latest version of C++. |
Rust Summary - Wikipedia | Summary of the language, its types, execution, and syntax. |
Rust Reference | Rust types, syntax, and structure. |
C# Summary - Wikipedia | Summary of the language, its types, execution, and syntax. |
C# Reference | C# types, syntax, and structure. |
Python Summary - Wikipedia | Summary of the language, its types, execution, and syntax. |
Python Reference | Lexical analysis, data, execution, imports, expressions, top-level components. |
JavaScript Summary - Wikipedia | Excellent summary of the language, its types, execution, and syntax. |
JavaScript Reference | Reference organized for beginners, intermediate, and advanced. |
4.0 Build
- C++ code was built from the command line using CMake.
- Rust code was built from the command line using the rust cargo tool.
- C# code was built from the command line with dotnet CLI.
- Python code was executed from the command line with python interpreter.
- JavaScript code was translated and executed by loading its demo page in a modern brower (firefox).