8 ms·
Everyone I know who uses Go complains about it. Every day you write Go code you will come across some piece of code that would be shorter with templates in C++
by klodolph 9y ago
Everyone I know who uses Go complains about it. Every day you write Go code you will come across some piece of code that would be shorter with templates in C++ or using <algorithm>, or you could do it more simply in Python, or if you were really clever it would be a single line of Haskell.
And yet we keep writing Go.
By comparison, I'm a bit put off by the Rust community's evangelism, but that might just be my personal experiences with Rust community members.
- baby 9y agoI'll give you my point of view then: I'm super happy with Go and way less happy when I have to read C++ with templates.
- pjmlp 9y agoNot me, I only touch it when the customer says so, and it is usually Docker related assignment.
- megaman22 9y agoYou're attempting to slaughter all the sacred cows of this community. I predict that will end badly
- alrs 9y agoI use the quality of people's complaints in interviews all the time. I like it when they have a complaint but can see why the trade-off was made. I don't like it when they're obviously parroting HN group-think. I really don't like it when they have no complaints at all, but are able to recite the marketing happy-talk verbatim.
- emj 9y agoOften people are in all of those categories, they use what I see as marketing speech to talk about their own experiences. Those experiences might differ from mine so what I dismiss as parroting or marketing is later shown just to be difference in opinion. I admire people who can spot such things effectively and steer discussions in an productive manner. I see now that this is not really about interviews anymore but just everyday discussions.
- sagichmal 9y agoEveryone who uses any tool sufficiently frequently will complain about it. This is not a good proxy for quality.
- zaphar 9y agoIt's so prevalent our industry has a term for it. "Use it in anger". You know you've gotten to know a language when you have had to work around a quirk of it's semantics.
- noncoml 9y ago> And yet we keep writing Go. What are the alternatives if you want something with type checking? Java? No, thanks. Haskel? Where are the libraries? C/C++? I guess Typescript is the only alternative
- patricklouys 9y agoModern PHP is really nice to work with. I uploaded the sample code from my book on Github if you want to have a look (check inside the src directory). https://github.com/PatrickLouys/professional-php-sample-code https://github.com/PatrickLouys/professional-php-sample-code
- blackoil 9y agoC#. Its pragmatic and now cross platform, has got OOPS and the functional features you need.
- mustardo 9y agoI like C# as a language but everytime you use it a puppy dies (MS exists)
- pjmlp 9y agoJava, C#, F#, C++, D, Rust, OCaml, Haskell, FreePascal, Ada, Swift, Nim look all pretty fine to me, and yes there are ways to compile Java and .NET languages to native code just like Go. As for libraries, what matters is if the desired use case is covered, not winning the App Store count.
- deleted 9y ago[deleted]
- cgag 9y agoI like go for most things more than all of those, though F# would be promising if I felt better about .net stuff and Linux.
- MrBuddyCasino 9y ago
- submeta 9y agoCan't help but think of: "The grass is greener on the other side of the fence."
- barsonme 9y agoOr "There are only two kinds of languages: the ones people complain about and the ones nobody uses."
- powerslacker 9y agoI write Go on the daily and I really enjoy it. But hey, whatever floats your boat!
- tobbyb 9y agoA slightly different perspective. For the end user Go apps are by far the easiest to setup and use. Usually it's just a single binary to download. That is a huge advantage that can't be beat. Other languages usually need a large number of dependencies, with Ruby and Node, often an entire build environment, with plenty of potential for dependency hell and hours wasted. Some may advocate containers at this point, but it just hides the issue temporarily and may be too much for a certain category of end users. You now need to know how containers, ports, volumes and Linux systems work in far more detail when you actually just want to use an app.
- pjmlp 9y agoAll compiled languages support static linking, nothing special about Go.
- klodolph 9y agoAt least historically speaking, this wasn’t true. And the fact that it’s true today for Java and C# is an anomaly, since for most of the history of those languages native compilation was either third party, second-class with missing features, or both. Look at GCJ or Excelsior (commercial). Or look at Python, which is also compiled. Or Ruby, or JavaScript, TypeScript, Dart…
- pjmlp 9y agoLanguage and implementation is not the same thing. Does not matter where the implementation comes from, if it is free or commercial, what matters is that it exists.
- mustardo 9y agoWith say a java app thou you'd typically get a .zip with all your class path dependencies and a launcher in one bundle. This is not the case for ruby, js (node), python etc where the norm is to splatter dependencies across your file system. Its not quite static linking but closer
- royge 9y ago
- littlestymaar 9y ago> And yet we keep writing Go. Remember that Go is still a niche language, and the majority of programmers will never write a single line of Go. There is a nice trend around Go nowadays, but most people are still writing PHP, Python or Java and Go isn't going to replace any of those.
- klodolph 9y agoOne could equally remember that Java was a niche language in 2000 used by a few dot-com startups, and even today it has not replaced C++, COBOL, or Fortran. Languages don’t get replaced, people just don’t use them as often for new projects.
- littlestymaar 9y ago> One could equally remember that Java was a niche language in 2000 used by a few dot-com startups, and even today it has not replaced C++, COBOL, or Fortran. Ouch, the lack of historical accuracy of your comment is painful. Just a few points : - Sun Microsystem was founded in 1982, it's far from being a dot-com start-up. - Java was already ubiquitous by 2000, it was embedded in your phones, your credit cards, in your browsers thanks to applets etc. - in fact it did replace COBOL or C++ for a wide number of applications, not everywhere but it still had a enormous impact on the industry. Netscape even went as far as re-implementing their whole browser in Java[1]. It was a bad idea, but that gives you an idea of the revolutionary impact Java had. Go is nowhere near where Java was in 2000, by several orders of magnitude. It's not a criticism of Go, I don't even think we'll ever have a language as popular as Java in that time, because in the 90s there was a massive window of opportunity for a language that was at the same time : safe, portable, and licence-free. [1]: https://www.cnet.com/news/netscape-sharpens-javagator-plans/ https://www.cnet.com/news/netscape-sharpens-javagator-plans/
- geodel 9y agoWell the size of industry was much smaller than it is today. Java kind of replaced or used in first place where people would have used C/C++ etc. Same is true for Go as lot of container/devops, cloud etc infrastructure is written in Go which would most likely be in Java. Among the languages that came in last 10 years Go is most popular with exception of maybe Swift. So compare to marketing juggernaut Java with billions sunk in by leading enterprise vendors Go is nowhere. But among non corporate driven language Go is definitely on top.
- zaarn 9y agoGo has many flaws (lack of generics is my biggest gripe) but I still manage to be productive in it and it's fun to write. I think for many people, me included, it's flawed but good enough for the job and fun.