473,651 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tips on gaining proficiency in C

AB
Hi,

Regret the fact that this post may be slightly OT to c.l.c, but I am sure
that people there would give GREAT advice...

I am working as a QA (Automation), which generally involves writing mundane
Perl scripts for automated testing of a C Utility.

Bored with the kind of work I am doing, I would love to learn C Programming
(I have theoretical knowledge, thanks to a Bachelor's in CS), with the
intention of, to start with, learning enough to enable me dabble in systems
programming (Linux/Unix) (and hopefully, a job switch ...quickly :) )

I have a few books

- Design of the Unix OS, Bach
- APUE , (Richard Stevens)
- Network Programming (Richard Stevens)

Which I read now and then.

I have also gone through the C Faqs (All of it), but naturally, since I
haven't actually coded, it is not very useful.

Request suggestions/tips/hints on
- how I could go about getting some proficiency in C/Systems.
- Any suitable *projects* which would be worth doing (I tried sourceforge),
- the order (If there is any .. :) in which the above material is best read.
- (Any pointers to other good books are welcome, too ! )
Thanks a lot !

Abhi
Nov 14 '05 #1
23 1580
In article <BF***********@ news.oracle.com >, AB
<ma************ @yahoo.dot.com> wrote:

I have a few books

- Design of the Unix OS, Bach
- APUE , (Richard Stevens)
- Network Programming (Richard Stevens)

Which I read now and then.


Excellent books all three, but how about adding another classic to the
list: 'The C Programming Language' (2nd ed.) by Kernighan and Ritchie?
Alwyn
Nov 14 '05 #2
AB <ma************ @yahoo.dot.com> wrote in message news:<Fj******* ******@news.ora cle.com>...
Alwyn wrote:
In article <BF***********@ news.oracle.com >, AB
<ma************ @yahoo.dot.com> wrote:
I have a few books

- Design of the Unix OS, Bach
- APUE , (Richard Stevens)
- Network Programming (Richard Stevens)

Which I read now and then.

Excellent books all three, but how about adding another classic to the
list: 'The C Programming Language' (2nd ed.) by Kernighan and Ritchie?


Aah yes ! The Bible .. Shouldn't have missed that one.

Will be rushing to the bookstore immediately.

Thanks
Abhi

Along with TCPL by Kernighan and Ritchie, also pick-up the Answer Book
to the same book by Tondo. completing the exercises of K&R with the
help of the Answer Boor will give you lots of confidence.

tabrez
Nov 14 '05 #3
AB wrote:
Hi,

Regret the fact that this post may be slightly OT to c.l.c, but I am
sure that people there would give GREAT advice...

I am working as a QA (Automation), which generally involves writing
mundane Perl scripts for automated testing of a C Utility.
If you write in perl, learning c will be NO problem. They are very
close. You could "almost" get perl code to compile in c by removing the
$ from scalars. %'s and @'s and regexp will be a different problem.

THere a ton of free libraries available. I have been writing in c and
perl for @ 12 years. I'm switching to C++ for everything except the
simplest of scripts. (long story but perl version is a major problem
here at work)
Bored with the kind of work I am doing, I would love to learn C
Programming (I have theoretical knowledge, thanks to a Bachelor's in
CS), with the intention of, to start with, learning enough to enable me
dabble in systems programming (Linux/Unix) (and hopefully, a job switch
...quickly :) )

I have a few books

- Design of the Unix OS, Bach
- APUE , (Richard Stevens)
- Network Programming (Richard Stevens)

Which I read now and then.

I have also gone through the C Faqs (All of it), but naturally, since I
haven't actually coded, it is not very useful.

Request suggestions/tips/hints on
- how I could go about getting some proficiency in C/Systems.
- Any suitable *projects* which would be worth doing (I tried
sourceforge), - the order (If there is any .. :) in which the above
material is best read.
- (Any pointers to other good books are welcome, too ! )
Thanks a lot !

Abhi

--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, b-******@ti.com
Nov 14 '05 #4

"AB" <ma************ @yahoo.dot.com> wrote

(I have theoretical knowledge, thanks to a Bachelor's in CS), with the
intention of, to start with, learning enough to enable me dabble in systems programming (Linux/Unix) (and hopefully, a job switch ...quickly :) )

