473,805 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

editor, is C obsolete?, and thank you

1) Thank you. Thanks to this news group in which I read a post
earlier today about making variables static in certain cases, I
believe I avoided future debugging headaches. It reminded me of a
place in my code where I did that. Thank you!

2) Like I mentioned in an earlier post, I program on the hobby level,
but I am working on a project now and so I am coding again, however,
it is like being revived from a deep sleep for me. Put it to you this
way, my login at the cprogramming.co m website is gone, I haven't
logged on for a couple of years. So forgive me if this question
sounds weird or out of place, I am merely out of touch. Is C no longer
a mainstream language? I ask my brother in-law for help sometimes
when I get stuck, but he keeps talking about C++. I've talked to
several co-workers about helping out (a little team work would be
nice), but they talk about visual basic or fortran and look at me
funny when I say I program for Windows in C. I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.

I am reminded of that Austin Powers movie where they revive the main
character from the freezer after many years asleep.

This has no bearing on my project, I am just curious as to my
obsolecense. Is C obsolete?

3) I really like the simple editor "gedit" that comes with Ubuntu
Linux. Is there a version for windows? Okay, I know what you linux
folks are about to say, "run the compiler in wine," Right? I guess I
could do that. Testing my windows program would probably be better
done in windows though. Is there something similar for windows?

Mar 7 '07 #1
25 2343
ko********@yaho o.com said:
Is C no longer a mainstream language?
C remains a mainstream language.
I ask my brother in-law for help sometimes
when I get stuck, but he keeps talking about C++.
Er, so what?
I've talked to
several co-workers about helping out (a little team work would be
nice), but they talk about visual basic or fortran and look at me
funny when I say I program for Windows in C. I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.
What is it about pointers that makes you believe their lack makes a
language "suck"?

<snip>
[...] Is C obsolete?
No.
3) I really like the simple editor "gedit" that comes with Ubuntu
Linux. Is there a version for windows? Okay, I know what you linux
folks are about to say, "run the compiler in wine," Right?
Wrong. We're about to say "ask such questions in a newsgroup where they
are topical".

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 7 '07 #2
ko********@yaho o.com wrote:

<snip>
Is C no longer a mainstream language?
No. It's still used in a wide variety of domains.

<snip>
I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.
Try not to get involved in language wars. Each major language has it's
purpose and applicability and deriding languages other than your
favourite one, makes you appear an emotional person.

<snip>
This has no bearing on my project, I am just curious as to my
obsolecense. Is C obsolete?
Far from it. It's one of the few languages that have survived in
mainstream for multiple decades.
3) I really like the simple editor "gedit" that comes with Ubuntu
Linux. Is there a version for windows? Okay, I know what you linux
folks are about to say, "run the compiler in wine," Right? I guess I
could do that. Testing my windows program would probably be better
done in windows though. Is there something similar for windows?
<OT>

Your plight highlights the result of learning a single-platform
editor. I recommend that you learn either vi, (my preference), or
Emacs. They'll most likely be available on every platform you'll
happen to use.

</OT>

Mar 7 '07 #3
On 6 Mar 2007 23:48:57 -0800, ko********@yaho o.com wrote:

[snip]
>3) I really like the simple editor "gedit" that comes with Ubuntu
Linux. Is there a version for windows? Okay, I know what you linux
folks are about to say, "run the compiler in wine," Right? I guess I
could do that. Testing my windows program would probably be better
done in windows though. Is there something similar for windows?
Yes, and it's free:

http://msdn.microsoft.com/vstudio/express/

BTW, I also like gedit that comes with Ubuntu. The syntax coloring is
great.

--
jay

http://www.ubuntu.com/
Mar 7 '07 #4
funny when I say I program for Windows in C. I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.

What is it about pointers that makes you believe their lack makes a
language "suck"?
Nothing. BS is a slang for lying.

Mar 7 '07 #5
ko********@yaho o.com wrote:
>>funny when I say I program for Windows in C. I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.
What is it about pointers that makes you believe their lack makes a
language "suck"?

Nothing. BS is a slang for lying.
Why not say you want to build your C chops because then you aren't
limited to a single platform or implementation.
Mar 7 '07 #6
<ko********@yah oo.comwrote in message
>
This has no bearing on my project, I am just curious as to my
obsolecense. Is C obsolete?
Good question. It will have a niche in small embedded programs for some time
to come. But will it continue to be used for applications development on
desktop systems and above?

I think it will. It is such a good abstraction of a von Neumann machine
that, if you have any sort of algorithm, a C implementation is natural. With
other languages you fiddle to get the algorithm to work with the rest of the
system. It is also very efficient.
Mar 7 '07 #7
Malcolm McLean skrev:
<ko********@yah oo.comwrote in message
>>
This has no bearing on my project, I am just curious as to my
obsolecense. Is C obsolete?
Good question. It will have a niche in small embedded programs for some
time to come. But will it continue to be used for applications
development on desktop systems and above?

I think it will. It is such a good abstraction of a von Neumann machine
that, if you have any sort of algorithm, a C implementation is natural.
With other languages you fiddle to get the algorithm to work with the
rest of the system.
Example please. I don't see why it would be less natural in some other
procedural language.
It is also very efficient.
(...and quite dangerous.)
August
Mar 7 '07 #8

