6 ms·
I love programming languages. And I love to reason about them. When I see an article comparing languages, I'm all in. So I clicked on this one. Started skimmin
by founderling 7y ago
I love programming languages. And I love to reason about them. When I see an article comparing languages, I'm all in.
So I clicked on this one. Started skimming through it, looking for code. Found none. Came back here to share my disappointment.
I'm always confused about articles that talk about code and have little code to show. Are there programmers who enjoy reading them? Or are these articles made for non-programmers?
Another thing that always throws me off is fluff. The article starts with "Choosing a programming language isn’t easy.". What does this add to the article? It immediately makes me think the author stuffed this article for no reason. So I have to skim even faster to not being cheated of my time. Is there anybody out there who thinks having the article prefixed with "Choosing a programming language isn’t easy." makes it more valuable?
- csmnils 7y agoThere is little code in the main article, but there is a link to a detailed Java vs. Go code comparison: https://yourbasic.org/golang/go-vs-java/ https://yourbasic.org/golang/go-vs-java/
- wcdolphin 7y agoThat’s a bit of a straw man. 1. You are using go’s built in imaginary type, and writing one from scratch in Java. 2. That is no longer idiomatic Java. Use Autovalue and the comparison is a little more fair. The LOC and complexity still come out in go’s favor for this, no doubt. 3. Beating down on Java is fun, but with Kotlin interop and adoption rate, I think the comparison will become JVM vs X.
- tluyben2 7y agoHe even names examples he is comparing but the examples are not there; there are many links in there and I am not going to click them all... So why are those examples not there?
- bayesian_horse 7y agoProgrammers enjoy writing them and then have flamewars about the topic. But reading? probably not so much...
- rolleTx 7y agoBut it gives a lot of references to codes
- sacado2 7y agoThis article deals with "big picture" aspects, not specific syntactic details, so there is no reason for it to include code. Backward compatibility, compilation speed, circular dependencies, small vs big specs, etc. What code do you want to show about these aspects? > The article starts with "Choosing a programming language isn’t easy.". What does this add to the article? It's an introduction. It's a very common writing technique. You don't start with the core content of the article, you start with a paragraph or a sentence about why you wrote the article in the first place. You did the same with you "I love programming language" opening.
- founderling 7y agoBackward compatibility, compilation speed, circular dependencies, small vs big specs, etc. What code do you want to show about these aspects? Code that shows these aspects. What broke in Java because of language changes and why. How handling circular dependencies in one language makes code uglier then in the other. Examples of the specs. You did the same with you "I love programming language" opening. That I love programming languages and to reason about them is an information about myself that the reader does not know in advance. That choosing a programming language is not easy is public knowledge that the readers already know. At least if they are programmers. That is the point of my post. Asking who the target audience is. And how it is different from myself.
- setr 7y ago>That choosing a programming language is not easy is public knowledge that the readers already know. At least if they are programmers. Well that bit is certainly not true; passing by certain communities and you’ll be let known theres only one good answer: {lisp,c#,haskell,rust,js,c/++}
- chrismorgan 7y agoPlease do not use code formatting for quotations. Use the old de facto standard of a “> ” prefix.
- 7y ago
- vlthr 7y agoAren’t you being a bit uncharitable? - The article focuses on the properties of codebases, not individual code snippets. While it would be very valuable to do compare the properties of entire codebases, that is demanding on both the reader and the author. - Opening the article with a statement like “Choosing a programming language is never easy...” is an acknowledgement of the fact that he is not claiming Go is unequivocally the best in all scenarios. The author is signaling that he is a reasonable person, and while that may seem like fluff it is a necessary component of communicating with a wide audience.
- joppy 7y agoIf you think that somebody writing a 6-word sentence at the start of an article to set the tone is "cheating you of your time", perhaps stop reading random articles on the internet, and then also leaving comments about them.
- blablabla123 7y agoYeah but I think for non-trivial programs, say 10k+ lines of code, it's really difficult to show proper examples, not to speak of exhaustive coverage. Go in particular doesn't have many fancy language constructs and a lot of well written code in Go 1 might look a bit repetitive, especially the error handling. But once you wrote a larger program and followed best practices with error handling, you might be delighted how much more compact error messages are and still offer a lot of greppable things to debug after. Probably there are languages that have a really expressive syntax that solve problems also in a scalable manner. For instance Python with its list comprehension that are a real code and time saver for software that does a lot with lists. (No coincidence it's so popular with ML.)
- mratsim 7y agoIn ML you really want to use Numpy ndarrays, Pandas dataframes or Tensors. A list is much too slow because: - Not contiguous - No SIMD vectorization - No parallel processing Lists are mostly used for list of containers (for example storing the arrays inputs of a function)