•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 332,649 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,299 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 584 | Replies: 23
![]() |
•
•
Join Date: Apr 2008
Posts: 13
Reputation:
Rep Power: 1
Solved Threads: 1
Hello,
I am currently learning (or really just begun) Assembly (my first programming language, by the way) and am wondering once I become somewhat good at Assembly, should I start picking up the C language. I know that several languages are based upon it, and I am even planning on doing work in the Objective-C language (i think it's a Macintosh-specific language), which states C as a pre-requisite. Java and C# are also based upon C, which I think means if I learn C I'll have an easier time picking these languages up.
If yes, what are some good resources / books that are useful for a beginner in C.
Thanks,
Ryan Leaf
I am currently learning (or really just begun) Assembly (my first programming language, by the way) and am wondering once I become somewhat good at Assembly, should I start picking up the C language. I know that several languages are based upon it, and I am even planning on doing work in the Objective-C language (i think it's a Macintosh-specific language), which states C as a pre-requisite. Java and C# are also based upon C, which I think means if I learn C I'll have an easier time picking these languages up.
If yes, what are some good resources / books that are useful for a beginner in C.
Thanks,
Ryan Leaf
Last edited by RyanLeaf : 8 Days Ago at 9:04 pm.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 9,212
Reputation:
Rep Power: 29
Solved Threads: 720
See the Read Me Starting "C" at the top of this board. You posted right over it.
Its good that you are studying assembly language but I would not have picked it as my first programming language because assembly is not considered a good way to program. That is, the language is chucked full of jumps and gotos. You will have to unlearn all that in order to code effectively in any of the higher-level languages. In other words, assembly language teaches you a lot of bad habbits.
The second reason not to learn assembly as a first language is that there are very few people who actually program in that language any more. Most programmers code for years without even seeing any assembly language code.
Its good that you are studying assembly language but I would not have picked it as my first programming language because assembly is not considered a good way to program. That is, the language is chucked full of jumps and gotos. You will have to unlearn all that in order to code effectively in any of the higher-level languages. In other words, assembly language teaches you a lot of bad habbits.
The second reason not to learn assembly as a first language is that there are very few people who actually program in that language any more. Most programmers code for years without even seeing any assembly language code.
Last edited by Ancient Dragon : 8 Days Ago at 10:34 pm.
I Like Ike. Vote for Dwight Eisenhower this November.
--This message brought to you by the the Procrastinators Club Of America.
--This message brought to you by the the Procrastinators Club Of America.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
i learned assembly years ago as my first language (not counting BASIC, Pascal and Fortran, which i never did anything meaningful with)...
in the early 90's it was important to know Assembly to do embedded programming, because the C compilers for embedded controllers were terribly inefficient -- and expensive if you were a student or hobbyist. the "Assembly is Better" mindset continued even into this decade.
But now the C compilers rock, and only the most specialized apps or processors would ever need such low-level programming.
so, as some one who learned on assembly, and loved all its peculiarities.... I hate to say it... stay away from Assembly if at all possible. at the very least, don't start learning to program on it, for reasons Dragon pointed out already.
do yourself a favor and learn C and learn C++... C is especially suited for microcontroller and embedded work, while C++ in particular will give you the Object-Oriented foundation on which you can expand in any other direction as needed.
dont bother with C# unless you are immediately going to go work in a Microsoft shop. Definitely do not get bogged down in some Macintosh "objective c".... no one uses Macintosh for C programming in the industry, that I've ever seen. i mean, if you want an object-oriented version of C... it's already here: it's called C++. And it's portable to any OS. Vendors reinvent the wheel because they want to lock you into their proprietary hardware or software. don't do it. if you know C++ you can easily pick up C# or "Objective-C" if the need ever arises.
if you learn C you'll always have a skill in high demand. if you learn C++ you'll have the additional benefit of understanding Object-Oriented programming, and can take that knowledge and apply it to any number of languages, such as C# and Java, and can likely get hired based on your C++ background even if you dont have the specific OO language they prefer.
.
in the early 90's it was important to know Assembly to do embedded programming, because the C compilers for embedded controllers were terribly inefficient -- and expensive if you were a student or hobbyist. the "Assembly is Better" mindset continued even into this decade.
But now the C compilers rock, and only the most specialized apps or processors would ever need such low-level programming.
so, as some one who learned on assembly, and loved all its peculiarities.... I hate to say it... stay away from Assembly if at all possible. at the very least, don't start learning to program on it, for reasons Dragon pointed out already.
do yourself a favor and learn C and learn C++... C is especially suited for microcontroller and embedded work, while C++ in particular will give you the Object-Oriented foundation on which you can expand in any other direction as needed.
dont bother with C# unless you are immediately going to go work in a Microsoft shop. Definitely do not get bogged down in some Macintosh "objective c".... no one uses Macintosh for C programming in the industry, that I've ever seen. i mean, if you want an object-oriented version of C... it's already here: it's called C++. And it's portable to any OS. Vendors reinvent the wheel because they want to lock you into their proprietary hardware or software. don't do it. if you know C++ you can easily pick up C# or "Objective-C" if the need ever arises.
if you learn C you'll always have a skill in high demand. if you learn C++ you'll have the additional benefit of understanding Object-Oriented programming, and can take that knowledge and apply it to any number of languages, such as C# and Java, and can likely get hired based on your C++ background even if you dont have the specific OO language they prefer.
.
Last edited by jephthah : 7 Days Ago at 1:26 pm. Reason: .
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 9,212
Reputation:
Rep Power: 29
Solved Threads: 720
•
•
•
•
i learned assembly years ago as my first language (not counting BASIC, Pascal and Fortran, which i never did anything meaningful with)...
Assembly could not have been your first language if you had learned others prior to that. I Like Ike. Vote for Dwight Eisenhower this November.
--This message brought to you by the the Procrastinators Club Of America.
--This message brought to you by the the Procrastinators Club Of America.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 9,212
Reputation:
Rep Power: 29
Solved Threads: 720
i should have qualified "assembly was the first language in which i did any meaningful work" ... i just played with the others. Basic/Pascal/Fortran are, for all intents and purposes, completely useless languages -- unless you're an Excel Programmer (Basic) or a Nuclear Engineer (Fortran)
...
i was going to say that i program eeproms using C... if driving external hardware to manipulate data bit-by-bit, counts... probably not. i guess you've still got to understand basics of low level assembly programming.
but that should all be secondary to first learning the higher level languages like C/C++ ... assembly should come later.
.
...
i was going to say that i program eeproms using C... if driving external hardware to manipulate data bit-by-bit, counts... probably not. i guess you've still got to understand basics of low level assembly programming.
but that should all be secondary to first learning the higher level languages like C/C++ ... assembly should come later.
.
Last edited by jephthah : 7 Days Ago at 6:55 pm.
im not sure what kind of microcontrollers you mean, but the ones i deal with ... scientific instrumentation and medical products ... are all programmed in C.
now there's always an occasional macro in assembly, but they're short and sweet, and few and far between.
assembly programming is a rare skill these days, because the demand is but a fraction of what it was 10 or 15 years ago.
now there's always an occasional macro in assembly, but they're short and sweet, and few and far between.
assembly programming is a rare skill these days, because the demand is but a fraction of what it was 10 or 15 years ago.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
- Which language to learn? (Computer Science and Software Design)
- What program language should a beginner use? (Software Developers' Lounge)
- own programming language? (Computer Science and Software Design)
- which language ? (Computer Science and Software Design)
- how long does it take to learn assembler and how difficult is it? (Assembly)
- What programing language is the most complex? (Computer Science and Software Design)
- Making Your Own Programming Language (Java)
- how i can learn c++ (C++)
Other Threads in the C Forum
- Previous Thread: End of file
- Next Thread: queue and stack



Linear Mode