r/CodingForBeginners • • 5d ago

How should I learn c language?

Wanna learn c language, suggest me lectures, or any other material

0 Upvotes

28 comments sorted by

View all comments

1

u/marmotta1955 5d ago

First of all, ask yourself why you want to learn the C language. What is your goal?

Unless you have a very specific idea of what you are going to do with it ... C may not be the most appropriate language for you. In other words: if your goal was to compete as a swimmer, training as a soccer player would not do you much good.

In more relevant words: if your goal was to interact with large scale databases, it would be more appropriate to start with SQL. If your goal was to be a web developer, it would be more appropriate to start with HTML and CSS. If you were more interested in hardware automation (such as industrial looms or knitting machines), C would help by Assembly would be more important ...

So, why the C language?

1

u/mjmvideos 5d ago

Industrial looms and knitting machines are programmed in assembly?

1

u/marmotta1955 5d ago

There is so much going on inside jacquard knitting machines (flatbed and/or circular).

So, it depends on what one is doing. Working with the control board. Or the Relay. Or the pattern/sequence board(s). Or creating pattern files. Or transforming the graphic designer picture into pattern data.

I mean, just think of what is needed to go from a picture to the finished knitting fabric -- driving a 28-gauge beast with 48 feeds and 2592 needles.

1

u/mjmvideos 5d ago

In the 60s or 70s maybe. In general, the amount of things needing to be done or things that need to be controlled have very little to do with whether assembly is needed or not. If the microcontroller is supported by a C compiler then I’d expect it would be much more cost effective to program that logic in C. Or if it’s a little older then maybe PLC Ladder logic. Maybe it’s a legacy codebase that has been around since the days of assembly and small patches and updates are all that is needed. But if I were designing firmware/software for a new knitting machine, I guarantee I could do it in C.

1

u/goofspheredaa 2d ago

Why c language? Cause it's in my course of college

1

u/marmotta1955 2d ago

Well, there goes the motivational approach. So, just follow the course material? I am guessing, but there must be - at least - some textbook?