473,756 Members | 4,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C programming Newbee

Hi ALL,

I am new to C and programming . I need suggestions for the IDE to be
used as a begginer and should I start on Windows or Linux ??

I am also looking for resources for C programming on Internet with
examples on each concept.

I appreciate if any one can help me in this regard.

Kanthi Kiran.

Nov 14 '05
26 2260
Hi All,

Thank You all for your suggestions. I am sorry to say that this post
has became a debate rather than helping me out to make decision.

As a systems administrator I am aiming to learn programming which would
help to write programs or scripts to make my work simpler, rather than
becoming a C programmer or Perl programmer i want to learn programming
so that i should be able to make switch to new programming language
fast or with not much struggle.

Look i am looking to learn good programming rather than any specific
programming language, as said earlier in this post it would be better
to start of with some thing i will use in daily life, in this case
what would be best Language for Systems Administrator( irrespective of
OS).

Thank you once again.

Kanthi

Nov 14 '05 #21

"Kanthi Kiran Narisetti" <Te********@gma il.com> wrote
Thank You all for your suggestions. I am sorry to say that this post
has became a debate rather than helping me out to make decision.

The problem is, there is no consensus.

I learnt BASIC at school in the 8-bit microcomputer days. Computing was a
craze and pretty soon many of us were doing things way beyond what was
considered within a schoolchild's abilities.
I got a ZX81, a copy of Toni Baker's "Machine Code on your ZX81" and never
looked back.

However other people who are perfectly good maybe even better programmers
than me learnt in totally different ways, for instance by learning formal
methods, or through scripting languages.

The other factor is psychological. In the 1980s, a schoolchild could write a
game on a microcomputer that bore comparison with commercial products. Now
it is no longer possible to knock up the next rival to Doom in your spare
time. So the motivation to mess about is less. However a schoolchild can
maybe design a perfectly competent website with javascript and stuff.
Nov 14 '05 #22

Kanthi Kiran Narisetti wrote:
Hi All,

Thank You all for your suggestions. I am sorry to say that this post
has became a debate rather than helping me out to make decision.

As a systems administrator I am aiming to learn programming which would help to write programs or scripts to make my work simpler, rather than becoming a C programmer or Perl programmer i want to learn programming so that i should be able to make switch to new programming language
fast or with not much struggle.

Look i am looking to learn good programming rather than any specific
programming language, as said earlier in this post it would be better
to start of with some thing i will use in daily life, in this case
what would be best Language for Systems Administrator( irrespective of OS).

Thank you once again.

Kanthi

Debates aren't necessarily bad, if you want to hear more than one side
of an issue.
"make my work simpler"

In that case, definitely whatever shell / batch / Job Control
language your system supports, first. Then it depends on what
specific administrative tasks you want to do. As well as the other
considerations we've mentioned, of course. Specifically, "scripting"
and "interprete d" tend to go well with this goal.

"learn good programming" and "be able to make switch to new
programming language" do go together, but if they coincide with
quickly or easily making your work simpler, it'll just be luck.
Particularly, "scripting" tends not to match these requirements,
because scripting tools tend to (1) be optimized for small, ad-hoc
programs vs. well-designed ones, and (2) favor making specific
administration-type tasks (sorting, report generation, I/O, OS
interface) easier at the expense of readability, generality and/or
rigor.

As a compromise, you might try to find a scripting tool like perhaps
csh, which "resembles" a full-scale language -- C, in this case.
That may ease the transition. Or it might just confuse you -- people
differ. I've been told my wife's grandmother took courses in
multiple foreign languages simultaneously -- in her 60's. I think my
brain would implode if I tried that...
One last observation: if you want to be able to learn new languages
(computer languages, I mean) quickly, it's very helpful to have been
exposed to several widely-varying architectures. I believe the
trendy word is "paradigms" . In this respect, FORTRAN, ALGOL, PL/1,
BASIC, C, Pascal and others are much more alike than they are
different. But COBOL or RPG will teach you different things than
APL, or Forth, or Smalltalk, or Prolog. A memory-oriented CISC CPU
will teach you different things than a register-oriented RISC CPU. A
microcontroller vs. a mainframe, etc. If you only experience one
kind of thing, it gets "embedded" in your mind as _the_ way things
ought to be. (You can find abundant samples of that in "certain"
newsgroups <grin>. See also "holy wars".)

Good luck in whatever path you take.

Nov 14 '05 #23
"Kanthi Kiran Narisetti" <Te********@gma il.com> writes:
Thank You all for your suggestions. I am sorry to say that this post
has became a debate rather than helping me out to make decision.

As a systems administrator I am aiming to learn programming which would
help to write programs or scripts to make my work simpler, rather than
becoming a C programmer or Perl programmer i want to learn programming
so that i should be able to make switch to new programming language
fast or with not much struggle.


