back

by dgellow·8y ago·view on hn ↗
Curious about this. How do you do that? Shouldn’t you still have to read the statement forward to then be able to read it backward? I can see in lispy languages how you could do that, because of the structure of S-Expressions, not sure how you would do that with more conventional syntaxes (let’s say C-like).

I think that personally I do a lot of back-and-forth in-between forward and backward reading to construct the program logic in my working memory.

Edit: maybe, could you describe what you mean by reading backward? I read it originally as “reading from the first expression to be evaluated to the last one”, but I see now that you are talking about statements. If that’s the case I see a lot of issues related to the context/scope of a statement. Do you read, let’s say, from the last statement before closing a function, then up?

1 comments
As I say I am a terrible programmer the best example I could think of was this for Python 3.

float_num = float(input("Enter float num: "))

The way I read it is: I need to enter a number, the number is input, it's a float, that number will be assigned to the variable float_num.

It's not the best example but for me at certain times it's far clearer. Most times it seems like I am reading the equivalent of a person writing backwards then it dawned on me to read it backwards.

Yep, that makes sense said like that :)