Live data from Hacker News

Forty years of programming

fabiensanglard.net

71–80 of 176 posts

Re: Forty years of programming

#71

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

After using a keyboard with Esc even further away than usual, I've found myself using Ctrl-[ more often. I should look into remapping capslock.

Re: Forty years of programming

#72

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

Caps lock is such a waste of prime keyboard real estate, even for non-vim users!

For those who don’t use vim, just switching caps lock and control is probably better so you can copy and paste with less contortion.

For vim users, I highly recommend remapping caps lock to be control when held, and escape when tapped.

Re: Forty years of programming

#73
post #33

Earlier quoted context omitted.

I got a 43” 4K TV that can do 60hz with reasonable signal input latency. You can check the specs of many TVs on rtings.com. Just over $200 at Costco these days. I personally like to use Divvy to chop my screen into sections but mostly I do 2/3 for my IDE (affords me 3 less-than-full-width columns for source) and 1/3 for the browser. I have wanted to have an iPad for displaying docs but haven’t gone there yet.

Is it as good for your eyes? Aren't TV designed to be looked at from a further distance than arm's length?

Not the GP, but the pixels on my 43" 4k TV are just slightly smaller than those on the 1080p monitors it replaced. I have the TV positioned about an arm's length away. It's farther than the monitors it replaced. And it's far enough away the I don't have to crane my neck side to side. (To that end, I also use a tiling window manager and have ~3 inch gutters on the side.)

I love it and it's just a $200 TCL TV that happens to have good response (thanks rtings.com).

Re: Forty years of programming

#74

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

Binding caps lock to control when held and escape if pressed alone is the greatest

Re: Forty years of programming

#75

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

This is good advice. But be cautioned--at some point you'll want "some other key" to be the left half of your spacebar or some other such nonsense. And then you'll be one of us. Forever.

Re: Forty years of programming

#76
post #17

Only 1 monitor for 40 years? p impressive

i'm the same. i don't understand why some fellow programmers need multiple monitors: one is already plenty enough for me. (i'm using a tiling window manager, switching back and forth between different workspaces, having another monitor would require moving my head while i can instantly switch to another workspace from my fingertips)

I usually like 1.

But, it can be nice to have one for output; plots or something.

I assume folks who work in a corporate environment would want one for slack, outlook, or whatever.

Re: Forty years of programming

#77

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

Huh. I find ESC easier to type than Caps Lock because it is in the corner of the keyboard.

I used to have RSI and what solved it (over 15 years ago) was taking more care to hit the precise center of the key. Using my sense of touch to sense the key's exact location before even trying to activate the key helps me do that. When the key is on left edge of the keyboard, it is easier to do the determination of the exact location (of the left edge of the key I want) because I don't have to worry about accidentally activating the key to the left of the key I want. Caps Lock of course is also on the left edge of the board, just like ESC is, but ESC is also on the top edge, which is an additional help: the easiest keys to type in my experience are the ESC key and the left control key because they are in corners of the board. (The other two corner keys, "pause/break" and the right arrow key, are harder because of how far they are from the home row.)

I never understood the desire many writers on this site have of moving the hands as little as possible. More precisely, I understand the rationale, but I consider the rationale to be misinformed. If you don't move your hands (i.e., because you have a keyboard with only 36 keys or something), you still have to use your arm muscles to hold your hands over the board, and the human brain is better at movement than at using the muscles to statically counteract gravity like that. That is part of it, but there is more. When hitting a ball with a tennis racket, it is ergonomic to take a back swing, i.e., to move the part of the racket that will hit the ball in the direction opposite the direction you want the ball to go, before starting the swing. Very quick back swings are important in typing, too, for preventing RSI (for reasons I don't fully understand). And I think moving my hands around the board (i.e., in the 2 horizontal dimensions) makes it less likely my brain will put the relevant muscles in "freeze mode", which makes RSI more likely. Or something like that.

Re: Forty years of programming

#78

A WARNING for anyone who thinks this article doesn't apply to them: If you are reading this post and thinking, "oh I don't have these problems, I'm going to read something else", I encourage you to pause. Having been in this industry for a while, I have seen RSI-type injuries happen to HUGE portions of my colleagues. I've met many people who have changed careers over this. The reality is that spending 8-10+ hours a d…

[deleted]

Re: Forty years of programming

#79

Dear Vim beginner, before getting a fancy keyboard, do remap Esc to some other key. It makes no sense to have your most important key where it is nowadays. The reason the back to normal mode key is ESC is because that key used to be much closer from the home row. My personal preference is to use Caps Lock because each OS has an easy solution for this simple remap and since it's system wide you can use vim modes elsew…

I agree with this, but there is another default combination that is escape , right?

I realized that esc was difficult in vim when I was forced to change due to the original MacBook Pro Touch Bar.

Re: Forty years of programming

#80
post #3

Am I the only one who finds these "I've been programming since 6" posts silly? I mean, I used to mess up with computers since I was a child, but I wouldn't call that "programming". In fact if I'm completely honest, it wasn't until 5 years ago when I truly started to learn and grow as an engineer, more than the rest of my career combined. Rather than focused on quantity let's focus on quality. 1 good year of experienc…

I started programming in 3rd grade when a teacher kept me in during recess because I was being bullied, and was first paid for programming in 7th grade when I ported a program from BASIC to C and used the money to buy my first computer). Silly? Didn’t feel that way.
Post reply on HN