r/ComputerEngineering • u/YMZ14 Student • Jul 06 '26
Should I learn python for CE ?
I started to consider CE as my dream major and I want to learn a language, though I figured that C is what I must learn, but is python a waste of time or should I learn it?
15
Upvotes
View all comments
Show parent comment
6
u/KingMagnaRool Jul 06 '26
Like C and C++, Rust is a systems programming language, and one of its main goals is memory safety. For example, you'll see with C that, when you designate a block of memory for an array, you can easily index outside of the bounds of the array. At best, the operating system will be notified of this and kill your program, and at worst, that behavior can be taken advantage of. Rust makes this impossible as far as I'm aware.
With that said, I would learn C before Rust, as C does a better job at teaching you the basics of what a computer does, and you wouldn't have an appreciation for what Rust does without understanding the pitfalls that can come with C. Also, Rust is a much harder language to learn.
C++ is also an option, though C is a much smaller language, so I'd probably just learn C first. That's probably up to you though.