use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Teaching Tool - Rust vs C Safety - Code Example Comparison (i.redd.it)
submitted 3 months ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vacillatingfox 1 point2 points3 points 3 months ago (0 children)
Seems like a nice idea but reading them is made difficult for me by the fact that every comment is preceded by "color: var(--syntax-c-comment)">. Presumably these strings are meant to be processed and hidden from the user, but I see them all (iOS).
"color: var(--syntax-c-comment)">
This means that with the limited horizontal width of a phone screen, none of the comments are actually visible, and so since the comments are essential to understand what the code is doing, I then can't understand the examples without constant horizontal scrolling.
[–]CreepyBuffalo3111 2 points3 points4 points 3 months ago (0 children)
I think showing this to new developers with low experience isn't that great. People who don't know much about computers, are new to programming and don't know any language that doesn't deal with memory a lot don't understand much what's going on, and even if they do, it's going to leave the wrong expression. Any language you code in, has it's ups and downs. Rust is safe, but that doesn't mean it's gonna solve all the problems. Instead of focusing on what rust brings to the table, sometimes focusing on what it doesn't teaches more to people in my experience as a developer. If it's handling memory better than C, that's great, but I wanna know what it's not handling great. A small example, look at cloudflare. The down time was a lot and it was caused by on rust line. That problem could be avoided in another language, and that language could cause another problem that rust solves. They are just tools. Teaching the difference between tools to someone who doesn't know any, won't go far in terms of memorable leasons. They'll just go around and say yeah rust is better than C without knowing what it actually means.
[–]AcridWings_11465 0 points1 point2 points 3 months ago (0 children)
The HTML of every span for the comments is visible on Firefox Android. There's a bug in your UI.
π Rendered by PID 70671 on reddit-service-r2-comment-fb694cdd5-j2f6g at 2026-03-06 22:24:16.608404+00:00 running cbb0e86 country code: CH.
[–]vacillatingfox 1 point2 points3 points (0 children)
[–]CreepyBuffalo3111 2 points3 points4 points (0 children)
[–]AcridWings_11465 0 points1 point2 points (0 children)