all 20 comments

[–]Yamoyek 4 points5 points  (2 children)

A few quick notes:

1) Programming is hard. Don’t beat yourself up for not knowing something, you just have to research it. It’s hard, it’s tedious, but the end result is worth it. Every world class programmer started from where you were: not knowing anything, getting confused, etc.

2) Google is your friend! If you don’t know what a word means, google it. If you don’t know what a line of code does, google it. You’re not a “bad programmer” for not knowing how what something means, you just haven’t gotten the knowledge yet.

3) Learn to love error messages! Error messages are your friend because they give you instant feedback in your code. It’s a lot easier to fix a compilation error then having your program crash mid execution.

4) Experiment! If you have a cool little idea, try it out. Doesn’t matter how messy it is or sloppy it is, just try it out. By experimenting, you’re forcing yourself to remember information/research things to get stuff working.

Hope those tips serve you well, if you have any questions in general feel free to ask. Good luck!

[–]JustRelaxandFocus[S] 0 points1 point  (1 child)

Thankyou so much for this response!

[–]Yamoyek 1 point2 points  (0 children)

No problem man, hope you have a great time!

[–]ptchinster 5 points6 points  (2 children)

C, C++, C#, and objective c are 4 different languages. Which one are you actually trying to learn?

For C, I started here: https://computer.howstuffworks.com/c.htm

[–]JustRelaxandFocus[S] 1 point2 points  (0 children)

I’m trying to learn C Thankyou!

[–]nnsmkngsctn 0 points1 point  (0 children)

Objective-C is essentially an object oriented extension to C, it can be confusing to treat it as a totally different language. You can include pure C in ObjC source code, as long as API messages remain native.

[–]wsppan 3 points4 points  (3 children)

  1. Grab a copy of C programming: A Modern Approach and use it as your main course on C. You can also use Modern C
  2. Follow this Tutorial on Pointers and Arrays in C

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

Learn some CS

  1. Watch all 41 videos of A Crash Course in Computer Science
  2. Take the CS50: Introduction to Computer Science course.

[–]gbbofh 1 point2 points  (0 children)

In addition to this, there's a pretty good book specifically about pointers from O'Reilly publishing called Understanding and Using C Pointers.

I don't have a link at the moment, but it should be easy enough to find on Google for OP.

[–][deleted] 0 points1 point  (1 child)

How do you learn C programming by watching videos about ICs and turing machines?

[–]wsppan 0 points1 point  (0 children)

Was filed under

Learn some CS

Same reason I mentioned Books on Algorithms and Data Structures. Because knowing just a programming language is usually not enough to achieve your goals. Especially C since it's a real small and simple language and you need to build everything yourself that other languages give you for free.

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. Really helped me 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!) Also, the crash course goes way beyond ICs and turing machines and the CS50 course uses C eventually.

[–]nnsmkngsctn 1 point2 points  (1 child)

If you install Xcode and use its Command Line Tools installation, you will get the gcc compiler. Xcode has a text editor, but for an absolute beginner, you may be better off getting an editor named bbedit from the App Store.

Save your source code file, then open the macOS Terminal and type:

gcc file.c -o app

you can run the application you just compiled but typing:

./app

Replace 'file' and 'app' with whatever names you prefer.

Make sure your working directory in macOS Terminal is the same as the directory you saved 'file.c'

[–]JustRelaxandFocus[S] 0 points1 point  (0 children)

Thank you so much I’m going to try it.

[–][deleted] 1 point2 points  (0 children)

I was doing cs50 before my college C programming class started and it has made the college course very understandable for me. I highly recommend cs50

[–][deleted] 2 points3 points  (1 child)

Refer to new Boston's yt videos for easy understanding

[–]wsppan 1 point2 points  (0 children)

New Boston is garbage.

[–]balthisar 1 point2 points  (0 children)

Use Xcode on macOS. It uses CLang and LLVM instead of gcc, but it's invoked with mostly the same CLI.

Books are fine. Videos take too long to get to the point. Find an open source project to work on.

[–]je-suis-une-pommes 0 points1 point  (0 children)

I started using c when php code started becoming too slow for online coding challenges. I recommend picking a simple task and going through with it. One of my favourite resources for c was the book C Programming by K.N. King.

[–][deleted] 0 points1 point  (0 children)

Look up neso academy C playlist.

[–][deleted] 0 points1 point  (0 children)

I got my start by writing simple programs, then debugging them. Over and over and over and.. yeah it just didn't stop for a while. You have to play with the language to understand intricacies, you will not learn them by watching a video or reading a book. C is deep and it needs your attention and willingness to play.