473,890 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why do you like C more than other programming languages?

There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?

I like C because, comparatively, it is small, efficient, and able to
handle large and complex tasks.

I could not understand why people are using and talking about other
programming languages.
Jul 8 '08 #1
151 8167
is*********@gma il.com wrote:
There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them.
Then you are probably prejudiced. Each language has certain merits and
demerits. You must try not to approach other languages from a C point
of view and vice versa. You will likely end up judging them unfairly or
inappropriately .
Is it because C was my first programming language?
No. It's probably because you are, despite what you might tell yourself,
probably looking to criticise.
I like C because, comparatively, it is small, efficient, and able to
handle large and complex tasks.

I could not understand why people are using and talking about other
programming languages.
Because some types of programming are made more efficient by languages
specifically meant for them. C is a general purpose language and while
it can theoretically be programmed to do any computation possible on a
Turing machine, many tasks are rendered easier to accomplish with
specific languages. You will appreciate this if you attempt widely
varied programming tasks.

Jul 8 '08 #2
In article <ed************ *************** *******@y38g200 0hsy.googlegrou ps.com>,
<is*********@gm ail.comwrote:
>There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?
>I could not understand why people are using and talking about other
programming languages.
One uses the best tool for the task at hand.

At work, these days I mostly use two programming languages,
MATLAB and Maple.

MATLAB has been designed to provide interactive prototyping of a mix of
array operations and graphics; it is suitable for the needs of my major
task because that major task involves R&D of a package for visualizing
the results of performing various mathematical operations upon data
sets. Formal design is not especially practical in our environment,
as we change our mind several times a day about what we're trying to do,
as our experiences or further thoughts or additional papers tell us
more about what does or does not work, so a prototyping language is
appropriate for the task. When we've figured out what we want done
and how it should be done, a team will take it over and re-write it
in a structured language such as C or C++.

Maple I use to compute symbolic formulae. It has an extensive
library of symbolic manipulation routines; it would be completely
impractical for us to use C to write routines to do complicated
symbolic integration. No point in re-inventing the wheel!
I don't use Maple for any kind of hard-core numeric evaluation
of data: I use it to figure out good ways to express formulae.
For example, for solving simultaneous non-linear equations
and then finding a compact form for expressing the parametric
form of the intersection.

--
"Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us." -- Ecclesiastes
Jul 8 '08 #3
On Tue, 8 Jul 2008 03:31:41 +0000 (UTC), Walter Roberson posted:
In article <ed************ *************** *******@y38g200 0hsy.googlegrou ps.com>,
<is*********@gm ail.comwrote:
>>There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?
>>I could not understand why people are using and talking about other
programming languages.

One uses the best tool for the task at hand.

At work, these days I mostly use two programming languages,
MATLAB and Maple.

MATLAB has been designed to provide interactive prototyping of a mix of
array operations and graphics; it is suitable for the needs of my major
task because that major task involves R&D of a package for visualizing
the results of performing various mathematical operations upon data
sets. Formal design is not especially practical in our environment,
as we change our mind several times a day about what we're trying to do,
as our experiences or further thoughts or additional papers tell us
more about what does or does not work, so a prototyping language is
appropriate for the task. When we've figured out what we want done
and how it should be done, a team will take it over and re-write it
in a structured language such as C or C++.

Maple I use to compute symbolic formulae. It has an extensive
library of symbolic manipulation routines; it would be completely
impractical for us to use C to write routines to do complicated
symbolic integration. No point in re-inventing the wheel!
I don't use Maple for any kind of hard-core numeric evaluation
of data: I use it to figure out good ways to express formulae.
For example, for solving simultaneous non-linear equations
and then finding a compact form for expressing the parametric
form of the intersection.
I thought Walter might express an affinity to perl, which I've seen him
post when asked a question that needed a language appropriate to perl's
purview.

You never really can get away from C, try as you will. I have affairs with
syntaxes but find the influence of C is always right under the hood. In my
syntax of choice, fortran, they defined an ISO_C_BINDING last standard
around. It's public comments now for the new standard, so it's getting a
little thick there.
--
Democracy is the art and science of running the circus from the monkey
cage.
H. L. Mencken
Jul 8 '08 #4

<is*********@gm ail.comwrote in message
news:ed******** *************** ***********@y38 g2000hsy.google groups.com...
There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?

I like C because, comparatively, it is small, efficient, and able to
handle large and complex tasks.

I could not understand why people are using and talking about other
programming languages.
I think on any low-level tasks its by far the best choice and in many cases
the only real alternative to assembly.

As for high-end PC software, I would probably say no. Try programming even a
simple windows API ap and you will see why, 1000 lines of code just to get
one window to appear.
Jul 8 '08 #5
Dand wrote:
<is*********@gm ail.comwrote in message
news:ed******** *************** ***********@y38 g2000hsy.google groups.com...
>There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?

I like C because, comparatively, it is small, efficient, and able to
handle large and complex tasks.

I could not understand why people are using and talking about other
programming languages.

I think on any low-level tasks its by far the best choice and in many cases
the only real alternative to assembly.

As for high-end PC software, I would probably say no. Try programming even a
simple windows API ap and you will see why, 1000 lines of code just to get
one window to appear.


This is not true.

You can use the windows API in C. Many compilers under windows
will generate a windows skeleton for you. lcc-win, for instance
needs 2-3 clicks in a "wizard" and you get all the basic framework
written for you.

The advantage of using the windows API is that you are NOT tied to
a specific library and you get the advantage of using and reusing
the same code in all versions of windows.

I started writing the IDE of lcc-win under windows 16 bits. It was
ported to 32 bits, then to 64 bits with much less effort than it
would have been if I was dependent on a third party library.

