« GGCL makes my brain hurt | Main | Posession of a stolen shovel »

There's no crying in baseball

Saw Fight Club with Lummy yesterday on DVD. Although he gave it an overall thumbs up, I don't think he appreciated it as much as I do. Today's lunch break is "Harold and Maude" (DVD), which he claims is one of his management movies.

I'm up to page 115 of the GGCL docs, and counting... It's exhausting work, because I'm reading both for comprehension and checking for errors. It's neat stuff though; I don't really have the zen of generic programming, but I do fully intend on using the GGCL in Minime for some of the network route-planning and status subsystems.

Might be going over to Eric's for dinner tonight; could be fun.

sed is your friend. The following sed regular expressions fixed the majority of the GGCL inconsistent spacing issues:

s/\([a-zA-Z0-9]\),\([a-zA-Z0-9]\)/\1, \2/g
s/\([a-zA-Z0-9]\)\/ /\1 \/ /g
s/ \/\([a-zA-Z0-9]\)/ \/ \1/g
s/\([a-zA-Z0-9]\)\/\([a-zA-Z0-9]\)/\1 \/ \2/g

The first is obvious, but who can tell what the rest do?

These are less interesting, but they also fixed a bunch of cases where std:: and boost:: were forgotten.

s/cout/std::cout/g
s/endl/std::endl/g
s/std::std::cout/std::cout/g
s/std::std::endl/std::endl/g
s/tie/boost::tie/g
s/boost::boost::tie/boost:tie/g

"Some of us have dogs. The rest of us have [ef]*grep. And sed."

(ispell really didn't like this journal entry :-)

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 27, 2000 1:40 AM.

The previous post in this blog was GGCL makes my brain hurt.

The next post in this blog is Posession of a stolen shovel.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34