"August Karlstrom" <fu********@com hem.sewrote in message
>I think it will. It is such a good abstraction of a von Neumann machine
that, if you have any sort of algorithm, a C implementation is natural.
With other languages you fiddle to get the algorithm to work with the
rest of the system.

Example please. I don't see why it would be less natural in some other
procedural language.
Let's try to write an expression parser in Fortran 77.

No recursion. So every function has to be data recursive, and the job is
terrible. If you go to newer Fortrans the parallel compilers won't handle
it.

OK, java.

The obvious C form is

double parse( char *expression, char **err )

In java you throw exceptions to indicate error conditions.
So now we've got a horrible job documenting not only our parser, but also
the exception object it throws. The parse cannot be a function, it has to be
a method of an object. Make it a static method and you've broken the
object-oriented paradigm. Create a "Parser" object and you've got something
artificial.

Then you will find that the internals of the function become very messy. You
need some sort of tokenizer function. The neophyte might be tempted by the
StringTokenizer - in fact it is very hard to get it to do what you want.
Since there are no pointers, the current parse position has to be stored in
an integer, which adds complexity to every token translation routine.

It is possible to write an expression parser in Java, of course, and it is
even possible to make a good job of it. However you need a certain amount of
experience - it's not the language of choice for developing parser
technology in, or for learning how to implement a parser.


Mar 7 '07 #9
On Wed, 7 Mar 2007 10:26:34 -0500, ko********@yaho o.com wrote
(in article <11************ **********@j27g 2000cwj.googleg roups.com>):
>>funny when I say I program for Windows in C. I BS them and tell them
those languages don't have pointers and that if it don't have pointers
it sucks.

What is it about pointers that makes you believe their lack makes a
language "suck"?

Nothing. BS is a slang for lying.
In what language?
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Mar 18 '07 #10

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

Similar topics

17
3533
by: Nick Mudge | last post by:
Hi, I want to do some Web development using HTML, Javascript, PHP and MySQL. Does anybody recommend any good editors to use in this Web development. Something that works well and makes development faster and easier but doesn't take away the power of writing code? Nick
7
4393
by: Mike Kamermans | last post by:
I hope someone can help me, because what I'm going through at the moment trying to edit XML documents is enough to make me want to never edit XML again. I'm looking for an XML editor that has a few features that you'd expect in any editor, except nearly none of them seem to have: 1 - Search and repalce with Regular Expressions. 2 - Search and Replace in an Xpath context. 3 - User specified tag-generation for either on a...
0
1812
by: jbeerni | last post by:
In .NET, you can mark methods and accessors as obsolete by using the directive. I've found some interesting behavior with the directive when used in a class which is referenced as a return type by a web service: Consider the following class: class foo {
4
2737
by: BrianProgrammer | last post by:
I have this code below, that works like a champ, but two lines are continually marked as obsolete. See embeded notes. Private Shared Function TransformHTMLString(ByVal XSLT As String, _ ByVal XHTML As String) _ As String Dim xdoc As Xml.XmlDocument = New Xml.XmlDocument xdoc.LoadXml(XHTML) Dim xsDoc As Xml.XmlDocument = New XmlDocument
2
5045
by: Steve James | last post by:
I am trying to mark an override method in a derived class as obsolete using the ObsoleteAttribute. The compiler, however is not picking up this attribute and is not generating a warning or an error. Sample code is below: If I put the attribute on the static method DoSomething() in the main class, a warning/error is generated by the compiler. If I put the attribute on the virtual instance method DoSomething() of
3
4321
by: Shimon Sim | last post by:
I have control. One of the properties is implemented as StringCollection. I didn't use any Editor attribute for it. During Design time system shows dialog similar to Items in DropDownList but Add button throws an error "Constructor on type System.String not found.". I may understand this message - there are too many contractor and non of them takes string. But how can I fix the problem or may be use the editor similar to Font.Names...
4
1456
by: Phill W. | last post by:
If I have a reusbale (GAC-'registered') assembly that contains two, related classes (imagine a DataSet and DataTable; the former contains instances of the latter, the latter has a reference to its parent .. er .. former). I want to make /both/ of these classes Obsolete, so I added Obsolete attributes to both. When these are only Warnings ... <Obsolete("DO NOT USE", False)>
2
4214
by: Craig HB | last post by:
I have been using the code below to validate an XML document with an XML schema. If the XML is not valid, then the procedure throws an exception. I have upgraded the application using this proc to DotNet 2 and Visual Studio says that I'm using obsolete methods: XmlValidatingReader : should be using XmlReader.Create XmlSchemaCollection : should be using Xml.Schema.XmlSchemaSet Any ideas how I can re-write this proc without using...
3
5931
by: postrishi | last post by:
Hello Everybody , I am a new user. I am currently using Turbo C++ 3.0 editor in my engg.Can you tell me or post me a ebook on turbo c++ and NOT on c or C++.MInd it I want a book on TURBO C++ editor and not on programming language C/C++' Moreover can you tell me that how do i give dos based commands use a c program.
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10609
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
10105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7646
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
6876
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
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4323
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
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
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.