Giter VIP home page Giter VIP logo

learn-c's Introduction

Learn C

I've posted this here before and it's what has worked for me and a few others who told me it worked for them as well. Ymmv.

People sometimes struggle with C when they start from scratch or come from a higher to lower level of abstraction. I struggled with this for a long time till I did these things:

I would not try and understand how the higher level abstractions translate to the lower C level. I would instead learn from first principles on how a computer works and build the abstractions up from there. You will learn how a CPU works. How the data bus and registers are used. How memory is laid out and accessed. The call stack and how that works, etc.. This will go a long way in understanding how C sits on top of this and how its data structures like arrays and structs map to this and understanding how pointers work the way they do and why. Check out these resources:

  1. Read Code: The Hidden Language of Computer Hardware and Software
  2. Watch Exploring How Computers Work
  3. Watch all 41 videos of A Crash Course in Computer Science
  4. Take the Build a Modern Computer from First Principles: From Nand to Tetris (Project-Centered Course)
  5. Take the CS50: Introduction to Computer Science course.
  6. Grab a copy of C Programming: A Modern Approach and use it as your main course on C.
  7. Follow this Tutorial On Pointers And Arrays In C

The first four really help by approaching C from a lower level of abstraction (actually the absolute lowest level and gradually adding layers of abstraction until you are at the C level which, by then is incredibly high!) You can do all four or pick one or two and dive deep. The 5th is a great introduction to computer science with a decent amount of C programming. The sixth is just the best tutorial on C. By far. The seventh is a deep dive into pointers and one of best tutorial on pointers and arrays out there (caveat, it's a little loose with the l-value/r-value definition for simplicity sake I believe.)

https://github.com/practical-tutorials/project-based-learning#cc

https://stackoverflow.blog/2020/10/05/play-the-long-game-wh⁷en-learning-to-code/

You can also check out Teach Yourself Computer Science

Here is a decent list of 8 Books on Algorithms and Data Structures For All Levels

learn-c's People

Contributors

marcentusch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.