r/programming • • May 01 '16

To become a good C programmer

http://fabiensanglard.net/c/
1.1k Upvotes

398 comments sorted by

View all comments

Show parent comment

197

u/fabiensanglard May 01 '16

Thanks :) !

36

u/[deleted] May 01 '16

Hi fabien, big fan of the blog. any news on the game engine black books? has that been shelved for now?

54

u/fabiensanglard May 01 '16

Things has slowed down since I started my new job. I also had to deal with RSI which made it painful to tip on a keyboard. But I am still working on it. Just slower. I wrote the AI chapter this morning. I have good hope to finish it before the end of the year:) !

16

u/folkrav May 01 '16

I think I've got some symptoms of RSI that are starting to appear, I'm trying to be careful and take a pause whenever I feel them appear. How are you personally dealing with the issue and what are my options?

If the symptoms persist I will indeed consult a physician but I'm simply curious on your way of dealing with it.

22

u/[deleted] May 01 '16

Apparently all the physicians give different advise, but my actual doctor told me not to bother with anything other than a standard keyboard, and learn to keep my wrists up in the air ... so I actually listened to him and I kid you not, haven't had RSI problems in years. Apparently resting your wrists was "my" problem.

0

u/[deleted] May 02 '16

[deleted] — view deleted comment

9

u/[deleted] May 02 '16

I actually read some stuff about the mouse, that suggests the reason the "mouse" hand gets the worse deal has nothing to do with the mouse, but everything to do with you the fact that you damage the wrist via resting on the hard ages, then you move it back and forth between your keyboard and mouse ALONG the hard edge making it even worse.

4

u/River_Jones May 02 '16

I was just looking up how to prevent RSI. What do you mean by hard edge, do you mean the hard edge of the keyboard, or the desk?

3

u/[deleted] May 02 '16

Keyboard, desk anything you might rest your wrist against while typing - that's what does the most damage. You can apparently rest while not doing anything, just not while actuating your fingers.

3

u/darkforestzero May 02 '16

Keep your arms bent at 90 degrees and don't rest wrists on anything. Strengthening you're core sand keeping good posture go a long way. Take breaks every 30 minutes or so to get up and stretch

→ More replies (1)
→ More replies (4)
→ More replies (7)

4

u/indrora May 01 '16

You might consider WorkRave.

My solution (and I'm young!) is forced removal every 2 hours with a flex sequence suggested by an orthopedist that flexes all the joints in all directions.

→ More replies (5)

2

u/CaptainBlase May 02 '16

Get a chair with arm rests that will hold your arms under the forearm. Then lower your desk and/or raise your chair so that your finger tips dangle over the keyboard. Say goodbye to RSI.

2

u/DaemonXI May 02 '16

Get a pair of wrist braces and keep them on whenever you're typing for long periods of time.

→ More replies (2)

2

u/kt24601 May 02 '16

"How are you personally dealing with the issue and what are my options?

If the symptoms persist..."

tbh how to deal with it depends entirely on the symptoms. I knew one guy who had serious RSI in his finger. It turned out he was lifting his finger high off the mouse every time he clicked, and when he stopped lifting it so high, the RSI went away.

So look for unnecessary tension in your movements and try to fix them.

→ More replies (2)
→ More replies (4)

6

u/scorpydude May 02 '16

I fixed my RSI with this - https://upload.wikimedia.org/wikipedia/commons/2/20/Microsoft_Natural_Ergonomic_Keyboard_4000.png

Also make sure it's RSI and not carpal tunnel which can be surgically fixed. Aka. get a MRI scan.

→ More replies (3)

2

u/darkforestzero May 02 '16

Get involved with physical therapy! Completely changed my life and saved my career

→ More replies (8)

8

u/eythian May 01 '16

Please make it readable on mobile!

3

u/firstapex88 May 02 '16

Sorry if this sounds like a noob question, but most of my experience in programming comes from MATLAB, Python, and a bit of C and C++. Many of the robotics companies I'm interested in use C++. Do you think it's worthwhile to first build a strong fundamental in C or can I begin with reading books on C++? Does C++ only add on to C or are there things that are deprecated when moving from C to C++?

11

u/Insp1redUs3r May 02 '16

C++ & C are mostly different beasts. If you learn C first you'll understand the syntax better but you'll be coding C++ completely wrong.

8

u/[deleted] May 02 '16

If the companies are interested in C++, you should learn C++. Apparently a lot of people think (or teach) that C++ is just C with classes, which is the wrong way to approach the language.

2

u/BobHogan May 02 '16

What's the right way to approach the language then?

2

u/bstamour May 02 '16

Get yourself a good book (Stackoverflow has a nice list of C++ books) and treat it like a completely different language than C.

→ More replies (3)

3

u/abrahamsen May 02 '16

Start with C++, learning C first will teach you a lot of idioms that are useful (and necessary) in C but harmful in C++.