TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KEVIN CAMPBELL
from: DARIN MCBRIDE
date: 1997-08-08 08:28:00
subject: template hell?

 -=> Quoting Kevin Campbell to Darin Mcbride
 > Minor details.  ;-)
 KC> Not to me. I hate noting have the source to a function, especially
 KC> when I'm working with very low-level stuff. If a function is
 KC> non-reentrant and you call it from an interrupt, heaven help you
 KC> finding it.
Notice the smiley?
 > The STL classes are generally within 2-5% of the speed of hand-coded C/
 > C++
 > (non-templated) libraries.  Further, you can (and trust me, I have!)
 > generally switch between linked lists, vectors, and double-ended queues
 > with
 > very little code changes, so you can see which is the faster option.  No
 > coding needed.
 KC> Well, I can generally do the same with my stuff. Basically, it's good
 KC> for me for the practice. If you go through life never fully
 KC> understanding linked-lists and suchlikes, then that can't be good.
Practice is great for the first little bit.
But employers don't pay you to practice - they pay you to get results.  If
using the template version will turn out a product in 1 week less time
(nevermind 1-2 weeks less debugging time!), they'll go for it.  If the speed
penalty is too much, then there is a business decision to spend the extra 3
weeks to switch to a hand-coded version.  Usually the speed penalty is too
small to warrant the three weeks.
 > Interestingly enough, a project leader (computer engineer with master's
 > in
 > CompEng) I used to work with has the same name... :-)
 KC> I'm sure he's a bit older than me then ;-)
:-)
... "Could you continue your petty bickering? I find it most intriguing."
--- FastEcho 1.46
---------------
* Origin: House of Fire BBS - Toronto - (416)601-0085 - v.34 (1:250/536)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.