Rust is kind to its coders, C++ makes you feel terrible
Since it burst onto the scene in the mid-2010s, many have been touting rust as the 'C++ killer.' Though C++ still tends to come out on top in terms of low latency code, rust is taking an alternate approach, killing it with kindness.
Rust's likeability is nothing new; the language has stood undisputed as the most loved language in the Stack Overflow survey for several years. However, a new piece in the MIT Technology Review piece examines what really makes Rust so enjoyable to code with.
One of Rust's most endearing features is its error messaging system. Nell Shamrell-Harrington, a principal engineer at Microsoft, said that C++ error messaging "make[s] me feel like a terrible person," when compared to Rust's unusually polite responses to mistakes.
Some of those friendly responses are shown in the screenshot below, taken from this Reddit thread.
C++ meanwhile operates with the cruel ambiguity of Terrence Fletcher in Whiplash: you don't know how to get it right until its right, and if you can't get it right... tough.
One programmer tells us that "while it is possible for C++ compiler developers to make the error messages more user-friendly, the complexity of template programming makes this challenging."
While it could be assumed that the trade-off for a more friendly and enjoyable language is lower pay, that's not necessarily the case. Rust lands in the top 10 highest paying languages on the 2022 Stack Overflow developer survey, 21 places above C++ (admittedly with less than half the respondents)
Within the finance industry specifically, however, C++ commands some of the highest pay available by virtue of its low latency and large code base. Programmers in the industry may need to stick with unfriendly error messages for a while yet.
Click here to create a profile on eFinancialCareers. Comment ANONYMOUSLY on articles and make yourself visible to recruiters hiring for top jobs in technology and finance.
Have a confidential story, tip, or comment you’d like to share? Contact: email@example.com in the first instance.
Bear with us if you leave a comment at the bottom of this article: all our comments are moderated by human beings. Sometimes these humans might be asleep, or away from their desks, so it may take a while for your comment to appear. Eventually it will – unless it’s offensive or libelous (in which case it won’t.)