Live data from Hacker News

Forty years of programming

fabiensanglard.net

51–60 of 176 posts

Re: Forty years of programming

#51
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…

This might be particular to the age of the OP. I just turned 47, so I'm one year older than him.

In 1981 (so when I was 5) my parents bought me a Sinclair ZX81. It came with literally nothing except a BASIC interpreter in ROM and a manual. The manual explained how to program in BASIC and had a bunch of listings that you could type in for rudimentary games etc. So when we got our computers at that era all we could do is "program". Was it hardcore software engineering? No. Did we understand it at that age at any meaningful level? No. But it was programming, of a sort.

In the next few years I experimented more and more until I started to grasp higher level concepts.

My point is there was a particular window in time that met these criteria:

- affordable personal computer.

- no (or very few) games available, you had no choice but to write programs.

This was around 1980-1983. Before 1980 most people didn't have access to personal computers. After 1983 you could get computers that could easily read games from tapes or floppies.

So I guess there were a bunch of 5 year olds in that era who were almost forced to program.

Re: Forty years of programming

#52
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 elsewhere too (zsh and gdb for me mostly). Also in general it's quite convenient to have escape so close.

Do what you will but please don't suffer uselessly for stupid historical reasons.

Re: Forty years of programming

#53
post #15

Earlier quoted context omitted.

The one sentence that isn't meaningful to the text, and that's the one you wish to comment on? I started programming a few years later, maybe at 8 or so, but I would absolutely call that programming. I still have the note pads somewhere. It's nothing to be ashamed of, it's a beginner's first steps on a computer that does not exist.

Wait. You started out by scribbling down programs on a notepad and no computer? That's both adorable and inspiring. Were you working with BASIC? I'm super curious what this was like for you.

I did that too. I thought it was common. I learned programming by reading my older sister's Computer Science manual from high school in preparation for me starting high school (2004, Romania).

All school work was on paper so it was a necessity.

But it was fun too. In pointless classes like French, there was nothing better to do. It was worthwhile to work on my personal programs on paper and type them out when I got home.

You had to think about the approach before starting to write it down. I would leave a lot of vertical space in case I needed to put something above. In some cases I would write the code afterwards, draw a rectangle around it, and point to where it needed to move. It was a bit messy sometimes.

Re: Forty years of programming

#54
post #36

I started experiencing similar forearm pain a few years ago. The split keyboard seemed to help a ton. I also programmed[0] an Arduino with two foot pedals. Left pedal for CTRL, right for SHIFT, both for ALT. Worked wonders. I mostly have the pain manageable now, but it still flares up sometimes, and it was really scary there for a while wondering if I might have to stop programming. To you young guns out there, an ou…

What if you need to press all three "keys" simultaneously?

Re: Forty years of programming

#55
post #23

Only 1 monitor for 40 years? p impressive

It's been years I have 2 or 3 monitors and I find them annoying and mostly a waste of power. Every now and again I use them as a reference screen against something I'm doing, but my neck starts hurting pretty quick. Alt-tabbing rocks. They tend to be mostly empty. Alt-tabbing means improved focus "one thing at a time" too. I'm thinking to keep a large 32" screen in front of me, ditch the side 32" and get a "portable…

Portrait displays are worth trying, in my view. I've gone through various iterations of multi-display setups, and I've settled on having 2 x 27" portrait displays at 1440p (or scaled 4K equivalent), one directly in front of me and one to the side, plus a landscape display of any size to the other side.

Both the portrait displays get a good amount of use. The central one is most important of course but the one to the side is useful too as I don't have to turn my head much to look at it. Its usual use is documentation or similar but using it for actual work is no hardship.

The landscape display is mainly there because I work in video games, so I kind of need one. I usually use only about half of it at most, though, to avoid having to turn my head too much. If I was in some other line of work I'd probably have a 3rd portrait display instead.

(I did use the large monitor + laptop below arrangement for a while, and that was good too, but one day I knocked my drink over and it destroyed my laptop. So that prompted a rethink.)

Re: Forty years of programming

#56
Long-time programmer here who is a typing machine, without discomfort, thanks in part to heeding Internet warnings about RSI circa 1990, and to finding what works for me.

One of the things that matters for me when seated at a desk (I also do standing desk) is that I like to be able to have my feet flat on the floor when seated, and then for the keyboard height to be lower than most desks.

If you're similar, and you're considering those powered height-adjustable desks, note the minimum height in the specs of a desk (and that the actual minimum height might be an inch or two higher, due to the top thickness and/or leveling). Importantly, the "3-stage" ones on Amazon go lower than the "2-stage" ones.

You can also occasionally find rare low fixed-height desks. I also once realized that the legs of a university lab's white laminate desks were interchangeable with the legs of matching shorter white laminate side tables. (I quietly swapped a set, under the cover of night.)

On chairs, I don't like armrests in any case, and also, note that, if you have a lower desktop or keyboard shelf, armrests on chairs might bump into it.

If you want to remove arms from a chair that has them, check how well that works before you spend a lot of money. Aerons with arms look like they can come off pretty cleanly. I've had good luck with some more conventional commercial-grade office task chairs. I've also seen office chairs that leave unsafe heavy-duty welded steel frame protrusions out the sides, with corners that could rip into someone's leg someday. Steelcase Leap V2 arms can come off, but not cleanly, so it looks kinda dumb for how much money you spent.

Re: Forty years of programming

#57
After a lifetime of programming I feel like I still have a pretty-good “keyboard stamina”. I attribute this to not having any habits, let alone bad ones. Or maybe they’re all bad. I’ll explain.

I started programming pretty early, but I didn’t have a desk until my first job after college. I pretty-much made do with whatever situation was available to me. I also started working pretty early, doing physical jobs. I bucked hay for local farmers at about 12 and started shearing Christmas trees at about 15. The latter doing a lot of damage to my shoulders over the next few years. In college I rowed crew, which didn’t make things better as far as my arms went.

After college I started programming and I’ve been doing it professionally for going over 30 years now. It’s never really been physically comfortable. Even back then I was good for like an hour-long sit at most before I had to get up and move around and “get the blood flowing“ so to speak. That’s never changed. I still don’t like working at a desk. I stand, I sit on the floor, I sit in comfortable chairs, I lay down on the sofa, I’ve been known to steer a sailboat with one hand and program with the other.

I feel like this is why it still works for me - I don’t repeat my posture much. I have a really, really low bar for my programming “situation” and take full advantage of that.

Re: Forty years of programming

#59

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…

Also take frequent breaks! Get out of your chair often. If you're literally sitting 8-10 hours a day, you're doing it wrong.

I think this is key. I never had too many issues taking breaks, to be honest. Even when 'programming', I spend a lot of the time thinking about what to do, and not actually typing. I heard early on that if you're constantly typing, you're doing it wrong, and I must've taken it to heart.

I'm 44 myself, and fortunately haven't had that sort of pain in my hands/wrists/forearms. Have had back pain though, and that sucks.

Post reply on HN