Click here to Skip to main content

Nemanja Trifunovic - Professional Profile





Summary

    Blog RSS
19,954
Author
7,670
Authority
33,970
Debator
25
Editor
101
Enquirer
10,900
Organiser
6,054
Participant
Born in Kragujevac, Serbia. Now lives in Boston area with his wife and daughters.
 
Wrote his first program at the age of 13 on a Sinclair Spectrum, became a professional software developer after he graduated.
 
Very passionate about programming and software development in general.
  • 24 Aug 2009: Best C++/MFC article of July 2009
  • 24 Feb 2007: Best C++/MFC article of Jan 2007

Articles 15 (Legend)
Tech Blogs 0
Messages 6,380 (Master)
Q&A Questions 0
Q&A Answers 50
Tips/Tricks 0
Comments 19

Reputation

For more information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege, and the given member types also gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilverAdmin
Store personal files in your account areaplatinumplatinumSitebuilder, Subeditor, Supporter, Editor, Staff
Have live hyperlinks in your biographybronzebronzebronzebronzebronzebronzesilverSubeditor, Protector, Editor, Staff, Admin
Edit a Question in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Edit an Answer in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Delete a Question in Q&AYesSubeditor, Protector, Editor, Admin
Delete an Answer in Q&AYesSubeditor, Protector, Editor, Admin
Report an ArticlesilversilversilversilverSubeditor, Mentor, Protector, Editor, Staff, Admin
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubeditor, Mentor, Protector, Editor, Staff, Admin
Edit other members' articlesSubeditor, Protector, Editor, Admin
Create an article without requiring moderationplatinumSubeditor, Mentor, Protector, Editor, Staff, Admin
Approve/Disapprove a pending QuestionProtector, Admin
Approve/Disapprove a pending AnswerProtector, Admin
Report a forum messagesilversilverbronzeProtector, Editor, Admin
Approve/Disapprove a pending Forum MessageProtector, Admin
Create a new tagsilversilversilversilverAdmin
Modify a tagsilversilversilversilverAdmin

Actions with a green tick can be performed by this member.


 
GeneralRe: Heron PinmemberJim Crafton16-Mar-05 4:42 
GeneralVS 2005 Non-Express Beta 1 PinmemberNemanja Trifunovic1-Aug-04 5:28 
GeneralHow to use C++/CLI? PinmemberNemanja Trifunovic23-Jul-04 3:52 
GeneralRe: How to use C++/CLI? PinprotectorNick Parker29-Jul-04 10:20 
GeneralRe: How to use C++/CLI? PinmemberNemanja Trifunovic29-Jul-04 14:58 
GeneralRe: How to use C++/CLI? PinprotectorNick Parker29-Jul-04 18:29 
GeneralMy first hands on experience with generics PinmemberNemanja Trifunovic17-Jul-04 9:41 
GeneralBad habits of "old-style" programming PinmemberNemanja Trifunovic13-Jul-04 4:05 
At one point (end of 2003), the web was full of blogs from some very interesting people, like Herb Sutter, Brandon Bray, etc. However, it seems that most of them gave up blogging soon. Stan Lippman is "the last man standing" in this regard, and I try to keep an eye on his blog.
 
One thing I found on his blog was the next piece of code (from this article[^]:
 
    char *ch = new char[ len ];
    bool result = wcstombs( ch, wch, len ) != -1;
    target = ch;
    delete ch;
 
See the last line? It should really be:
    delete[] ch;
 
In fact, why did Stan even use this new[]...delete[] construct here? Modern C++ offers this alternative:
 
    vector<char> ch(len);
    bool result = wcstombs( &ch[0], wch, len ) != -1;
    target = &ch[0];
 

Stan's explanation: it is a bad habit for an old dog who was programming with the language before this was added, and of course in current implementations, its absence is actually both non-fatal and possibly more efficient.
 
This makes me wonder. If a master like Stan Lippman makes a mistake like this, something is wrong here. Old dog's habits are hard to get rid of. Maybe we really need a new, smaller and cleaner language, after all - a language that would inherit the power of C++ but leave the C heritage behind. The problem is - I don't know such a language - Java and C# are definitely not what I have in mind.

 


My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
GeneralC++/CLI - ref objects on native heap PinmemberNemanja Trifunovic11-Jul-04 8:11 
GeneralRe: C++/CLI - ref objects on native heap PinmemberBrian
Olej
11-Jul-04 8:27 
GeneralRAII with C++/CLI PinmemberNemanja Trifunovic10-Jul-04 11:11 
GeneralRe: RAII with C++/CLI PinmemberNemanja Trifunovic10-Jul-04 11:19 
GeneralTrivial (and less trivial) properties PinmemberNemanja Trifunovic9-Jul-04 10:36 
GeneralRe: Trivial (and less trivial) properties PinmemberJörgen Sigvardsson11-Jul-04 11:12 
GeneralRe: Trivial (and less trivial) properties PinmemberNemanja Trifunovic11-Jul-04 13:01 
GeneralRe: Trivial (and less trivial) properties PinmemberJörgen Sigvardsson11-Jul-04 13:04 
GeneralRe: Trivial (and less trivial) properties PinmemberDejan Gojsevic11-Jul-04 16:18 
GeneralRe: Trivial (and less trivial) properties PinmemberNemanja Trifunovic11-Jul-04 16:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150123.1 | Last Updated 27 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid