You are not logged in.

#26 2009-04-11 23:01:25

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: C or C++

pauldonnelly wrote:
Xilon wrote:

Static typing is better than dynamic typing. If a language has static typing you can still do dynamic typing (in most cases), but not the other way around.

So what? Dynamically typed languages let me do dynamic typing in all cases, without hacking around the language. Therefore they are better.

Quoting myself. yikes

I should add that I'm being facetious here. I don't really think that dynamic languages are better for everyone, but they are better for me, for good reasons.

Offline

#27 2009-04-13 06:22:45

aport
Member
From: San Diego
Registered: 2008-02-20
Posts: 99

Re: C or C++

C is simple and fast.

Objects are for chumps. It's all about data structures.

Offline

#28 2009-04-13 07:43:24

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: C or C++

wuischke wrote:

(I'm lazy, as all programmers should be.)

If that were the case we'd still be using 2.4.* kernels tongue
I vote C all the way

Last edited by Wra!th (2009-04-13 07:43:45)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#29 2009-04-13 08:22:45

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: C or C++

Lazy in this sense doesn't mean not wanting to work, but working efficiently by avoiding unnecessary work if possible. This includes for instance garbage collection (and consequently people improving the quality of GC), languages with a concise, logical syntax and using the right tool for the right job.

I wrote a verb conjugation engine (i.e. an interpreter for a conjugation language) including a web server in C - it was properly abstracted, used nice data structures and included multi-platform support. And there are even bigger projects out there using C, no doubt it's possible to create big and good applications in C.

But: I would never chose C for a bigger project I start from scratch. I have to repeat myself very often, I have to think about memory management instead of working on solving the actual problem and I have countless possibilities to create obscure problems. It takes just too much time to get all these things right - I could have solved the same problem in a language like Python in a fraction of the time and when I encounter bad performance I could still have written the critical parts in C and the speed would be similar in the end.

Offline

#30 2009-04-13 18:25:16

delor
Member
From: Poland
Registered: 2008-02-02
Posts: 62
Website

Re: C or C++

Choose right tool for the job.

Offline

#31 2009-04-22 06:27:17

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: C or C++

pauldonnelly wrote:

You need to accept that a preference for static typing vs. dynamic is a dispositional thing rather than an absolute better/worse relation. Some people have a massive hardon for compiler-checked type-correctness, and that's fine, but not everyone enjoys bondage play.

Indeed. When I said it's better, I didn't mean that it's a better language overall and everyone should use statically typed languages. I meant that a statically typed language can be flexible enough to allow for dynamic typing, and therefor provide the best of both worlds. It's funny though, how this flexibility is rarely used in such languages. Even though you can dynamically type, the code is usually statically typed anyway.

aport wrote:

C is simple and fast.

Objects are for chumps. It's all about data structures.

Funny. Objects are just data structures with associated functions.

Last edited by Xilon (2009-04-22 06:29:10)

Offline

#32 2009-04-22 07:09:00

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: C or C++

I don't get the whole C or C++. I think they both have their uses, and they are both quite similar.

I never bothered with replying to the original post in this thread since the answer would be the same as: http://bbs.archlinux.org/viewtopic.php? … 68#p509168


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#33 2009-04-22 13:25:44

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: C or C++

OK, this is getting silly - we have two threads with the exact same name with very similar content.  I wish I had a topic-merge function.

Further posts on the subject go here: http://bbs.archlinux.org/viewtopic.php?id=66692

Locked.

Offline

Board footer

Powered by FluxBB