Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,191,157 members, 7,943,191 topics. Date: Sunday, 08 September 2024 at 08:27 AM

Imagine What Linus Torvalds Posted On A Public Newsgroup - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Imagine What Linus Torvalds Posted On A Public Newsgroup (996 Views)

Uganda And Egypt Bag Awards At Microsoft Imagine Global Cup / Bill Gates Invites Students Around The World To Register For Imagine Cup / Pls How Can Configure Linus {red Hat} (2) (3) (4)

(1) (Reply) (Go Down)

Imagine What Linus Torvalds Posted On A Public Newsgroup by Nobody: 7:57pm On Jul 10, 2012
this is coming from the father of linux
kila gbe, ki le ju


From: Linus Torvalds <torvalds <at> linux-foundation.org>
Subject: Re: [RFC] Convert builin-mailinfo.c to use The Better String Library.
Newsgroups: gmane.comp.version-control.git
Date: 2007-09-06 17:50:28 GMT (4 years, 44 weeks and 55 minutes ago)

On Wed, 5 Sep 2007, Dmitry Kakurin wrote:
>
> When I first looked at Git source code two things struck me as odd:
> 1. Pure C as opposed to C++. No idea why. Please don't talk about portability,
> it's BS.

*YOU* are full of bullshit.

C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do *nothing* but keep the C++ programmers out,
that in itself would be a huge reason to use C.

In other words: the choice of C is the only sane choice. I know Miles
Bader jokingly said "to piss you off", but it's actually true. I've come
to the conclusion that any programmer that would prefer the project to be
in C++ over C is likely a programmer that I really *would* prefer to piss
off, so that he doesn't come and screw up any project I'm involved with.

C++ leads to really really bad design choices. You invariably start using
the "nice" library features of the language like STL and Boost and other
total and utter crap, that may "help" you program, but causes:

- infinite amounts of pain when they don't work (and anybody who tells me
that STL and especially Boost are stable and portable is just so full
of BS that it's not even funny)

- inefficient abstracted programming models where two years down the road
you notice that some abstraction wasn't very efficient, but now all
your code depends on all the nice object models around it, and you
cannot fix it without rewriting your app.

In other words, the only way to do good, efficient, and system-level and
portable C++ ends up to limit yourself to all the things that are
basically available in C. And limiting your project to C means that people
don't screw that up, and also means that you get a lot of programmers that
do actually understand low-level issues and don't screw things up with any
idiotic "object model" crap.

So I'm sorry, but for something like git, where efficiency was a primary
objective, the "advantages" of C++ is just a huge mistake. The fact that
we also piss off people who cannot see that is just a big additional
advantage.

If you want a VCS that is written in C++, go play with Monotone. Really.
They use a "real database". They use "nice object-oriented libraries".
They use "nice C++ abstractions". And quite frankly, as a result of all
these design decisions that sound so appealing to some CS people, the end
result is a horrible and unmaintainable mess.

But I'm sure you'd like it more than git.

Linus

source: http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918
Re: Imagine What Linus Torvalds Posted On A Public Newsgroup by lordZOUGA(m): 8:06pm On Jul 10, 2012
this was written 4yrs ago but apart from that... So what?
Re: Imagine What Linus Torvalds Posted On A Public Newsgroup by naijaswag1: 10:13pm On Jul 10, 2012
and so....this guy called linux is one of the living seven wonders of the world.anything he says suffixes.
@OP go and learn C.if you want to understand linux.When a guy like Linux talks about efficiency,you have to pause and listen,period.
Re: Imagine What Linus Torvalds Posted On A Public Newsgroup by ektbear: 12:35am On Jul 11, 2012
Sure. For his particular sorts of applications, low level software like git where performance is paramount, I suppose he prefers C.

But I'd much rather do C++, or even better, Java. Makes coding a lot more pleasant.
Re: Imagine What Linus Torvalds Posted On A Public Newsgroup by Nobody: 10:50am On Jul 11, 2012
lol.. at this part

C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do *nothing* but keep the C++ programmers out,
that in itself would be a huge reason to use C.

(1) (Reply)

Need Help On This Btw Networking &programming Which Of This Is Good For Me / Learning Web Designing And Web Developing Free | What I Did / Java Code For Weather

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.