?

Log in

No account? Create an account
C++ - brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

C++ [Apr. 29th, 2008|11:37 pm]
Brad Fitzpatrick
[Tags|, ]

I've been writing a bunch of C++ lately, both inside and outside of work. Really, once you learn what the gcc error messages actually mean, then it's smooth sailing. My mean time between bugging evan continues to drop ... a little.

I regularly bounce now between C++, Java, JavaScript, Python, Perl, and Sawzall. I wish I could say something more profound than that they all suck in their own special ways. (I suppose the cheery angle is that they're all beautiful snowflakes too, but...)

Actually JavaScript is almost the least annoying, from a language perspective. JavaScript with the whole DOM and browser crap is a whole different story ... but embedded JavaScript is great.

I wrote something in plain C the other day and besides being kinda nostalgically quaint, it kinda blew. I eagerly await rewriting it in C++.

Back to C++ fun....
LinkReply

Comments:
[User Picture]From: substitute
2008-04-30 07:12 am (UTC)
That Google Code thing looks sweet, but they better change its working name before Milwaukee Tool gets all up in their face!
(Reply) (Thread)
[User Picture]From: brad
2008-04-30 07:46 am (UTC)
I'm confused. What Google Code thing?
(Reply) (Parent) (Thread)
[User Picture]From: substitute
2008-04-30 07:53 am (UTC)
Sorry, my error. Google Labs, the Sawzall thing you linked to above.
(Reply) (Parent) (Thread)
[User Picture]From: tupshin
2008-04-30 09:56 am (UTC)
He means sawzall, since it's a trademark of Milwaukee Tool Company:
http://en.wikipedia.org/wiki/Reciprocating_saw
(Reply) (Parent) (Thread)
[User Picture]From: robbat2
2008-04-30 10:11 am (UTC)
Sawzall.
(Reply) (Parent) (Thread)
From: energetik
2008-04-30 08:32 am (UTC)
How about C#? Does it suck in it's own way?
(Reply) (Thread)
[User Picture]From: brad
2008-04-30 02:15 pm (UTC)
Java and C# are basically identical, so yes: it sucks in its own way as well.

If you disagree, I'm curious which parts of C# solve all your complaints from Java.

Admittedly I haven't used C# in a few years, and I know it's gotten some new stuff.
(Reply) (Parent) (Thread)
(Deleted comment)
[User Picture]From: mart
2008-04-30 05:09 pm (UTC)

C# pulled ahead of Java in version 2, but many of the things that made C# 2.0 "better" than Java have been borrowed back into Java now in some form. The main leftover annoyance is that C# has lexical closures (implemented by generating a hidden class behind the scenes to represent the scope) while for Java it remains just a prototype. (Unless I've missed some development in that area.) There was a Google Tech Talk on the subject of adding closures to Java.

Java's inner classes get you some of the way there, but it still feels clunky to someone who's used to languages that go the whole hog.

(Reply) (Parent) (Thread)
[User Picture]From: mart
2008-04-30 05:11 pm (UTC)

(Though now I re-read your comment, I should clarify that I don't think that C# closures "solve all of my problems with Java". C# has its own share of oddities.)

(Reply) (Parent) (Thread)
[User Picture]From: nothings
2008-04-30 11:05 am (UTC)
Plain C isn't so bad if you just have decent libraries--C++ has a ton of stuff from STL, but even C could have a lot of similar non-templated facilities and still be useful. Unfortunately, standardization efforts didn't go there.

But, as I posted a few months back:
http://brad.livejournal.com/2354680.html?thread=14396408#t14396408
(Reply) (Thread)
[User Picture]From: ijon
2008-04-30 11:09 am (UTC)
You're actually eager to take some perfectly honest C code and rewrite it in C++? Rewriting in Perl, Ruby, even some managed CLR language, I understand. But The Great Bugblatter Beast of Traal itself? I do a lot of C++ at work, too, and I hate every moment. I miss lithe, muscular C on one hand, and even more, I miss Perl and Ruby on the other.
(Reply) (Thread)
[User Picture]From: purly
2008-04-30 02:08 pm (UTC)
Everytime I use c, I am reminded of playing diablo after having played diablo 2. You just can't go back to walking after you've gotten used to running everywhere.
(Reply) (Thread)
[User Picture]From: kvance
2008-04-30 02:36 pm (UTC)
You're taking this a lot better than I was. And I had Microsoft's error messages, which are like 10 times less inscrutable than GCC's.
(Reply) (Thread)