6 ms·
That is a fascinating take and approach to contemplating a language. Can you think of any other languages that share a duality like Swift? I mainly play in the
by monkmartinez 2y ago
That is a fascinating take and approach to contemplating a language.
Can you think of any other languages that share a duality like Swift? I mainly play in the python ecosystem, but I am looking to branch out and really learn a compiled language. What you wrote about Swift makes sense and would be concerning if I had recently picked it up.
"Yadda, yadda..." regarding picking the right tool for the job aside, I don't want to waste time on a language that can be usurped by a giant corporate borg anytime they see fit.
- dagmx 2y agoC# for Microsoft and for a long time people were afraid of Amazons influence on Rust But the reality is that many major languages already have very outsized corporate influence. Either at the language level or the compiler level. Swift is open source and has been separating from Apple ownership as of this year.
- benoau 2y agoI can certainly think of a web browser that has that same conflict of interest... in fact we are actually right in the midst of a "leopards ate our face" moment with ad blocking becomes undesirable to Google in Chrome.
- troad 2y ago> I am looking to branch out and really learn a compiled language Tip from a friend - just learn C++. It's not sexy, it's not new-fangled, but it's rock solid, runs half the world, and you will never struggle to find a job. You'll also understand what it is that all of the new-langs are trying to improve upon, and will be able to made an educated judgment about whether they succeed or not. A good resource for modern C++ (albeit it seems to be down rn?) is https://www.learncpp.com/ https://www.learncpp.com/. I'm not affiliated, it's just good.
- 6gvONxR4sf7o 2y agoI’ve been meaning to do this for years, and just played around with rust a bit (liked it, but the wrappers around some c++ stuff i wanted to use were half baked). Learning rust, there was this “rustlings” thing [0] that was a set of guided exercises to go alongside the rust book. Fastest I’ve ever picked up a language, thanks to that. Do you or anyone know anything similar for c++? [0] https://rustlings.cool/ https://rustlings.cool/
- gtirloni 2y agohttps://exercism.org/tracks/cpp https://exercism.org/tracks/cpp
- deleted 2y ago[deleted]
- Dylan16807 2y agoC++ has a lot of things I would call new-fangled, in addition to many old ways of doing things, with no good ways to settle on which iteration to use so devs can avoid learning all of them. And some things simply require templating nightmares to work at all. I would also not use "rock solid" in comparison to how easy it is to hit undefined behavior. Used all over and easy to find jobs, yes.
- troad 2y agoC++ gives you a garage full of tools and lets you decide what to do with them. Ultimately, it does this because the years have shown that different people need different tools for different use cases. Few people need or use them all at once. But when you do need a specific tool, C++ has it ready for you. Some consider that a con, I consider that a pro. I find that a lot of the newlangs take the view that since most programming only uses 20% of the toolkit, they can just dispense with the remaining 80%. Which is great, until you discover that virtually every sophisticated project needed one of those things from that remaining 80%, and they all needed a different one. A nice language for writing 'Hello world's isn't going to cut it. And so either the language insists on its simplicity and stagnates, or it just reinvents all the complexity of C++. At which point, you were better off just taking the garage full of tools that you already had, rather than going all in on some newlang, getting blocked, and stalking a github ticket for years waiting for the lang to get that feature you need. (If you spent the time in C++ instead, its full garage wouldn't look so imposing over time!) What's the famous quote? 'There are only two kinds of languages: the ones people complain about and the ones nobody uses.' :P Re generics, aren't C++'s virtually the same as Rust's? Especially now that C++ has 'concepts'?
- Dylan16807 2y agoThere's a lot of redundancy and things you probably should never use in C++, though. It's not complexity that needs to exist other than for backwards compatibility. > Re generics, aren't C++'s virtually the same as Rust's? Especially now that C++ has 'concepts'? I'm not worried about generics when I talk about template nightmares, that's more about rvalue and const overloads and vararg templates and careful manipulation of SFINAE, all coming together.
- paperplatter 2y agoI use C++ at work but am glad I didn't learn it before. Yes it's a good language for what it's made for, but there are so many features that anywhere you work, you will use it differently from how you used it before. Better to learn it on the job imo. Just getting good and greasy with Python and JS with all the typical libs has been more rewarding for me. Nobody taught me, but it was useful.
- cheema33 2y ago> Tip from a friend - just learn C++. Is that good advice for certain domains only? For example, you likely wouldn't want to use C++ for web server backend? You could, but may not want to.
- troad 2y agoDefinitely. Use the right tool for the job. But if you're looking to learn a compiled language - presumably because you want to write applications, games, or systems - then C++ is a great one to learn.
- evilfred 2y agoJava has problems now that Oracle is in charge. upgrading Spring/Hibernate versions is really painful when you have to switch to Jakarta imports all over
- pjmlp 2y agoWithout Oracle in charge Java would have died in version 6.