Live data from Hacker News

The Best Programming Language (or How to Stop Worrying and Love the Code)

blog.fourthbit.com

51–60 of 166 posts

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#51
post #25
post #12

Based on the code snippet, I'm not surprised he thinks C# is "verbose" with "lots of boilerplate" and "resembles Java", because the snippet is written as if it WAS Java, or at least written 10 years ago. Compare his GetFrequencies implementation with idiomatic, LINQ version: http://pastie.org/8834650

I know nothing about C#, but I keep hearing announements of Groovy-like features in C#, and to me, Groovy is what Java should be (but with better performance). If C# is really like Groovy with better performance, then it should be a very nice language indeed.

> I keep hearing announements of Groovy-like features in C#

I'm pretty sure the builders of C# didn't think about Groovy at all when putting in features such as closures and dynamics. Correlation doesn't imply causation.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#52
post #25
post #12

Based on the code snippet, I'm not surprised he thinks C# is "verbose" with "lots of boilerplate" and "resembles Java", because the snippet is written as if it WAS Java, or at least written 10 years ago. Compare his GetFrequencies implementation with idiomatic, LINQ version: http://pastie.org/8834650

I know nothing about C#, but I keep hearing announements of Groovy-like features in C#, and to me, Groovy is what Java should be (but with better performance). If C# is really like Groovy with better performance, then it should be a very nice language indeed.

I've tinkered with Groovy (writing custom event handlers etc for Jira). If I was going to spend any serious time writing stuff to run on the JVM then Groovy would probably be my choice. C# has been my primary development language since 2002. Fell out of love with it for a while until LINQ and then dynamics appeared. Oddly, this week I am writing nagios plugin code in Perl, which I am getting a weird kick out of, I haven't used Perl in anger since 1999.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#53
post #38

The bash-example is not very bashy. It is sh, like the header says. Bash fully supports a native for: for i in {0..5};do echo "$1" done

Interestingly, this comment states that Bash is not available in all POSIX. Here is where I get lost. http://blog.fourthbit.com/2014/03/01/the-best-programming-la...

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#54

No love for mumps? GREPTHIS() NEW SET,NEW,THEN,IF,KILL,QUIT SET IF="KILL",SET="11",KILL="l1",QUIT="RETURN",THEN="KILL" IF IF=THEN DO THEN QUIT:$QUIT QUIT QUIT ; (quit) THEN IF IF,SET&KILL SET SET=SET+KILL QUIT

Oh jeez, don't remind me.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#55
post #50
post #48

Earlier quoted context omitted.

> If you want to address which is the best JVM language, you've got to at least mention Groovy You could make that argument for all of the many ecosystems mentioned in the article, e.g. because for Unix/Linux scripting only bash is mentioned, you could have opined "If you want to address which is the best Unix shell, you've got to at least mention zsh" . Groovy's just a dialect of Ruby anyway, except being specific f…

Grails is a bit more than simply Rails for Groovy. There are a few things that Grails does very differently, partly due to it being built on top of Spring and Hibernate. Also, Groovy+Grails is far more enterprise-ready than Ruby on Rails. Something as basic as proper unicode support is still very recent in Ruby, for example. Also, multithreading comes as naturally to Grails as it comes to Java, but not to Ruby on Rai…

> There are a few things that Grails does very differently, partly due to it being built on top of Spring and Hibernate.

Back in 2005 Grails didn't add much to Groovy, Spring, or Hibernate. It was just a thin wrapper around software products from other companies (e.g. SpringSource, JBoss) so the training consultant behind it all could muscle in on the training and consultancy markets for their products. In 2006 Grails was renamed and promoted as _Groovy on Grails_ to sound like _Ruby on Rails_. He started a company, G2One Inc, in 2007 and quickly shopped it around among the various companies whose products he bundled, successfully fooling SpringSource into buying it 12 mths later.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#57
post #40

Whenever someone says PHP is useless I know that they have no idea what they are talking about. Being ugly is one thing, being useless is something quite different and in case of PHP this could not be further from the truth.

Breath, breath, he never say somothing against PHP.

Re: The Best Programming Language (or How to Stop Worrying and Love the Code)

#58
post #42
post #40

Whenever someone says PHP is useless I know that they have no idea what they are talking about. Being ugly is one thing, being useless is something quite different and in case of PHP this could not be further from the truth.

Strange, this article doesn't call PHP useless.

It does. Every line about PHP was sarcastic :)
Post reply on HN