Click here to Skip to main content
16,009,407 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 22:31
mgulde23-Nov-11 22:31 
GeneralTry/Catch Opinions Pin
mjackson1123-Nov-11 7:08
mjackson1123-Nov-11 7:08 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:16
mvePIEBALDconsult23-Nov-11 7:16 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:28
mentorNot Active23-Nov-11 7:28 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:37
mvePIEBALDconsult23-Nov-11 7:37 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:47
mentorNot Active23-Nov-11 7:47 
AnswerRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 7:45
professionalEddy Vluggen23-Nov-11 7:45 
GeneralRe: Try/Catch Opinions Pin
SledgeHammer0123-Nov-11 7:58
SledgeHammer0123-Nov-11 7:58 
This.

Writing "bullet proof" code that handles every case from day one, I've learned is a waste of your time and CPU cycles and does nothing but piss off your boss who is wondering why it is taking you so long. Write your first pass with general case error handling and add the obscure corner cases as you come across them in testing.

However, structuring your code with the intention of handling these corner cases down the road would behoove you.

What I mean by that is... well, one of the projects I'm working on is a project that my boss implemented 100%, and he is "from the street" and doesn't believe in structure and design, so there is SQL code sprinkled pretty much every where. Had he packaged all his SQL code into a single DAL, it would have been much easier to debug and expand. The project that I wrote 100% from scratch, I did exactly that... yeah, it didn't handle every corner case from day one, but as I found the cases, I only had to change 1 or 2 places.

I'm mentioning this because it sounds like you have your external access stuff sprinkled everywhere throughout the GUI Smile | :) .
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 8:37
mvePete O'Hanlon23-Nov-11 8:37 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 9:09
mvePIEBALDconsult23-Nov-11 9:09 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 9:29
mvePete O'Hanlon23-Nov-11 9:29 
AnswerRe: Try/Catch Opinions Pin
Luc Pattyn23-Nov-11 10:26
sitebuilderLuc Pattyn23-Nov-11 10:26 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 10:33
mvePete O'Hanlon23-Nov-11 10:33 
GeneralRe: Try/Catch Opinions Pin
Luc Pattyn23-Nov-11 10:56
sitebuilderLuc Pattyn23-Nov-11 10:56 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 11:04
mvePete O'Hanlon23-Nov-11 11:04 
GeneralRe: Try/Catch Opinions Pin
Luc Pattyn23-Nov-11 11:11
sitebuilderLuc Pattyn23-Nov-11 11:11 
GeneralRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 9:27
professionalEddy Vluggen23-Nov-11 9:27 
GeneralRe: Try/Catch Opinions Pin
BillWoodruff24-Nov-11 6:56
professionalBillWoodruff24-Nov-11 6:56 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon30-Nov-11 5:33
mvePete O'Hanlon30-Nov-11 5:33 
GeneralRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 7:51
professionalEddy Vluggen23-Nov-11 7:51 
GeneralRe: Try/Catch Opinions Pin
jschell25-Nov-11 9:03
jschell25-Nov-11 9:03 
AnswerRe: Try/Catch Opinions Pin
Eddy Vluggen25-Nov-11 10:08
professionalEddy Vluggen25-Nov-11 10:08 
GeneralRe: Try/Catch Opinions Pin
jschell25-Nov-11 12:36
jschell25-Nov-11 12:36 
GeneralRe: Try/Catch Opinions Pin
Ennis Ray Lynch, Jr.23-Nov-11 8:34
Ennis Ray Lynch, Jr.23-Nov-11 8:34 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 8:37
mvePIEBALDconsult23-Nov-11 8:37 

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.