Click here to Skip to main content
15,892,768 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: IBM cuts pay by 10% for workers picked for training Pin
Dan Neely16-Sep-14 3:04
Dan Neely16-Sep-14 3:04 
GeneralRe: IBM cuts pay by 10% for workers picked for training Pin
Vark11116-Sep-14 3:07
Vark11116-Sep-14 3:07 
NewsRe: IBM cuts pay by 10% for workers picked for training Pin
Eddy Vluggen16-Sep-14 4:51
professionalEddy Vluggen16-Sep-14 4:51 
NewsA new approach for writing exception safe C++ Pin
Kent Sharkey15-Sep-14 12:54
staffKent Sharkey15-Sep-14 12:54 
GeneralRe: A new approach for writing exception safe C++ Pin
Cristian Amarie15-Sep-14 20:10
Cristian Amarie15-Sep-14 20:10 
GeneralRe: A new approach for writing exception safe C++ Pin
Rob Grainger15-Sep-14 22:53
Rob Grainger15-Sep-14 22:53 
GeneralRe: A new approach for writing exception safe C++ Pin
Cristian Amarie16-Sep-14 0:30
Cristian Amarie16-Sep-14 0:30 
GeneralRe: A new approach for writing exception safe C++ Pin
Rob Grainger16-Sep-14 0:47
Rob Grainger16-Sep-14 0:47 
The fact is though, a hell of a lot of programmers simply skipped those checks.

With exceptions, at least the check can't be skipped. Its still not ideal, but generally an uncaught exception is preferrable to an ignored one.

With RAII, the individual steps get unwound, and the programmer is not responsible for tracking (as your error_step_t does) how far along the computation progressed. Admittedly, not all programmers bother with RAII correctly, but at least the program does not continue as if everything was hunky dory.

In this case, I'd have create_physical_database() et al return an object that, during exception unwinding, undoes the steps taken so far.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: A new approach for writing exception safe C++ Pin
Nelek16-Sep-14 1:54
protectorNelek16-Sep-14 1:54 
GeneralRe: A new approach for writing exception safe C++ Pin
Rob Grainger16-Sep-14 23:04
Rob Grainger16-Sep-14 23:04 
NewsInternet of things devices are doomed Pin
Kent Sharkey15-Sep-14 11:07
staffKent Sharkey15-Sep-14 11:07 
NewsFacebook's TODO project is a big push to evolve the world of open source Pin
Kent Sharkey15-Sep-14 11:00
staffKent Sharkey15-Sep-14 11:00 
GeneralRe: Facebook's TODO project is a big push to evolve the world of open source Pin
megaadam15-Sep-14 11:10
professionalmegaadam15-Sep-14 11:10 
GeneralRe: Facebook's TODO project is a big push to evolve the world of open source Pin
Bassam Abdul-Baki16-Sep-14 0:56
professionalBassam Abdul-Baki16-Sep-14 0:56 
NewsWhy you should NOT implement layered architectures Pin
Kent Sharkey15-Sep-14 10:47
staffKent Sharkey15-Sep-14 10:47 
GeneralRe: Why you should NOT implement layered architectures Pin
Ian Shlasko15-Sep-14 11:20
Ian Shlasko15-Sep-14 11:20 
GeneralRe: Why you should NOT implement layered architectures Pin
megaadam15-Sep-14 12:01
professionalmegaadam15-Sep-14 12:01 
GeneralRe: Why you should NOT implement layered architectures Pin
PIEBALDconsult15-Sep-14 13:00
mvePIEBALDconsult15-Sep-14 13:00 
GeneralRe: Why you should NOT implement layered architectures Pin
Nelek15-Sep-14 15:26
protectorNelek15-Sep-14 15:26 
RantRe: Why you should NOT implement layered architectures Pin
Duncan Edwards Jones15-Sep-14 22:53
professionalDuncan Edwards Jones15-Sep-14 22:53 
GeneralRe: Why you should NOT implement layered architectures Pin
Eddy Vluggen16-Sep-14 0:28
professionalEddy Vluggen16-Sep-14 0:28 
GeneralRe: Why you should NOT implement layered architectures Pin
Duncan Edwards Jones16-Sep-14 0:41
professionalDuncan Edwards Jones16-Sep-14 0:41 
NewsCortana app reportedly heading for Windows 9 Pin
Kent Sharkey15-Sep-14 10:45
staffKent Sharkey15-Sep-14 10:45 
GeneralRe: Cortana app reportedly heading for Windows 9 Pin
FIorian Schneidereit15-Sep-14 11:43
FIorian Schneidereit15-Sep-14 11:43 
NewsMicrosoft will offer early look at next Windows on Sept. 30 Pin
Kent Sharkey15-Sep-14 10:30
staffKent Sharkey15-Sep-14 10:30 

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.