Click here to Skip to main content
12,955,493 members (59,939 online)

Nemanja Trifunovic - Professional Profile





Summary

    Blog RSS
20,586
Author
7,683
Authority
35,790
Debator
25
Editor
101
Enquirer
11,758
Organiser
7,125
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

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
Bypass spam checks when posting contentsilversilversilversilversilversilversilverSitebuilder, Subeditor, Mentor, Protector, Editor, Staff, Admin
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 Pin
Jim Crafton16-Mar-05 3:42
memberJim Crafton16-Mar-05 3:42 
GeneralVS 2005 Non-Express Beta 1 Pin
Nemanja Trifunovic1-Aug-04 4:28
memberNemanja Trifunovic1-Aug-04 4:28 
GeneralHow to use C++/CLI? Pin
Nemanja Trifunovic23-Jul-04 2:52
memberNemanja Trifunovic23-Jul-04 2:52 
GeneralRe: How to use C++/CLI? Pin
Nick Parker29-Jul-04 9:20
protectorNick Parker29-Jul-04 9:20 
GeneralRe: How to use C++/CLI? Pin
Nemanja Trifunovic29-Jul-04 13:58
memberNemanja Trifunovic29-Jul-04 13:58 
GeneralRe: How to use C++/CLI? Pin
Nick Parker29-Jul-04 17:29
protectorNick Parker29-Jul-04 17:29 
GeneralMy first hands on experience with generics Pin
Nemanja Trifunovic17-Jul-04 8:41
memberNemanja Trifunovic17-Jul-04 8:41 
GeneralBad habits of "old-style" programming Pin
Nemanja Trifunovic13-Jul-04 3:05
memberNemanja Trifunovic13-Jul-04 3: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.




<a href = http://www.codeproject.com/script/profile/whos_who.asp?id=14112#Blog> 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 Pin
Nemanja Trifunovic11-Jul-04 7:11
memberNemanja Trifunovic11-Jul-04 7:11 
GeneralRe: C++/CLI - ref objects on native heap Pin
BrianOlej11-Jul-04 7:27
memberBrian
Olej
11-Jul-04 7:27 
GeneralRAII with C++/CLI Pin
Nemanja Trifunovic10-Jul-04 10:11
memberNemanja Trifunovic10-Jul-04 10:11 
GeneralRe: RAII with C++/CLI Pin
Nemanja Trifunovic10-Jul-04 10:19
memberNemanja Trifunovic10-Jul-04 10:19 
GeneralTrivial (and less trivial) properties Pin
Nemanja Trifunovic9-Jul-04 9:36
memberNemanja Trifunovic9-Jul-04 9:36 
GeneralRe: Trivial (and less trivial) properties Pin
Jörgen Sigvardsson11-Jul-04 10:12
memberJörgen Sigvardsson11-Jul-04 10:12 
GeneralRe: Trivial (and less trivial) properties Pin
Nemanja Trifunovic11-Jul-04 12:01
memberNemanja Trifunovic11-Jul-04 12:01 
GeneralRe: Trivial (and less trivial) properties Pin
Jörgen Sigvardsson11-Jul-04 12:04
memberJörgen Sigvardsson11-Jul-04 12:04 
GeneralRe: Trivial (and less trivial) properties Pin
Dejan Gojsevic11-Jul-04 15:18
memberDejan Gojsevic11-Jul-04 15:18 
GeneralRe: Trivial (and less trivial) properties Pin
Nemanja Trifunovic11-Jul-04 15:36
memberNemanja Trifunovic11-Jul-04 15:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web01 | 2.8.170525.1 | Last Updated 29 May 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid