Live data from Hacker News

Ask HN: What language do you think in?

news.ycombinator.com

11–20 of 68 posts

Re: Ask HN: What language do you think in?

#11
post #6

I think in English. Whenever I'm thinking about a problem, my solutions are immediately described in my head at a high level. This allows me to rapidly iterate over the solution space without having to venture down into the pseudocode or code level until I've found something I'm convinced will actually work.

I'm trilingual, but I tend to also think primarily in English (not my native language).

Apart from that I prefer to think in images.

Re: Ask HN: What language do you think in?

#14
It usually depends on what language I'm working in. These days I've been working in actionscript, so that's how I think. I think this behavior is partly because I sorta loose familiarity with other languages when I'm working in one language for an extended period of time.

Re: Ask HN: What language do you think in?

#15
Op and I should be best friends. I can't count how many times I've solved a PHP problem using Python. Or generated PHP code using Python (won't go into detail, but it wasn't TDWTF material, I promise). Or simply explained something in a given language in terms of Python.

Re: Ask HN: What language do you think in?

#18
I think in the subdialect of English known as social media stream of consciousness.

Ask Lazyweb about my blog's new design... that's like using the crowd as a source of wisdom... crowdsourcing... OMG I invented a new word wait check urbandictionary... oh cool I'm getting answers... upvote... hmm this submission is tangentially related to my blog, i'll promote it in the comments... upvote... hmm should I change my profile from 'social media expert' to 'social media genius'? Too forward? Oooh one of my older tweets is getting retweeted... Follower count... damn, just got rickrolled again! Hmm the world is moving to Twitter... it's a killer of something... subscriptions... RSS... hmm there's a photo of me that isn't tagged, let's come up with a clever nickname for myself in that tag... RSS Killer... means RSS is dead... Email alert... new follower! w00t fellow social media expert... I'll follow her too... doesn't seem as smart as me though... oh shit, it's Follow Friday! who's mentioned me? who's mentioned me? hmm I need a "10 Things" post to submit to Digg... 10 Things I like about you... funny movie, who was that actress? check imdb... is it in my Netflix queue? Oooh shiny funny new failblog post... I wonder what's new in the app store...

Re: Ask HN: What language do you think in?

#20
post #7

Earlier quoted context omitted.

"It depends on the situation, but I generally think in terms of pure functions and types. " This resonates. I think in a weird pseudocode myself and after getting a grip on type theory I find I think in typed weird pseudocode.

Well, I think it's reasonably intuitive to think that way. It basically involves asking yourself the questions - "what types of values am I interested in?" "what types of results do I expect?" and finally "how do I get from input to output?" I think most programmers probably think it reasonably similar terms - it's just that having working in STLC or a high-level functional language gives you some mental machinery th…

having worked in... a high-level functional language gives you some mental machinery that doesn't rely on decomposing this thought process into some concrete syntax

This is what we are really talking about when we claim that reading, e.g., SICP will make you a better programmer even if you don't work in Lisp.

SICP is not a book about Scheme. It's a book about computation that happens to use Scheme. And it is resolutely abstract, encouraging you to think in non-linguistic terms. One of the bits I remember best was near the beginning, when they talk about the shapes of computational processes -- iterative processes have a different shape from recursive processes. Now I use that sort of mental picture all the time.

The goal is to think about software like a mathematician thinks about math. If you're thinking in a language, it's like the way I thought about math when I was nine years old -- to the extent that I knew what a mathematician was, I thought it was someone who was really really good at the long division algorithm. Someone who could subtract really fast!

Post reply on HN