News for hackers. Stuff that matters.
Re:Teaching C by tyingq on Tuesday May 10, 2016 @03:13PM (#11669758)
>I've come to the conclusion that C is best understood if you think about it in terms of the way that an assembly language programmer would think about doing things

I agree with this. I found another article that made the transition for someone coming from something like Python or Ruby easier. It shows how to use gdb as a sort of C REPL. https://www.recurse.com/blog/5-learning-c-with-gdb

The quick feedback loop certainly makes things like pointers, arrays, etc, more clear.

Re:Teaching C by cderwin on Tuesday May 10, 2016 @03:54PM (#11670106)
Wow. I've been flirting around with learning C for awhile now (coming from a couple dynamic languages, including python), and this is by far the most helpful read about pointers I've ever come across. Thanks a ton.
Re:Teaching C by nickpsecurity on Tuesday May 10, 2016 @05:16PM (#11670729)
Re:Teaching C by kachnuv_ocasek on Tuesday May 10, 2016 @06:11PM (#11671102)
Re:Teaching C by nickpsecurity on Tuesday May 10, 2016 @06:17PM (#11671138)
Heck yeah. Thanks for the tip. Btw, new link is here:

https://github.com/zsaleeba/picoc

Re:Teaching C by startling on Tuesday May 10, 2016 @04:16PM (#11670302)
+1 to this. GDB and valgrind are the best things about writing C.
Re:Teaching C by douche on Tuesday May 10, 2016 @08:00PM (#11671677)
Valgrind is the best thing since sliced bread - saved me so much time and agony...
Re:Teaching C by Gibbon1 on Tuesday May 10, 2016 @09:58PM (#11672139)
One things that I've found enlightening is when you have an IDE that allows you to step through mixed source and assembly. You can see your data being slopped around and processed. (int a = 10; becomes ld R4,10)