Live data from Hacker News

What programming languages are used most on weekends?

stackoverflow.blog

131–140 of 299 posts

Re: What programming languages are used most on weekends?

#131
Everyone is pointing out potential problems with the methodology, but really this matches up pretty well with experience. SQL, MS Office stuff, boring things like logging, and testing all show up as being about work. Haskell is actually infamous for having an evangelical following and limited real-world uses. And, yeah, your C-like languages work well for both work and side-projects. This all makes perfect sense. The only thing I'm surprised about is assembly being for pleasure (maybe hardware people?), and web stuff being as versatile.

Re: What programming languages are used most on weekends?

#132
post #124

Earlier quoted context omitted.

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…

The question specification is such that you don't need special handling of comments, strings, etc. "every paren" isn't qualified as "that is part of the code".

The point of the question is more to gauge your understanding of/familiarity with available tools and ability to think laterally rather than immediately jump to "I've got to write some real code to solve this"

Re: What programming languages are used most on weekends?

#133
post #123

Earlier quoted context omitted.

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.

Most Yegge blog rants are well worthwhile, IMO. I wish he wrote more of them.

Re: What programming languages are used most on weekends?

#134
> We defined weekends using UTC dates...

...which means quite a few Saturday mornings in Asia have been counted as weekdays and many late Friday nights in the Americas have been counted as weekends.

It would be great if StackOverflow had information on the local timezone that the question was asked in. Seeing Mon-Fri 9-5 vs other times would be interesting.

Re: What programming languages are used most on weekends?

#135
post #128

Earlier quoted context omitted.

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 n…

But in a lot of ways awk seems way more modern than Perl (Perl 5 at least). You actually have functions with parameters rather than having a weird @_ array that you need to shift values from. Honestly, if I didn't know otherwise, I'd think awk came after Perl.

Re: What programming languages are used most on weekends?

#136
post #44

I was kinda surprised that Go (golang) wasn't up in the list

I was expecting to see Rust - I thought it was a considerably 'hotter' language than reflected by its current use in the wild. Also, I find SO's coverage of it lacking. So maybe it's more about people sourcing the information elsewhere - relatively good docs, active and helpful community in IRC, and more Q&A on Reddit (albeit mostly - again, anecdotally - out of date, but still) than SO.

> I was expecting to see Rust - I thought it was a considerably 'hotter' language than reflected by its current use in the wild.

Rust is pretty hot on Hacker News and r/programming, but even working in a systems-language-heavy field, I haven't seen too much mindshare (outside of some friends at Mozilla). It is kind of a shame, both Rust and D are doing really cool things, and I'd love to see more penetration!

Re: What programming languages are used most on weekends?

#137
post #125

Earlier quoted context omitted.

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).

Honestly, would you rather hire an intern that has to learn Java from scratch, or one that actually had a class in it?

I'm a fan of Haskell, but I think it being the intro CS class language is an educational fail.

Re: What programming languages are used most on weekends?

#139
post #99

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...

Is it really a 'sample', if they are reporting on the entirety of their data for a given period? Is the question interpreted as extending to those not on stackoverflow, or is it a complete census of the 'population' of their data?

I would argue it's a sort of (nonrandom) proxy sample in the sense that they're sampling a fraction of the people actually programming on the weekend.

Re: What programming languages are used most on weekends?

#140

Earlier quoted context omitted.

It's true that you can program in a functional style in almost any language, but it's just simpler for Javascript. Functions are first-class objects in Javascript, and arrays have built-in forEach, map, reduce, and filter -- all useful for a beginner in functional programming. C++ and Java have lambdas and foreach, but they aren't as simple to use.

There is nothing wrong with map, reduce and filter, but I believe this is just conflating nice and usable APIs for iterators with functional programming.

http://letoverlambda.com/index.cl/guest/chap5.html

s/Lisp/JavaScript/g

Post reply on HN