News for hackers. Stuff that matters.
Re:Most used words in programming languages by masklinn on Friday January 20, 2017 @07:56AM (#13443431)
> One can make very interesting conclusions based on purely this.

With a large grain of salt

1. generally, the thing seems to mix words from all context, for instance #6 in Ruby is "should", click on the word and it's mostly comments, same for Rust's #4 "the".

2. "if __name__ == '__main__'" (seriously, TFA counts >600k of those)

3. also unclear what codebases are parsed, lots of django-isms in the conditional examples (if context is None, if request.method == 'POST', if form.is_valid)

See also: Go, where most every function call requires an `if`

> - Ruby makes it possible to write in a much more functional style than Python. OR Ruby developers like to develop more in a functional style than Python developers.

Don't confuse writing more functions/methods and writing in a more functional style, they're very different things.

Re:Most used words in programming languages by pmontra on Friday January 20, 2017 @08:01AM (#13443462)
Yep, the tool should skip strings and comments.
Re:Most used words in programming languages by masklinn on Friday January 20, 2017 @08:10AM (#13443509)
Or provide for classification/filtering.

Comparing word clouds of comments would actually be interesting. But then you hit the issue of "what is a comment" e.g. many language use comments for item documentation, but python uses (doc)strings.