If you have a degree in computer science then learning a new language
shouldn't be a problem. Simply pick up a primer and go.
To learn all the minutae of the standard is very difficult, but you don't
need this, just as you don't need a degree in linguistics to speak English
competently (though you might use a should for a would occasionally).
Nov 14 '05 #5
In article <42************ **************@ posting.google. com>, tabrez19
_i@rediffmail.c om says...

Along with TCPL by Kernighan and Ritchie, also pick-up the Answer Book
to the same book by Tondo. completing the exercises of K&R with the
help of the Answer Boor will give you lots of confidence.


Technically this one isn't necessary, as web sites with answers to the
book's exercises are available on the web, but not all are authoritative.
If the OP is trying to save money, that one could be omitted. More to
his original posts, enquiries to c.l.c about troubles with K&R exercise
problems are never considered OT there.

--
Randy Howard (To reply, remove FOOBAR)
Nov 14 '05 #6
In article <BF***********@ news.oracle.com >, ma************@ yahoo.dot.com
says...
Request suggestions/tips/hints on
- how I could go about getting some proficiency in C/Systems.
You have a lot of good answers so far, mostly consisting of "practice"
and repeat. That is good advice, it's really the only way until
someone figures out to make a potion which can be injected in the
arm to short-circuit the "experience " requirement.

Since you are working in QA and want to get into development (that
is a relatively common career path btw), you might consider asking
one of the people currently writing code for which you are doing
QA work to let you look at the source after you get some of the
"rust" knocked off from the books you plan to study. Read it,
understand it, compile it, etc. You might even find some good bugs
to make the boss happy (and the programmer less so) during the
process. Since the code represents a project for which you are
familiar, provided it is not overly complicated (the use of "utility"
in your description implies that it is not), it should make for a
decent way to get your feet wet with code that is already up and
running.
- Any suitable *projects* which would be worth doing (I tried sourceforge),
Sourceforge has some very good open source projects available, it also a
very large number of terrible ones, or ones that somebody thought would be
a good idea and never completed (or even started). It's a shame it does
not seem to get pruned out over time, but I digress.

One option is to google the web for C programming course homework assignments
once you have mastered the exercises in K&R. The other is to simply think
up programs that would be handy to have and implement them.
- (Any pointers to other good books are welcome, too ! )


C Traps and Pitfalls by Koenig is brief, but full of useful information in
a short space. The c.l.c FAQ is of course a requirement, but hopefully
you are already planning on reading it in total (not just looking for answers)
as well.

--
Randy Howard (To reply, remove FOOBAR)
"At the core of liberalism is the spoiled child - miserable,
as all spoiled children are, unsatisfied, demanding, ill-
disciplined, despotic and useless. Liberalism is a philosophy
of sniveling brats." -- P. J. O'Rourke
Nov 14 '05 #7

In article <41************ **@ti.com>, "Billy N. Patton" <b-******@ti.com> writes:
If you write in perl, learning c will be NO problem. They are very
close.
This must be the largest value for "very close" ever recorded.

Perl is an object-oriented high-level scripting language. C is
none of these.

Perl has built-in support for threading, embedded documentation, hash
tables, lists, operator contexts (scalar and list), two forms of
scope (lexical and dynamic), labelled flow control, alternative forms
of "if" statements (unless and elsif), modifier statements (where
body preceeds flow control), computed goto, non-local goto (goto
&name), regular expression pattern matching, and lambdas (run-time
anonymous subroutines). None of those are in C.

Perl has scads of special variables and operators which are not in
C, particularly for string manipulation.

Perl has two different string types, one with some C-like escape
sequences plus various ones not in C, the other without them. It
permits newlines in string constants. It has another entire quoting
mechanism which is completely foreign to C. Perl has a syntax for
numeric literals which is not in C (using the underscore character).

Perl has tons of standard modules which in effect give it a standard
"library" that's far larger and more ambitious than the C standard
library.
You could "almost" get perl code to compile in c by removing the
$ from scalars.


This is only true of the most trivial and non-idiomatic Perl code.
I've never seen published Perl code that did anything useful that
was even close to C.

