Live data from Hacker News

What programming languages are used most on weekends?

stackoverflow.blog

121–130 of 299 posts

Re: What programming languages are used most on weekends?

#122
post #117
post #40

I surprised there was no mention in the blog post or the comments so far about the homework factor. It isn't just personal side projects that people are working on over the weekend. I am betting the relative percentage of CS students on the site is also much higher on the weekend. Tags like assembly, pointers, algorithm, recursion, class, and math are all rather vague. Those topics are all discussed at length in CS c…

What proportion of people asking questions do you think are students vs professionals/other nonstudents? Seeing as most people are only students for 4 years of their life, I would be surprised at how much students contribute to this change. I also can't think of a reason as to why students would be asking more questions on weekends vs weekdays. Especially for the big difference in Haskell, I just can't imagine its la…

Students are much more likely to ask lots of questions. Far more difficult projects are often due on a Monday or Tuesday to give students the weekend to finish up, the exact kind of projects likely to elicit questions at the last minute.

Re: What programming languages are used most on weekends?

#123
post #110

Earlier quoted context omitted.

Isn't that just a `grep -R [regex pattern]`? Not sure where something like awk or sed fits in to solve such a problem.

The primary point was one of mindset, but the second example in the cited section is a tailor-made sed example: Let's say you're on my team, and I've decided I'm a real stickler for code formatting. But I've got peculiar tastes, and one day I decide I want to have all parentheses stand out very clearly in your code. So let's say you've got a set of source files in C, C++, or Java. Your choice. And I want you to modif…

Whoops, didn't notice that one. Thanks for linking that post by the way. Great read.

Re: What programming languages are used most on weekends?

#124
post #110

Earlier quoted context omitted.

Isn't that just a `grep -R [regex pattern]`? Not sure where something like awk or sed fits in to solve such a problem.

The primary point was one of mindset, but the second example in the cited section is a tailor-made sed example: Let's say you're on my team, and I've decided I'm a real stickler for code formatting. But I've got peculiar tastes, and one day I decide I want to have all parentheses stand out very clearly in your code. So let's say you've got a set of source files in C, C++, or Java. Your choice. And I want you to modif…

Y'know - after thinking about it a little, I'd argue that this is a question that could serve a second purpose. The obvious out-of-the box implementations of this in sed/perl/etc. would all fail to properly handle open and close parens in strings and comments. Particularly multi-line comments and strings with escaped quotation marks inside of them.

I like sed. I like perl one-liners. I would consider it a mistake to try to do this on a real codebase in a batch manner with just a regexp. You'd be far better off googling to find a source code formatter that includes a real parser, like clang-format.

Re: What programming languages are used most on weekends?

#125

Earlier quoted context omitted.

I used Haskell for a significant portion of my CS education, it's possible you aren't far from the mark.

I went to ut austin and after a long time using haskell for intro classes the administrators succumbed to temptation (and possibly pressure from dell/ibm for wage slaves) maybe ~10 years ago and started using java. It was kind of horrible because the professor for (at least one of the) intro classes reproduced cons, car and cdr from lisp and had us construct a bunch of data structures out of this monstrous java lisp…

It was around when Dijkstra died that UT switched away from Haskell to Java. And yes, from what I've heard from several faculty members around in that period, a lot of it was from external pressure from large regional employers (some of which you have mentioned).

Re: What programming languages are used most on weekends?

#126

One way I use Stackoverflow’s dev stats is to make educated guesses about the easiness of finding developers in 2-3 years time to maintain now-greenfield projects. Does Ruby seem to go down while Python is in steady growth? Let's move away from Rails. Swift is picking up steam? It's safe to switch from Objective-C. This dataset seems to be just fantastic for that.

Company I work in still uses Delphi 7. Professional environments don't want language hipsters, they want developers. Developers can and do adapt to the environment they happen to end up in, be it haskell, c or Delphi. And they can find pleasure at work once they are used to it.

Re: What programming languages are used most on weekends?

#127

The funnel shape of the scatter plot immediately reminded me of an article on the insensitivity to sample size pitfall [0], which points out that you'll expect entities with smaller sample sizes to show up more often in the extremes because of the higher variance. Looks like the tags with the biggest differences exemplify this pretty well. [0]- http://dataremixed.com/2015/01/avoiding-data-pitfalls-part-2...

It could also be that the most popular languages in the corporate world are a compromise somewhere in between enjoyable/exciting and horrible/boring. (My assumption is that a large weekend ratio correlates with enjoyable/exiting.)

The ratio of sample sizes in the OP also isn't that bad, and none of them are very small.

Re: What programming languages are used most on weekends?

#128

Earlier quoted context omitted.

There's no reason to use awk or sed when perl exists (a2p and s2p have existed for decades)

There is no reason to use perl in situation when awk kicks its butt with clearer, shorter code free of distracting sigils and other line noise Awk is also POSIX standard; a good remaining reason to use it (if it is a feasible alternative for a task) is that a script has to be portable outside of GNU/Linux.

I like Perl a lot better than awk, buy I do agree with the general sentiment of using the language that makes for the clearest code for the task at hand, especially the smaller ones. Which makes me a frequent awk proponent.

So I'm surprised at the following part of your comment:

> There is no reason to use perl in situation when awk kicks its butt with clearer, shorter code free of distracting author and other line noise

In my experience, the shorter ask code tends to be the one with sigils.

Re: What programming languages are used most on weekends?

#130
post #10

I don't think the number of questions asked correlate with which languages are used the most. My weekends are mainly Java, but I don't need to post on stack overflow because all of my questions have been already addressed.

> I don't think the number of questions asked correlate with which languages are used the most.

That's why the post works in ratios of weekend to weekday. Regardless of how much more or less likely someone is to ask about one language than another language (e.g. because they're already familiar with it), the numbers in the OP should still indicate relative usage amounts at different times.

Post reply on HN