<OT>

For Unix/Linux system administration, you definitely need to learn the
Bourne shell (and its descendents, bash and/or ksh). One thing that
will make this easier is that it's both a programming language and the
way you interact with the system. (Personally, I learned csh first,
and I still use its relative tcsh, which is ok for interactive use but
not so great for programming; if I were starting over, I might do
things differently.)

You also need to understand "make", used for building software.

I find Perl to be a good tool for Unix administrative work; Python is
probably cleaner and similarly powerful, but you'll almost certainly
have to deal with other people's Perl code anyway so you should learn
the language. The book "Learning Perl" is a good tutorial; there's
also a book called "Perl for System Administration" . (O'Reilly
publishes a lot of excellent books and surprisingly few mediocre
ones.)

</OT>

You should definitely learn C eventually (after all, that's what the
OS and most software that runs under it are written in). Be sure to
keep in mind the difference between what's defined by the language
standard itself and what's defined by extensions such as POSIX.

Most of these things work under Windows as well, but Windows system
administration will require a different set of skills in some areas; I
can't help with the details.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #24
Kanthi Kiran Narisetti wrote:

Hi Erik & Malcom,

Can you clarify me as Systems Administrator(L inux & WIndows) which
would be the best choice for begginers programming language C or Perl
or Python .


Since you are targeting Linux and windows, I would say Perl and Python
over C for the following reasons:

- GUIs in Perl and Python are far easier than GUIs in C.
- Its far easier to write cross platform code in Perl and
Python than C.

I don't want to start yet another Perl V Python flameware, but I would
also suggest Python over Perl because Python is far more readable
than Perl and far better for beginning programmers.

There is also a very beginner friendly Python newsgroup while the Perl
group is far less forgiving of beginner questions.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo no****@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
When aiming for the common denominator, be prepared for the
occasional division by zero.
Nov 14 '05 #25
Kanthi

There's no straight answer, because everyone has their own opinion.
Personally, I say you should learn C, because once you learn C, you can
pick up other languages in no time, whereas I can't say the same the
other way around. Scripting languages in general are bad for learning
good programming.

While Perl is pretty handy for sys admin, there's really no reason you
can't use C to do the same job, so actually you can in fact use it a
lot in your daily life. A lot of times I use a combination of C, shell
scripts, and (not so much) Perl together to accomplish a task,
whichever makes things easier.

Nov 14 '05 #26
In article <11************ **********@f14g 2000cwb.googleg roups.com>,
pepsikolanut <pe**********@g mail.com> wrote:
:While Perl is pretty handy for sys admin, there's really no reason you
:can't use C to do the same job, so actually you can in fact use it a
:lot in your daily life.

In practice, you have to be experienced with C in order to use non-trivial
perl CPAN (pre-written easily-downloadable library) modules. A number of
CPAN modules use C underpinings for speed reasons, or to do things that
perl cannot do itself. That C code isn't always particularily portable. :(

Also, when you install perl, it grots through your system include files
to turn some of them into [useful] perl include files, such as is done
local system definitions of permission bits and what-not.
Unfortunately, those transformation routines are not entirely adept at
working with conditional compilation, such as for headers that might be
included by both C and C++ routines, or headers that might make use of
pragmas, or headers that test which standards one has available (which
C, which POSIX 1003.1 edition, which XPG4, etc.) The result can be that
even what would seem to be simple matters such as extracting the exit
status of a process (i.e., <wait.h>) can blow up in perl :(
[Historically it has not been unusual for Unix systems to define
the wait() result in terms of a union of an integer type and a
structure of bitfields; perl doesn't always pick up on that...]
--
Studies show that the average reader ignores 106% of all statistics
they see in .signatures.
Nov 14 '05 #27

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

Similar topics

3
1928
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display images.... If i right click on the image the whole path is displayed on this way: http://www.test.com/Dir1/Dir2/Dir3/web/firstDir/secondDir/images/image.gif Should i define global variables(?) or how to solve this....
2
1661
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a .NET app to work? keep in mind I am a newbee :-) !! thanks --
3
1316
by: alpha | last post by:
Hello, i was hoping someone in this group can give me a pointer in the right direction. I have no knowledge whatsoever about programming but am keen to learn. I want to learn a language which i can perhaps earn a few pennys with in my spare time. I am not sure if the latest languages require knowledge of the older languages?.....can anyone give me a good starting reference?.....i of course want to learn the latest language/s so that i...
4
1781
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ************************************************* Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer) Dim YOE1 As Double
2
1874
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
9
341
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg, Eric
0
9930
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...
0
8569
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7116
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
6410
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
4996
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...
0
5180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3676
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
2
3185
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2542
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.