Perl adopted some of its operators from C (actually, Larry Wall
likely adopted them from the more popular Unix shells, which adopted
them from C), but it's really very little like C.

--
Michael Wojcik mi************@ microfocus.com

Auden often writes like Disney. Like Disney, he knows the shape of beasts --
(& incidently he, too, might have a company of artists producing his lines) --
unlike Lawrence, he does not know what shapes or motivates these beasts.
-- Dylan Thomas
Nov 14 '05 #8
Michael wrote:
) Perl is an object-oriented high-level scripting language. C is
) none of these.
)
) <...>
)
) Perl adopted some of its operators from C (actually, Larry Wall
) likely adopted them from the more popular Unix shells, which adopted
) them from C), but it's really very little like C.

Well, one could claim that most C code would run in perl with very little
modification. One could also claim that for most shell scripts, most awk
scripts, most sed scripts, and probably several other ways of programming.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
Nov 14 '05 #9
AB
Randy Howard wrote:
In article <BF***********@ news.oracle.com >, ma************@ yahoo.dot.com
says...
Request suggestions/tips/hints on
- how I could go about getting some proficiency in C/Systems.

You have a lot of good answers so far, mostly consisting of "practice"
and repeat. That is good advice, it's really the only way until
someone figures out to make a potion which can be injected in the
arm to short-circuit the "experience " requirement.


<OT>
a-la Matrix ... :)
</OT>
Since you are working in QA and want to get into development (that
is a relatively common career path btw), you might consider asking
one of the people currently writing code for which you are doing
QA work to let you look at the source after you get some of the
"rust" knocked off from the books you plan to study. Read it,
understand it, compile it, etc. You might even find some good bugs
to make the boss happy (and the programmer less so) during the
process. Since the code represents a project for which you are
familiar, provided it is not overly complicated (the use of "utility"
in your description implies that it is not), it should make for a
decent way to get your feet wet with code that is already up and
running.

Thanks for the advice! My usage of the term "utility" is downright
misleading. It is more of a major project with 10+ full time developers.
- Any suitable *projects* which would be worth doing (I tried sourceforge),

Sourceforge has some very good open source projects available, it also a
very large number of terrible ones, or ones that somebody thought would be
a good idea and never completed (or even started). It's a shame it does
not seem to get pruned out over time, but I digress.

One option is to google the web for C programming course homework assignments
once you have mastered the exercises in K&R. The other is to simply think
up programs that would be handy to have and implement them.

- (Any pointers to other good books are welcome, too ! )

C Traps and Pitfalls by Koenig is brief, but full of useful information in
a short space. The c.l.c FAQ is of course a requirement, but hopefully
you are already planning on reading it in total (not just looking for answers)
as well.


I already have read the C FAQs end to end, but most of it passed through
due to the fact that I did not actually write code when reading.

Thanks to everyone for their tips and suggestions !

Regards
Abhi
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

175
11353
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I think is PostgreSQL would have less USP's (Uniqe Selling Points
81
4420
by: Don Kim | last post by:
I've been looking for a new IT position, and so far, the majority of work with respect to the Windows platform is C#/.Net, with some vb.net requests every so often. Even many of the C++/MFC/ATL position are ones in which the companies are looking to migrate this to C# and .Net. I have NOT even seen one position requesting C++/CLI, let alone any recruiters who have even heard of it! I can understand those companies looking to create new...
3
2532
by: Kent Johnson | last post by:
I recently helped create an on-line Python proficiency test. The publisher of the test is looking for beta testers to try the test and give feedback. If you are interested, here is an announcement from the publisher: Kent
14
2068
by: ccdetail | last post by:
http://www.tiobe.com/index.htm?tiobe_index Python is the 7th most commonly used language, up from 8th. The only one gaining ground besides VB in the top 10. We're glad, our app is written in python. It's free at http://pnk.com and it is a web timesheet for project accounting
40
18090
by: Chandresh | last post by:
Hi All, I am a graduate student in EE. I have a question that might seem unusual but in my opinion it is interesting and I request all experts to reply. Being a grad student, I came along many programming languages like Assembly, C, C++, VHDL, Matlab, Perl etc. and I dont remember how I learned them. I am more comfortable with Assembly programming than others. The question is how do you measure proficiency in C and C++ ? It is important...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.