Print Story Observations from work, and other things
Diary
By sven (Wed Feb 04, 2004 at 01:39:48 AM EST) (all tags)
Graph of module dependencies. Possibly the funniest code I've ever seen. $5 pasta night. More holiday stuff.


Dependency graph

Yesterday I used a hacked-up script and a graphing problem to make a graph of the dependencies of each module in our executable at work. I'd include an image of it here, but I can't work out how. So I'll just link to it. Or I'll do it for you --gaz Hopefully someone will tell me how to include images for future reference.

Anyway, this graph illustrates how our code is a tangled web of intrigue.

Funny code

Found this inspired piece at work the other day. Variable and function names have been modified because I can't remember what they were. This is possibly the funniest code I have ever seen. Hopefully it posts properly.


switch(variable1)
{
  case true:
      isSomething() ?
          variable2 = CONSTANT_X :
          variable2 = CONSTANT_Y;
      break;

  case false:
      isSomething() ?
          variable3 = CONSTANT_X :
          variable3 = CONTANT_Y;
      break;
}

Dinner and reception venues

Tonight we went down to the Mulberry on Swan winery for dinner. Wednesday night is $5 pasta night. It was very tasty, and since we got to serve ourselves the servings were LARGE. This is actually one of the places we are considering as a reception venue. The plan is to drive around to several on Sunday and (hopefully) decide.

The plan so far. Obviously there are some extra things that will have to be added.

  • Sunday: Look at possible venues
  • By mid-March: Decide on venue and date
  • By end of March: Book honeymoon with frequent flyer points
  • March next year: Get married

Holiday

Since Contiki are total bastards, I've done a bit of work over the past few days at finding accommodation in Madrid, Barcelona, and Paris. I think it's all worked out now - I just need the travel agent to get back to me to confirm that our existing accommodation in Madrid (organised by Contiki) can be cancelled. And a nice big refund would be nice as well to pay for all this.

Still not sure where to go in Ireland. I might consult my Irish colleague at work tomorrow.

< Class books | BBC White season: 'Rivers of Blood' >
Observations from work, and other things | 6 comments (6 topical, 0 hidden) | Trackback
That code is wrong by gazbo (5.00 / 1) #1 Wed Feb 04, 2004 at 02:04:18 AM EST
On so many levels. Nice class diagram btw. I hope this code is part of it.

As for including files: Section 4. I see you've already managed to get it uploaded, so if you select the file from the dropdown on the right when you post a comment/diary, and click the "<< Comment" button, it will put the code in for you. Once you see the code, you'll realise it's pretty simple even to do by hand.


"Engarde!" cried the larvae, huskily. - Scrymarch



Cheers by sven (6.00 / 1) #2 Wed Feb 04, 2004 at 02:27:19 AM EST
Thanks for doing the image. It's easy when you know how.

The code and the diagram are from different components of our project. The diagram is of the component I work on. In general, this component is considered to be reliable and well written.

The code fragment is from a somewhat less-reputable component. Often things go wrong, and I show the person in charge. His solution is usually to restart everything. That always seems to fix it.

--
harshbutfair // you know it makes sense
[ Parent ]

I see in your future by cam (5.00 / 1) #3 Wed Feb 04, 2004 at 03:29:45 AM EST
An art display in a swanky Freeo art gallery of ADF software dependency art. Cool diagram. The fellow in charge of the part of the project, that produced that code, could do with the company buying him a book on refactoring.

cam
Freedom, liberty, equity and an Australian Republic


funny you should mention refactoring... by Sesh (5.50 / 2) #6 Wed Feb 04, 2004 at 05:06:49 PM EST
Its on the cards. Books probably wouldn't go astray.

I think Sven made the graph as a precursor to our refactoring discussions.

[ Parent ]

variable2 and variable3 by codemonkey uk (5.00 / 1) #4 Wed Feb 04, 2004 at 05:40:29 AM EST
Memory mapped IO registers. Right? Then it would just be poor, not idiotic.

--- Thad ---
Growing a mustache for charity.


Not even close! by sven (5.00 / 1) #5 Wed Feb 04, 2004 at 09:35:33 AM EST
No, just normal variables. You cannot possibly justify the madness.

--
harshbutfair // you know it makes sense
[ Parent ]

Observations from work, and other things | 6 comments (6 topical, 0 hidden) | Trackback