Take MFC for instance. The last version of it dated from
1998. Recently (some months ago) Microsoft decided to bring a new
update, the first since 1998. If you program using MFC you
would have been forced to use the API anyway since the library
wasn't updated.

Other libraries like Borland's or the hundreds of libraries that
were developed have all disappeared. Programming in C with the
raw API is a guarantee that your code will survive.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Jul 8 '08 #6
Dand said:

<snip>
Try programming
even a simple windows API ap and you will see why, 1000 lines of code
just to get one window to appear.
You are exaggerating by a very, very, very great margin. To get one window
to appear, you need only call CreateWindow (or, if it is already created,
ShowWindow) - one line of code. If it is the *first* window of its type to
appear, then you must first set up an appropriate window class (not the OO
kind) - i.e. define and populate a reasonably small struct - and then call
a function to register the class.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jul 8 '08 #7
is*********@gma il.com said:
There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?
There are many colours around: Red, PURPLE, GREY, and so on. I tried to
like Red and GREY, but ended up criticising them. Is it because I've
always been very fond of Green?
I like C because, comparatively, it is small, efficient, and able to
handle large and complex tasks.
I like C because it's easy, which in turn means I can write stuff in C
pretty quickly that would take me longer in some other language.
I could not understand why people are using and talking about other
programming languages.
Cultural diversity is a Good Thing.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jul 8 '08 #8

<is*********@gm ail.comwrote in message
news:ed******** *************** ***********@y38 g2000hsy.google groups.com...
There are many languages around: C++, JAVA, PASCAL, and so on. I
tried to learn C++ and JAVA, but ended up criticizing them. Is it
because C was my first programming language?

I like C because, comparatively, it is small,
C is deceptively small. It's so small that some ten years on hardly anyone
has managed to create a full compiler for the latest standard... and some
compilers have lists of options that are bigger than your entire
application!
>efficient
It's not bad, but when I needed speed I had to use asm code.
>, and able to handle large and complex tasks.
Yeah, it's able to.

I think it wasn't for it's #define statement to program your way of trouble,
C's usefulness would be seriously diminished.

In fact #define may well be the most important feature in C. (Although,
#define may also have hindered C's normal development as a language:
everytime someone proposes a genuine improvement, someone else will come up
with an ugly #hack, sorry, #define, macro to do the same job nearly, but not
quite, as well.)

--
Bartc
Jul 8 '08 #9
In article <1r************ *************** **@40tude.net>,
Ron Ford <wa********@net zero.netwrote:
>On Tue, 8 Jul 2008 03:31:41 +0000 (UTC), Walter Roberson posted:
>At work, these days I mostly use two programming languages,
MATLAB and Maple.
>I thought Walter might express an affinity to perl, which I've seen him
post when asked a question that needed a language appropriate to perl's
purview.
Yes, I use perl when I have something perl-ish to do. However,
my job duties changed a few years ago, from systems work to R&D,
so it is now far less common that perl is the right tool for
what I am doing these days; it was a good tool when I needed to do
practical text extraction and reporting such as using SNMP probes
to detect whether someone had illicitly moved a device to another port
in our network.
--
"It is surprising what a man can do when he has to, and how
little most men will do when they don't have to."
-- Walter Linn
Jul 8 '08 #10

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

Similar topics

73
8122
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities as a standard portable part of the core language, the LISP package, and the java.lang package, respectively. Both have big integers, although only LISP has rationals as far as I can tell. Because CL supports keyword arguments, it has a wider range...
220
19273
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
5
2932
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented programming?
37
2922
by: seberino | last post by:
I've been reading the beloved Paul Graham's "Hackers and Painters". He claims he developed a web app at light speed using Lisp and lots of macros. It got me curious if Lisp is inherently faster to develop complex apps in. It would seem if you could create your own language in Lisp using macros that that would be quite an advantage.... I realize that Python has operator overloading and OOP so I'm not sure.
66
3757
by: Mitchell S. Honnert | last post by:
In some recent posts, I've seen people who seem to be waxing nostalgic with respect to the "ease of use" of Visual Basic 6. I can't quite put my finger on it, but they seem to be implying that VB6 was simpler to use than VB.NET, that it was somehow easier to write programs in VB6 than in VB.NET. I have to admit I'm astonished by this attitude. I can't see any rationality to the idea that, on the whole, VB6 is easier than VB.NET. I...
109
4639
by: sonugeetha | last post by:
Hi, Please help me in this regard... All the kernel level programs are written in C... (i.e: Open Source LINUX)... Why are they not using C++... I personally feel that C++ is more easy to code than C... When i searched in our encyclopedia (i.e Google), i came up with several answers, telling "C is much faster than C++ and most kernal prgms uses only C" ... But why is it so...? Why they use C for these OS based programs.. Please Help me...
14
3307
by: deko | last post by:
For building Windows desktop apps, the clear favorite is C#. But my clients can't afford to buy Microsoft products. So I need to develop software for Linux users and web applications. In the open source world, what is the programmer's language of choice? Judging by the number of members in each of these http://www.google.com/Top/Computers/Programming/Languages/Open_Source/ user groups, it looks like the top 3 open source languages...
39
1881
by: =?Utf-8?B?U25laGFs?= | last post by:
Why do software industries go for C# than VB.Net ? Wats the exact difference... Which can be the best option..
13
2017
by: Rosario | last post by:
do you like the "GetLine_m" function i have written today? How many errors do you see? i have try only the option for to load the all file in a string not the option to load a line "\n" ended so it should be full of errors #define P printf
0
9815
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
11215
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
10802
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10908
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,...
0
9618
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...
0
7160
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
5835
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
6035
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3267
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.