473,597 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# is a good way to learn c


After working in c# for a year, the only conclusion I can come to is
that I wish I knew c.

All I need is Linux, the gnu c compiler and I can do anything.

Web services are just open sockets hooked up to interfaces.

The Gtk is more than enough gui.

Jul 21 '05
354 15711
On 2005-04-07, Olaf Baeyens <ol**********@s kyscan.be> wrote:
However, since I learned C first, and, while doing so, took great care to
develop pretty good habits in that language, C++ turned out to be a

natural
progression for me.

My first language was assembler and I learned C by looking at the assembler
code generated. This way I could optimize the C code even more. Now in C+ I
still look at the assembly code to see if my functions is fast enough and to
determine how to change it to help the compiler to optimize it even faster.
But I rarely program in assembler these days only to implement MMX.

I did look a C# generated assembler code, and I am not refering to ILASM but
to the real processor dependend assembler code and I am still very suprised
to see how nice the C# code gets converted to the raw processor power code.
It is really near C++ code. Any slowdowns is mostly related to using some
library functions or bad programming. Ofcourse using Interop and using
properties ans stuff, it also slows down, but so would C++ if you use
properties.


Properties don't slow down your code in the simple case:

public int MyProperty
{
get
{
return this.myProperty ;
}
set
{
this.myProperty = value;
}
}

This case is inlined by the compiler - so there is no method call
overhead. And, looking at my code - this is the most common case :)

--
Tom Shelton
Jul 21 '05 #51

Hi Chinese_Pope, Ya writ: << C is the answer and it always will be. >>

And the most recent version of that, according to Microsoft, is C++,
because they're not going the C99 route.

C++ is just as low as C, because cout and the STL are optional.

Jul 21 '05 #52
> P.S. Experienced C coders don't require weeks just to create a button.

I was making it sounding a little bit more dramatic. :-)
I was not referring to the button itself, but about the code behind that
button that should interoperate with the user interface.
E.g. active feed-back like a status bar, progress bar,....

---
http://www.skyscan.be
Jul 21 '05 #53
Olaf Baeyens wrote:
No one can predict the future.
Just wait and see. But at least I would advice you to look at C# otherwise
you risk to be outdated if the market moves in that direction. You don't
learn it overnight.


I thouroughly agree.

I can easily see a 'tipping point' for c# where java will all but be
eradicated.
Jul 21 '05 #54

Hi Olaf_Baeyens, Re: My comment that experienced C coders
don't require weeks just to create a button,

You told me: << I was making it sounding a little bit more dramatic. :-)
I was not referring to the button itself, but about the code behind that
button that should interoperate with the user interface.
E.g. active feed-back like a status bar, progress bar. >>

It takes years to really perfect code,
because testing dwarfs the time it took to bang out the code.

During those years, short-sighted compromises,
like using C#, Java, COM or HTML, can come back to bite you,
....beacuse the C++ guy could sneek up behind you and offer a better product.

Jul 21 '05 #55
> Properties don't slow down your code in the simple case:

The C# way maybe not but if I remember the properties in C++ the methods
must be virtual.

--
http://www.skyscan.be
Jul 21 '05 #56
> First you're all like low-level and stuff, and then you subscribe to a
garbage language like c++

c is the answer and it always will be.

c/unix/linux is the lingua franca of the whole world.


How odd that a lot of people claming that C is the top and linux is the top
tend to use fake names in the posts?
And that people that are more realistic actually are more brave to user
their real names.

--
http://www.skyscan.be
Jul 21 '05 #57
begin virus.scr Olaf Baeyens wrote:
First you're all like low-level and stuff, and then you subscribe to a
garbage language like c++

c is the answer and it always will be.

c/unix/linux is the lingua franca of the whole world.


How odd that a lot of people claming that C is the top and linux is the
top tend to use fake names in the posts?
And that people that are more realistic actually are more brave to user
their real names.


