The truth about software design.....

All the mad cows post in here..... beware of Vrooming fruitbats.

Moderators: KiLlEr, HELLFIRE, Taurec

KiLlEr
Happy-Go-Lucky Button Pusher
Happy-Go-Lucky Button Pusher
Posts: 3026
Joined: Tue Aug 19, 2003 1:15 am
Location: I'm lost in the evil lands, of soccer-mom piloted minivans...
Contact:

The truth about software design.....

Post by KiLlEr »

> p.s. Thanks everyone for all the help with how C++ works. I understand
> much better now. (And, I feel your pain... :)

So, I'm reading this thread and laughing my ass off. Why? Because it was a detailed analysis by some smart people who obviously know C++ very well of hobocopy. And I wrote hobocopy, and I don't really know jack shit about C++ - I just barely remember enough from when I used to write it to keep myself out of the worst kinds of trouble.

This was my favorite comment:

> This code is demonstrating a principle of API design (for
> which surely there must be a name, but I don't know it)
> which says the type of [in] parameters should be as generic
> as possible, while the type of [out] and [ref] params should
> be as concrete as possible.

Because what that code was actually demonstrating was that Craig started out working with LPCTSTR, got annoyed by how hard it was to use the CRT string manipulation routines, switched to wstring briefly, couldn't figure it out, then found CString which looked more System.String-like, then had all sorts of horrendous allocation problems and decided "fudgie it - everything gets allocated on the stack", then spent a few hours wrestling with C++ reference semantics until he got the program to run without crashing and without leaking. And never bothered to change the parameter from LPCTSTR to CString because I was too lazy and the damn thing worked anyway.

So the whole thing sort of reminded me of a bunch of literature professors analyzing the diary of an eight-year-old. :)

Not that the advice you guys gave wasn't useful - I certainly learned something!
Forum gfx policy*General policy*Modbot info*Posting FMP Spoilers*Posting Spoilers
"Our users will know fear and cower before our software! SHIP IT! Ship it and let them flee like the dogs they are!"
- Anonymous Klingon Software Developer

Taurec
Drill Sergeant.
Drill Sergeant.
Posts: 9247
Joined: Tue Oct 08, 2002 7:27 pm
Location: Diagonal parked in a parallel universe...
Contact:

Post by Taurec »

<g>

Never understood C++
Pascal was my hobby....

But I used hobocopy a while ago. to copy open pst files.
Last edited by Taurec on Wed Jan 17, 2007 9:33 pm, edited 1 time in total.
-

"Can I help you?, "you know this section is.." she broke off her sentence as the man walked towards her and nodded, "I think you can Captain".
Tessa looked down, "I haven't been called Captain in 4 years," Wha..what do you want?"
He gave her a devious grin, "I'm here to make sure you keep your promise."
-
๏̯͡๏﴿ <- they know....
█████████
█▄█████▄█
█▼▼▼▼▼
█ Raaaaaaaaawr!!!
█▲▲▲▲▲
█████████
__██____██___

User avatar
HELLFIRE
Rezident GunBunny
Rezident GunBunny
Posts: 9569
Joined: Mon Mar 03, 2003 12:42 am
Location: the fine line between creative genius and insanity
Contact:

Post by HELLFIRE »

1) You're talking to a guy who took 3 years to figure out HOW to write
a simple multiplication table program in BASIC...

2) I think that quote about how C++ takes off your whole leg sums up
my attitude towards programming overall

:doh: :doh: :doh: :doh: :doh: :doh: :doh: :doh: :doh: :doh: :doh: :doh:



Regards
SEARCH Function | Forum Rules | Forum Fansubs Policy | Boku-Tachi Novel FAQ
---
On a good day, a Tomahawk can fly into the door of a two-car garage at the distance of several hundred miles. And that can ruin your whole day.

Post Reply