Re: Newbie: The C / C++ Issue

2003-11-12 Thread Marty Leisner

I've been programming in C for over 20 years.

I've gotten up to speed on C++ for work.

I like the expression in C you can shoot yourself in the foot,
in C++ you can blow off your leg.

C++ does have advantages -- but I haven't seen most C++ 
programmers use them -- instead they often obscure the
problem at hand by making the implementation more complicated
than the problem they're trying to solve.

BTW -- I've been doing object oriented stuff in C for years --
its harder, but its doable.  You have a much simpler language
to deal with.

First learn how to write good programs in C.
Then see if C++ buys you anything extra.
If it doesn't, you don't need C++.
But I've seen far too much C++ that's just obscure C.

Just my experience and opinion.

marty

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie: The C / C++ Issue

2003-11-12 Thread Marty Leisner

My take on computer science (which is an oxymoron) is this:

Researchers look at successful programmers and try to figure out
what they're doing.

In the 70s, it was structured programming.

In the late 80s it was object oriented.


You can manipulate the data with a struct -- put in function pointers
to methods -- which is a crude way to do polymorphism.

Don't forget -- cfront translated C++ into C code...

OO doesn't promote reuse -- good design promotes reuse.  I've been
reusing code for years.   I'm like Will Tracz -- a used program salesman ;-)
I've reused a lot of procedural code.

One of my coworkers took a C++ course, renamed her structs to classes
and thought she was doing object-oriented stuff...please...!!

The bottom line is can other people understand your program.
What I've seen is you have far less of a chance in C++ than in C.
I've recently read Stroustrup's book and got more involved in C++ --
it seems the principle of least surprise was thrown out the window.


marty

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xfstt and KDE3

2003-09-24 Thread Marty Leisner
Frans-Jan v. Steenbeek [EMAIL PROTECTED] writes  on Thu, 25 Sep 2003 06:35:40 +0200
  Hi folks,
  
  I recently decided to switch from Gnome to KDE wich I never used before. 
  Before doing so, I decided to fully reinstall my system. I used xfstt for my 
  TrueType fonts, and never had any problems with that.
  
  I installed FreeBSD 4.7 with XFree86-3.3.6_11, kde-3.1.3 and xfstt-1.6 all 
  from packages (I hate compiling, and my system does too due to lack of 
  diskspace at times).
  
  Everything went well, I'm a happy KDE-user now, but for one thing: the 
  TrueType-fonts won't work in any KDE-app.
  
  But when I invoke a GTK-based program (tested XMMS and the GIMP (GTK-1) and 
  AbiWord and gedit (GTK-2) ) the fonts work fine in that program. Also, 
  running xlsfonts | grep ttf gives me a fine list of my 57 fonts.
  
  one odd thing though: when xfstt starts, it gives me an error about opening 
  the font database, then rebuilds it, syncs and works. It does that every time 
  again. I then tried xfstt-1.4 (wich I had on my previous install) wich works 
  fine (gives that error the first time, then it's happy).
  
  Now, is this a KDE-related problem? It seems to be, cause everything else 
  works fine.
  
  What to be done? Any suggestions?
  
  (Please CC me, I'm not on the list)
  
  thanks!
  
  -- 
  tcGB  Fi-Ji 
  


Well, I'm not sure if this is the same type of problem...

I just got truetype fonts installed (I'm running linux [redhat 7/8]).

I'm building kde-3.1.4. (I like to build things myself ;-))
I'm using xfstt 1.6.

But when I enable truetype fonts, none of the kde-3.1.4 applications run -- they
all start up, but quickly crashes,  the crash dialog doesn't stay up...

When I disable the truetype fonts, no problem... 

I was going to ask the KDE folks about this...

marty
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]