How come that you think that JBailo is actually a linux user?
Jul 21 '05 #58
> Nah, I just wrote the C++ socket library and an XDR packet library
implementation for our group, not to mention a unit test library, an NT
service base class, our audio library, a dictionary XML markup language library, and a library of string, filename, and other odds and ends. All in C++.

It sounds pretty impressive.

Just wondering:
* Did you create eveything from scratch and or did you start with an
existing library and added a few lines?
* Is it actually used, useable and more bug free?
* And if you move to another company, is that code readable so that someone
else can take over and extend it?

---
http://www.skyscan.be
Jul 21 '05 #59
On Thu, 07 Apr 2005 01:18:27 -0700, American Pope
<am***********@ vatican.us> wrote:
Jeff_Relf wrote:
Hi Olaf_Baeyens ( and Linonut ),

Microsoft C++ is really it's latest version of MS_C,
as Microsoft is not supporting the latest C standard, C99.


First you're all like low-level and stuff, and then you subscribe to a
garbage language like c++

c is the answer and it always will be.

c/unix/linux is the lingua franca of the whole world.

all variants as pasty-faced dough languages for corporate pretty boys
who tote around UML diagrams in "architectu ral meetings".

:

Real men program in machine code through binary toggle switches on
front panels.
'C' is for wimps.
Jul 21 '05 #60

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

Similar topics

7
5253
by: tada991 | last post by:
Hello Everyone, I just purchased Visual Studio .Net Architect 2003 and want to know what's a good book for begginers to start with. I know nothing about programming whatsoever, but I do have a desire to learn- as obvious with this purchase. So please let me know where I can start and thanks. Also, what newsgroup should I post my queries to?
29
2997
by: RAY | last post by:
Hi , my boss has asked I sit in on an interview this afternoon and that I create some interview questions on the person's experience. What is C++ used for and why would a company benefit from someone who could use it? I would like you guys/and gals to give me some good questions & the correct answers so I can give this person a good review for my boss.
22
4063
by: Ramzy Darwish | last post by:
Hello, I have a Bachelors in CS and a Masters in Comp. Graphics. In all of my schoolwork, I used C and C++ and thought that I had a pretty good understanding of the language(s). But now, as I really am trying to find work as a C/C++ programmer, I am having trouble on programming interview tests when they start asking about low-level C stuff dealing with memory and binary numbers. Recently, I took a test for a SE position at Intel, which I...
11
2350
by: Sam | last post by:
Hi All I don't know anything about C# and I'm planning to learn the language. Does anyone know any good book out there that explains things well? Any suggestion is greatly appreciated Regards, Sam
59
4964
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at ASP.NET. At first glance, it looks excellent, albeit nothing that couldn't have been done to Classic ASP. I have been through a few tutorials and was impressed with how quickly you can get database info onto a page.
269
1650
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets hooked up to interfaces. The Gtk is more than enough gui.
15
2605
by: Alex L Pavluck | last post by:
I am new to programming other than SAS. I read that C# is a good starting language and I have started to create some simple programs with C# 2005 express edition. Can someone let me know if this is indeed a good learning language and also suggest a good learning text. Thanks, Alex
6
2055
by: Jamiil | last post by:
I am not a programmer by any means, but a dedicated aficionado. I have good understanding of Java and C/C++, and now I would like to learn javascript->ajax, but I don't know where to start. My HTML knowledge is basic, however, with a little bit of an effort I can program a small page. Can anyone recommend a good beginner's book on JavaScript? Please, bear in mind that it is my intention to learn to program server and client side, thus the...
5
1577
by: vinnie | last post by:
i wish to start programming with OOP, but i have no experience: can anyone tell me what book should i buy to learn it? I have a good knowledge of programming, but absolutely zero of OOP. Also, working hard, how long do you think it may need to have a good understanding of it, so i can start programming in that direction? Thanks a lot.
0
7965
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
7885
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
8380
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
8031
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
6686
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
5847
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
5426
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
3923
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2399
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

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.