Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Learning C from scratch after 14 years not using it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
nikulinpi
n00b
n00b


Joined: 12 Jan 2007
Posts: 37

PostPosted: Sat Nov 17, 2018 4:06 pm    Post subject: Learning C from scratch after 14 years not using it Reply with quote

Hi,

What is the best way to learn C from scratch? I used to code C in high school, but haven't touched for 14 years since.

Any suggestions to find anything qualifying as "from scratch" course?
Back to top
View user's profile Send private message
Morality124
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2018
Posts: 102

PostPosted: Sat Nov 17, 2018 6:03 pm    Post subject: Reply with quote

EDX has a lot of free courses that are based on real university courses - not so good though if you want a "credible" citation on a resume though.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3610

PostPosted: Sat Nov 17, 2018 6:11 pm    Post subject: Reply with quote

I learned it 30 years ago reading the standard K & R book a couple of times, and never forget it, altough I'va been programming for the last 2 decades.

EDIT. https://en.wikipedia.org/wiki/The_C_Programming_Language

Online PDF: https://www.dipmat.univpm.it/~demeio/public/the_c_programming_language_2.pdf Not the latest édition though...

There must be more complete recommendation, but this could be a easy & useful first step.

There must be plenty of tutorials on uTube.

Thks 4 ur attention.


Last edited by CaptainBlood on Sat Nov 17, 2018 7:24 pm; edited 3 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Nov 17, 2018 6:52 pm    Post subject: Reply with quote

K&R is a good book, but it's somewhat concise: best for at least moderately experienced programmers. I also learned C over 30 years ago from K&R, but at the time I was writing production code in FORTRAN, PL/I, and (I swear) IBM 370 Assembly Language (and also avoiding COBOL like the plague). For a more thorough text for beginners, I'd recommend C Primer Plus by Prata. But there's something else you need to do: find something real and substantial to do with it. Working the textbook examples is a good start, but that doesn't really cause it to sink in the same way that actually using a language in practice does.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3610

PostPosted: Sat Nov 17, 2018 7:28 pm    Post subject: Reply with quote

John, you're right saying practice remains the key, but I guess nikulinpi has a good purpose for learning C.
As I was coming from BASIC, it helped be to think closer to hardware.

Long side note: Funny you're mentionning your attitude towards COBOL as I had the same, for which I had a few regrets with all the supposed easy money to be made out of it in the late 90's.

Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Sun Nov 18, 2018 7:22 pm    Post subject: Reply with quote

My first programming language was ALGOL in school almost 50 years ago. It was a traumatic experience, but I realise now that it was a good language...
Then FORTRAN IV for some years (I liked it).
Then PL/1 (a very good language, that should have replaced both FORTRAN and COBOL), but I think IBM did some mistakes there in pricing. Customers had to buy a license just to run a compiled program, stupid. IBM also had a language for scripts REXX that looked like PL/1. (emerge dev-lang/regina-rexx :) ).
My last languages were C and C++. They gave me grey hair! I wrote some programs to run under unix, but I used Windows Visual C++ to write and test them. I think Visual C++ is free to use for students. :)
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Sun Nov 18, 2018 8:26 pm    Post subject: Reply with quote

http://books.goalkicker.com/CBook/CNotesForProfessionals.pdf
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 145
Location: Michigan

PostPosted: Fri Nov 23, 2018 6:50 am    Post subject: Reply with quote

arnvidr wrote:
http://books.goalkicker.com/CBook/CNotesForProfessionals.pdf


thumbsup
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Nov 24, 2018 3:37 am    Post subject: Reply with quote

John R. Graham wrote:
For a more thorough text for beginners, I'd recommend C Primer Plus by Prata. But there's something else you need to do: find something real and substantial to do with it. Working the textbook examples is a good start, but that doesn't really cause it to sink in the same way that actually using a language in practice does.
After myself, the next biggest hurdle I've encountered are example after example which are then followed by some statement to the effect of "but don't do that in production" (because it was only for "learning" purposes, and is very flawed). Well, OK. But that doesn't truly help me learn. I'll look into the reference. Thanks.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum