?

Log in

No account? Create an account
Friday Friday Friday! - Chronicles of a Hereditary Geek [entries|archive|friends|userinfo]
Darth Paradox

[ website | Pyrlogos - a fantasy webcomic ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Friday Friday Friday! [Jun. 4th, 2004|05:21 pm]
Darth Paradox
[mood |excitedexcited]

Now that I'm working, I can fully appreciate the glory that is the end of the work week. FRIDAYYYYYY!!!!

*cough* Anyway. Today went well. Presented the basic idea behind RSS to my team. My manager told me I did a good job, and that made me feel good. We had a good discussion about what we want this system of ours to be, and they told me that they weren't going to tell me about the ideas they had before I arrived because they want to see what I come up with on my own. Soo..... I'm being tested. Heh.

I worked out a basic design already, and I'm pretty happy with it. I'll tinker with it over the next few days, and by early next week I should have something that they can completely tear apart at the next meeting.

I went to a tech talk at Amazon - Andrei Alexandrescu explained a design method using templates for extensible groups of objects - it's called "policy-based design." Basically, the example he demonstrated was a string class, which was a template that took a "string core" as an argument. The idea was, to modify the string class (basically depending on what you wanted to optimize), you just replace the core with something else, or replace other parts (in the more general sense). Basically, the code is supposed to be broken down into interchangeable parts, and the template pattern works very well for this.

Then I came back and worked on the design for a while. This job is a lot of fun.

Now... dinner time, I suppose...

*edit* I forgot it! 28 days... four weeks... two fortnights... one lunar month... see, Shelly? There's only one unit of time left!
linkReply

Comments:
From: pax41085
2004-06-04 05:52 pm (UTC)
Yay for units of time nobody actually USES!~
(Reply) (Thread)
From: dacut
2004-06-04 07:22 pm (UTC)
Isn't "policy-based design" the same as traits?

I'm actually not all that fond of traits. In C++, for example, the ANSI-sanctioned way to do case-insensitive string comparisons is to make a special traits class and specialize std::basic_string<> on that. The problem is that now case-sensitive and case-insensitive strings are separate types. (Note that strcasecmp/stricmp are actually nonstandard, but fairly common, extensions...)

Also, I wouldn't necessarily say that you're being tested; they might not want to "poison" you with their preconceived notions. The old case of when you have a hammer, every problem looks like a nail...
(Reply) (Thread)
[User Picture]From: darthparadox
2004-06-04 10:15 pm (UTC)
I think policy-based design is a more generalized notion. It's not just traits - the templates affect things like the way the strings are stored and copied and such... but then, my only experience with traits is the character traits thing that string uses. If traits encapsulate more general design decisions like that, then sure. (As an example, we looked at choosing to store the characters in a vector vs. a basic array that gets reallocated, and whether to include the short string optimization, etc.)

I'm still a neophyte to a lot of these design patterns, so I may in fact be full of shit.

And yes, I was mostly joking when I said they were testing me. They do want to see what I can come up with on my own, but they said that they didn't want me to be affected by their previous notions.
(Reply) (Parent) (Thread)