Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » what (programming) language should I learn
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
I’m not sure
I’m currently considering C++ or Rust
is there a big reason to choose one over the other?
I’m currently considering C++ or Rust
is there a big reason to choose one over the other?
- TurtleLegos
-
1000+ posts
what (programming) language should I learn
Rust due to more memory and safety
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
Rust due to more memory and safety
I don’t think you meant to write “and” there
- gdpr5b78aa4361827f5c2a08d700
-
1000+ posts
what (programming) language should I learn
from what i've seen, rust is more modern and has an official package manager, so i would go with it.
- TurtleLegos
-
1000+ posts
what (programming) language should I learn
ig, why?Rust due to more memory and safety
I don’t think you meant to write “and” there
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
ig, why?Rust due to more memory and safety
I don’t think you meant to write “and” there
it doesn’t have more memory, it has memory safety
from what i've seen, rust is more modern and has an official package manager, so i would go with it.
yeah
the main reason I’m not sure is the fact that c++ has a bigger community and thus more info on how to do stuff.
I guess I’ll try it.
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
wait, so do I just run
to install the installer?
kinda odd how it doesn't have an apt module
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
kinda odd how it doesn't have an apt module
Last edited by ScratchCatHELLO (Aug. 24, 2021 15:24:47)
- Greg8128
-
500+ posts
what (programming) language should I learn
Haskell. IMO it's easier to use than Rust and will teach you more about programming
Last edited by Greg8128 (Aug. 24, 2021 16:07:35)
- Sheep_maker
-
1000+ posts
what (programming) language should I learn
C++ is older and thus more influential; you probably should familiarize yourself with its quirks etc. so that you can better appreciate Rust's memory safety and other features. A lot of Rust's documentation seems to be written for programmers coming from C++ rather than new programmers. Also, Rust is so good of a language that learning C++ after Rust would feel like a downgrade
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
teach you more about programmingHaskell. IMO it's easier to use than Rust and will I kinda knew you would post this lol
I don’t know about that
I don’t think I’m ready to completely switch paradigms right now
also, very few people use Haskell even compared to Rust
I might learn Haskell in the future
Last edited by ScratchCatHELLO (Aug. 24, 2021 18:02:01)
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
C++ is older and thus more influential; you probably should familiarize yourself with its quirks etc. so that you can better appreciate Rust's memory safety and other features. A lot of Rust's documentation seems to be written for programmers coming from C++ rather than new programmers. Also, Rust is so good of a language that learning C++ after Rust would feel like a downgrade
so, should I try reading about the different features of C++ so that I can better understand Rust?
- ScratchCatHELLO
-
1000+ posts
what (programming) language should I learn
things I know about c++ (very oversimplified)
ints - whole numbers
unsigned ints - whole numbers, but only positive
short ints - whole numbers, but there’s less of them
long ints - whole numbers, but there’s more of them
long long ints - whole numbers, but there’s even more of them
chars - letters
char16_ts - letters, but there’s more of them
char32_ts - letters, but there’s even more of them
wchar_ts - letters, but there might be more of them
unsigned chars - no clue
floats - decimal numbers
doubles - decimal numbers, but there’s more of them they’re more precise
long doubles - decimal numbers, but there’s even more of them they’re even more precise
strings - text; has to be imported
bools - yes
void -
null pointers - error at line 42
for loops - also have the form (init variables; condition; operate on variables
functions - have a type and can be overloaded (perform different operations on different arguments)
classes - have public, private, and protected (editable by child classes?) attributes and methods; syntax for making an object is the same as for making a variable of a certain type:
structs - like classes, but only have public attributes. another way of creating a type.
unions - like structs, but all of the attributes take up the same space, and cannot be changed separately. no idea why you would want to do this, but you can. another way of creating a type
enums - yo dawg, I heard you liked types so I put some types in your types. another way of making types, but now there are set values that the type can take on
class/struct enums - like enums, but you can define the internal representation type of the options and the options are namespaced
typedef - you can create a type that’s just another type but with a different name. I don’t know why this exists, but it does
also there’s a friend keyword
ints - whole numbers
unsigned ints - whole numbers, but only positive
short ints - whole numbers, but there’s less of them
long ints - whole numbers, but there’s more of them
long long ints - whole numbers, but there’s even more of them
chars - letters
char16_ts - letters, but there’s more of them
char32_ts - letters, but there’s even more of them
wchar_ts - letters, but there might be more of them
unsigned chars - no clue
floats - decimal numbers
doubles - decimal numbers, but there’s more of them they’re more precise
long doubles - decimal numbers, but there’s even more of them they’re even more precise
strings - text; has to be imported
bools - yes
void -
null pointers - error at line 42
for loops - also have the form (init variables; condition; operate on variables

functions - have a type and can be overloaded (perform different operations on different arguments)
classes - have public, private, and protected (editable by child classes?) attributes and methods; syntax for making an object is the same as for making a variable of a certain type:
myClass myObject;
unions - like structs, but all of the attributes take up the same space, and cannot be changed separately. no idea why you would want to do this, but you can. another way of creating a type
enums - yo dawg, I heard you liked types so I put some types in your types. another way of making types, but now there are set values that the type can take on
class/struct enums - like enums, but you can define the internal representation type of the options and the options are namespaced
typedef - you can create a type that’s just another type but with a different name. I don’t know why this exists, but it does
also there’s a friend keyword
- Discussion Forums
- » Advanced Topics
-
» what (programming) language should I learn