Live data from Hacker News

What programming languages are used late at night?

stackoverflow.blog

191–200 of 244 posts

Re: What programming languages are used late at night?

#191

Earlier quoted context omitted.

There's definitely the overhead in re-loading where you were yesterday, although sometimes that's handy - "sleeping on it" does work. I find (in any work, not just the rare C work) that when I get into a juicy problem I just don't want to stop. It's nothing to do with the task switching / reload cost, it's that I'm interested in what I'm doing. So I think you're right that it's about what kind of developers a languag…

I started leaving my laptop hibernated with visual studio or gdb stuck at the break point where I was off. The feature to anottate variables and pin them also helps for when somebody bothers you mid debug session.

Good point, but I meant mental re-loading.

Re: What programming languages are used late at night?

#192

Earlier quoted context omitted.

I have a big distaste for bash, and am happy to copy paste anything similar from stackoverflow. Shame on me though!

My biggest concern with this is that there are a lot of really terrible bash script writers out there on the internet, and the quality of code between two different answers will vary wildly. I'm not going to claim to be a great bash script writer, but I'm better than 80% of what I see out there. Throwing together random fragments is going to cause nearly as many problems as it's meant to solve.

This is very true, and it has happened to me. Luckily I dont write anything critical in bash, there are usually better suited people for that. I am just a big crybaby without compiler :(

Re: What programming languages are used late at night?

#193
post #57
post #44

Earlier quoted context omitted.

There have been a bunch of 20% projects; but only recently have they started any full-time Haskell work, as far as I know.

One of the biggest(.) Google projects with Haskell is probably Ganeti ( https://github.com/ganeti/ganeti ), which is a mix of python and Haskell and has been around since 2008ish (although Haskell was introduced later, iirc). We recently moved our main development to github so the repo seems a bit empty, we're certainly happy to get more contributors if you are interested, as the community is fairly small and special…

I helped out a bit with the BCL pretty-printer in my day. (Mostly contributed in-depth code reviews.)

Is Ganeti related to Ganpati? Sorry, it's been a bit since I left Google. Memory is fading.

Re: What programming languages are used late at night?

#194

C programmers start the day a bit later, keep using the language in the evening, and stay up the longest. This suggests C may be particularly popular among hobbyist programmers who code during their free time (or perhaps among summer school students doing homework). ... or they're the only ones stuck down a rabbit hole chasing some obscure memory leak that keeps bugging them until late in the evening.

What slows me down in C is not memory bugs, its bare-bones nature, which leaves me either implementing basic stuff myself or trying integrate some library that I don't really want.

Memory unsafety is terrifying, but not much of a time-sink in ordinary development. Only once in my career have I found a memory bug that was difficult to track down and fix (it was a stack overflow in a C++ program on an embedded OS).

The real problem with memory unsafety is that I nave no idea how many memory bugs I didn't find.

Valgrind a lot both with finding and diagnosing memory bugs. But it cannot solve everything.

Re: What programming languages are used late at night?

#195
post #166

C programmers start the day a bit later, keep using the language in the evening, and stay up the longest. This suggests C may be particularly popular among hobbyist programmers who code during their free time (or perhaps among summer school students doing homework). ... or they're the only ones stuck down a rabbit hole chasing some obscure memory leak that keeps bugging them until late in the evening.

Every one of my worst-bug-ever stories starts with something stupid I did in C.

I had a boss that called while I was on vacation and told me he needed me back in the office immediately to fix a bug that was only in development. Long of it was, I stayed on vacation for an extra week to fix the bug remotely, but when he called I was in the car about a half hour from the Canadian border in Washington after having driven from Chicago.

Re: What programming languages are used late at night?

#197
post #2

Otherwise written as "what programming languages are being asked about late at night." To me, who rarely pulls up SO, correlating SO questions and page views with usage is a bit biased.

Whoah! The big news for me is that there is a programmer who rarely uses SO. I use it constantly. Can you say more about: 1. What your programming set up is. 2. What you do when there is an issue? I didn't know there was a reasonable alternative. I do the Google -> SO a lot. The only time Google brings up a different page is if the question is REALLY basic like how to use a function. Edit: added this postscript: I ha…

The problems I have are often related to how to use a certain library or a certain function in a programming language I don't know that well, in which case I often try to search for similar code on github to see examples, or look at the library code.

For stuff like "are there optional parameters in .len()?", I always keep a tab or two on both the documentation of the language and the library I'm using at the moment. I really like how some languages come with specific tools for documentation (ri in Ruby, the `doc` function in Clojure) and I try to use them as much as I can when available.

Re: What programming languages are used late at night?

#198
post #193
post #57

Earlier quoted context omitted.

One of the biggest(.) Google projects with Haskell is probably Ganeti ( https://github.com/ganeti/ganeti ), which is a mix of python and Haskell and has been around since 2008ish (although Haskell was introduced later, iirc). We recently moved our main development to github so the repo seems a bit empty, we're certainly happy to get more contributors if you are interested, as the community is fairly small and special…

I helped out a bit with the BCL pretty-printer in my day. (Mostly contributed in-depth code reviews.) Is Ganeti related to Ganpati? Sorry, it's been a bit since I left Google. Memory is fading.

Not at all, only the name is very similar :)

Re: What programming languages are used late at night?

#199
post #65

Earlier quoted context omitted.

The big problem I've had with Haskell is that even after gaining a pretty good understanding of the language (including monads and such) I still can't fathom how to do anything real with it. Exercises are great and all, but once I try to go past exercises, I start getting lost in layers of monad transformers, and I struggle to figure out the "right" way to do anything. It just feels like there are all these layers of…

Bonsoir, allow me to introduce Servant. http://haskell-servant.readthedocs.io/en/stable/index.html Servant allows you to write a type that describes a server/API, and automatically derives a specification for it. You can then write handlers for the different API endpoints, and it will only compile if every endpoint is correctly handled. That includes content types, status codes, and so on, everything is verified, and…

Looks fantastic. But let me ask for more :-)

> This is equivalent to an API that defines these three endpoints:

It would be cool to use the text that follows this as the spec; i.e. write a converter from this description to Haskell.

> GET /position/:x/:y/ returns a Position object as JSON

Re: What programming languages are used late at night?

#200
post #173
post #72

Earlier quoted context omitted.

I also don't use SO that much, I never have. Maybe I google a few things once in a while and sometimes I stumble upon a StackOverflow page, but never to actually solve errors. It's usually to get a bit more insight out of curiosity. Professionally, I work at Google and internally we have an extensive corpus of knowledge for various problems and programming patterns that really are tied to in-house technologies that d…

> I look at the logs, look at the code... This bears repeating. READ \ clap\ THE \ clap\ FUCK- \ clap\ -ING \ clap\ LOGS. READ \ clap\ THE \ clap\ FUCK- \ clap\ -ING \ clap\ CODE. I'm amazed at the devs who just scroll up in the logs to the first error they see, then copy-paste that into google or SO.

It gets worse. I've known developers who will report merely that 'website blah is down'. They don't look at the logs and they don't tell me the actual error message that the browser receives.
Post reply on HN