5 ms·
So... essentially "I know and like C". Which is great! But as you say, that's not particularly useful for anybody else.
by ChrisSD 7y ago
So... essentially "I know and like C". Which is great! But as you say, that's not particularly useful for anybody else.
- the_gipsy 7y agoThe guy should try Rust and then explain why he prefers either, that would be interesting.
- et2o 7y agoInteresting. I want to like rust but everytime I dive in it is getting more and more complicated and verbose.
- sha666sum 7y agoMy experience with Rust is that I have to fight the compiler a lot, but when the program compiles, it works. If it doesn't work, it means there's an error with my file/network paths or I did something in the wrong order, errors which no language can save me from. Rust also becomes a lot less verbose when you get better at it. The ? operator is especially useful.
- TurboHaskal 7y ago> but when the program compiles, it works That's not even true for languages with dependent types, which Rust lacks.
- oconnor663 7y agoAnd at the same time, I've heard people say "when it compiles, it works" about much weaker type systems, like Go's. It just seems to mean "this language catches more errors at compile time than the previous language I used."
- sha666sum 7y ago> It just seems to mean "this language catches more errors at compile time than the previous language I used." That is a fair interpretation. I've programmed mostly in C# and Java because that's what was required at the time. I also know enough C and C++ to aim at my toes instead of the entire foot. So the comparison is between strongly typed imperative programming languages which are syntactically close to Rust. Also, I like that Rust isn't OoP, but try to not get baited into that discussion.
- ncmncm 7y ago"Out of pocket"?
- oconnor663 7y agoobject oriented programming
- ncmncm 7y agoNormally only prepositions and articles are left in lower case, e.g. SaaS.
- sha666sum 7y agoIt is (or should be) read as slightly hyperbolic, as there isn't to my knowledge a language that actually works that well. I could water down my message by saying "it mostly works", but then I fail to convey the main reason why I posted in the first place. I could also instead spend a lot of time and words to explain things about Rust's design that I presume anyone who is slightly interested in the language would already know (specifically: lack of null, strict ownership checking, having to explicitly deal with errors), in order to explain that the language succeeds at solving some of the problems it was specifically designed to solve. But then I would just be repeating things that HN readers presumably already know. Instead I can use a shortcut in my communication which is perfectly understandable if you assume minimal intelligence, and take the other person's comment in good faith. See, by the time we've reached the bottom of this wall of text, anyone who read this far through my intentional rambling has presumably forgotten my initial point: I had a positive experience with the language.
- mlindner 7y agoFrom what I've seen if you fight the compiler a lot it means you're trying to write something that very non-trivial memory ownership. Just as RAII is a learned concept, so is understanding memory ownership. Hopefully it will be taught more in school along the lines of RAII and similar concepts.
- Aeolun 7y agoLess verbose, more complicated in my opinion.
- ragnaroekX 7y agoI had the same thought. I never used C in a real project, but use Rust a lot. I looks like a real replacement for C.
- kristoff_it 7y agoHe clarified in the post that he doesn't like the complexity that C++ brings, he probably won't appreciate Rust's either.
- mrec 7y agoHe very definitely won't like Rust's compile/link times.
- z3phyr 7y agoI like rust, but for me, it is significantly more difficult to read and write. Same can be said about C++ with extreme STL code.. I prefer to read and write simple C like syntax. I would love it if I can get Rust concept of borrowing in C, or even simple operator overloading..
- wwright 7y agoYou’re free to use Rust that way if you prefer.
- Avamander 7y agoSame, I heavily prefer less symbols in my code. I think it might also relate to how I find it much harder to remember long formulas but than remembering the sentence describing the formula. If I could type for example `brw x` instead of `&x` I think I'd like it more - I guess I like it more Python-y?
- cdirkx 7y agoYou could use a macro :) macro brw($expr:expr) { &$expr } And use it like 'brw!(x)' instead of '&x'.
- Johan-bjareholt 7y agoIronic, the most complicated thing for me to understand when I started writing rust was borrowing and lifetimes. The rest of the common features of Rust isn't too complicated to understand.
- z3phyr 7y agoUnderstanding the concepts is not the issue with me (as of now). It is the hard to read syntax (my personal opinion!). It puts a lot strain on my mind. Same is the case with C++ with extreme use of STL. I have difficulty in reading that, although with clear mind, I will eventually get the code, it is not fun.
- ChrisSD 7y agoI'm not sure that rehashing Rust vs. C is particularly interesting at this point. At least not for those who regularly read HN. Maybe in another few years...
- eigenloss 7y agoSounds like Rust has come pretty far.
- arendtio 7y agoWell, he does say why he likes C better, so it is useful for others. The problem is that learning how to use C effectively is a lot harder than learning other/modern languages. Therefore, anybody who doesn't know how to use C is probably better of learning one of those other languages. 15 years ago, I spend some time modding with the Quake 3 engine which is written in C too and while I wouldn't categorize myself as 'knowing how to use C effectively' I sympathize with the author's opinion. I totally agree with Go being a revisited C and that C can enable simplicity. The only part where my opinion is different is about Javascript. Yes, it is a dangerously fast-moving ecosystem, but I think it offers so much value in terms of cross-platform development that I think it is a mistake not to participate. After all, the browser APIs are quite stable and the biggest issue is the constantly changing trend about which libraries are going to be the next big thing.
- Koshkin 7y agoWell, it is useful to know and like C.
- mlindner 7y agoIt's useful to know C, you don't have to like C though (nor should you). At this point is a necessary evil.