Click here to Skip to main content
15,181,191 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 5:05
mveGreg Utas20-Mar-20 5:05 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace20-Mar-20 6:13
MemberMark_Wallace20-Mar-20 6:13 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 6:29
mveGreg Utas20-Mar-20 6:29 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 7:30
MemberMember 798912220-Mar-20 7:30 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 8:16
mveGreg Utas20-Mar-20 8:16 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 8:43
MemberMember 798912220-Mar-20 8:43 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 9:52
professionalJoe Woodbury20-Mar-20 9:52 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 7:11
MemberMember 798912220-Mar-20 7:11 
The possible memory leaks (you gave a count of 109 in your first post) is an inidication of why I have come to favor automatic garbage collection. You do not mention dangling pointers and double freeing - maybe your code is so disciplined that you don't experience it; it can certainly create nasty bugs.

Many years ago, we had a basic General Object Dispenser, GOD, and whe didn't free objects explicitly but send them home to GOD. Smile | :)
(and before you ask: I created GOD)

divide by zero: deliberate, to test the ability to handle SIGFPE
In my student days, the Computing Center newsletter brought an article about the shocking number of divide by zero faults on the great Univac mainframe, it was something like a million a day. The next issure brought a note from the Mechanical Engineering dept: Some of their matrix operations most certainly did divisions by matrix elements with value zero (i.e. uninitialized value), but the following operations would never use those partial results. Identifying which values were not relevant and skipping the divide for those would be far more complex and time consuming than using a tight loop over all elements and simply accept the divide faults.

So the essential question is: Can you flag this code in a/the faults database as intentional, so that you won't see it reported the next time aound? (I hate cluttering up code with thousands of lint directives! The database approach is far better - but far more complex/expensive.)

expression will always evaluate to true
Although the detail explanation is different: Embedded code in particular is overcrowded with "while (1)" (I tried to introduce "for ever", "ever" being a #define expanding to "(;;)", but the respones was certainly negative. Real Programmers write "while (1)"!)

I suspect that code checkers treat "while (1)" as a special case that is not reported. If not, being able to flag it as intentional is an absolute must!
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 7:33
mveGreg Utas20-Mar-20 7:33 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 7:12
professionalZurdoDev20-Mar-20 7:12 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 7:17
mveGreg Utas20-Mar-20 7:17 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 7:19
professionalZurdoDev20-Mar-20 7:19 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Nelek20-Mar-20 9:48
protectorNelek20-Mar-20 9:48 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 7:10
professionalZurdoDev20-Mar-20 7:10 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 7:19
mveGreg Utas20-Mar-20 7:19 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Kent Sharkey20-Mar-20 7:49
staffKent Sharkey20-Mar-20 7:49 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 9:46
professionalJoe Woodbury20-Mar-20 9:46 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas23-Mar-20 4:44
mveGreg Utas23-Mar-20 4:44 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace23-Mar-20 7:57
MemberMark_Wallace23-Mar-20 7:57 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas23-Mar-20 8:05
mveGreg Utas23-Mar-20 8:05 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace23-Mar-20 8:17
MemberMark_Wallace23-Mar-20 8:17 
NewsIT security report finds 97% have suspicious network activity Pin
Kent Sharkey19-Mar-20 11:45
staffKent Sharkey19-Mar-20 11:45 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Nelek19-Mar-20 12:37
protectorNelek19-Mar-20 12:37 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Mark_Wallace19-Mar-20 21:18
MemberMark_Wallace19-Mar-20 21:18 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Bohdan Stupak21-Mar-20 6:55
professionalBohdan Stupak21-Mar-20 6:55 

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.