Click here to Skip to main content
15,909,945 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Learning a language using an IDE or text editor. Pin
gervacleto26-Feb-14 1:08
professionalgervacleto26-Feb-14 1:08 
AnswerRe: Learning a language using an IDE or text editor. Pin
Nicolas Dorier25-Feb-14 6:32
professionalNicolas Dorier25-Feb-14 6:32 
AnswerRe: Learning a language using an IDE or text editor. Pin
Keith Barrow25-Feb-14 6:35
professionalKeith Barrow25-Feb-14 6:35 
GeneralRe: Learning a language using an IDE or text editor. Pin
pkfox25-Feb-14 20:34
professionalpkfox25-Feb-14 20:34 
AnswerText Editor Pin
Ennis Ray Lynch, Jr.25-Feb-14 6:41
Ennis Ray Lynch, Jr.25-Feb-14 6:41 
GeneralRe: Text Editor Pin
OriginalGriff25-Feb-14 8:02
mveOriginalGriff25-Feb-14 8:02 
GeneralRe: Text Editor Pin
TheGreatAndPowerfulOz25-Feb-14 8:03
TheGreatAndPowerfulOz25-Feb-14 8:03 
GeneralRe: Text Editor PinPopular
Richard Deeming25-Feb-14 8:20
mveRichard Deeming25-Feb-14 8:20 
Hmmm, let's see:
  • Session could be null if session state is disabled for the application or the request;
  • Session["someInteger"] could be null if the session's timed out (or you've misspelled the key);
  • If you stored an Int32 in Session["someInteger"], drop the .ToString / .Parse and just unbox the value;
  • If you didn't store an Int32 in Session["someInteger"] (why the elephant not?!) then Int32.Parse could throw a FormatException or an OverflowException;
  • Even if you did store an Int32 in Session["someInteger"], the current culture settings might* prevent Int32.Parse from correctly parsing the result of the .ToString() call;
  • If you're not already doing it, this should be hidden behind a façade class;

Did I miss any? Smile | :)

* I don't know for certain whether there are any culture settings that could do this, but since I don't know for certain that there aren't, it's safest to assume there are.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


JokeRe: Text Editor PinPopular
Ravi Bhavnani25-Feb-14 8:34
professionalRavi Bhavnani25-Feb-14 8:34 
AnswerRe: Learning a language using an IDE or text editor. Pin
Kornfeld Eliyahu Peter25-Feb-14 6:45
professionalKornfeld Eliyahu Peter25-Feb-14 6:45 
AnswerRe: Learning a language using an IDE or text editor. Pin
Albert Holguin25-Feb-14 6:55
professionalAlbert Holguin25-Feb-14 6:55 
AnswerRe: Learning a language using an IDE or text editor. Pin
CHill6025-Feb-14 7:04
mveCHill6025-Feb-14 7:04 
AnswerRe: Learning a language using an IDE or text editor. Pin
Master.Man198025-Feb-14 7:29
Master.Man198025-Feb-14 7:29 
AnswerRe: Learning a language using an IDE or text editor. Pin
mikepwilson25-Feb-14 8:26
mikepwilson25-Feb-14 8:26 
GeneralRe: Learning a language using an IDE or text editor. Pin
PIEBALDconsult25-Feb-14 9:26
mvePIEBALDconsult25-Feb-14 9:26 
AnswerRe: Learning a language using an IDE or text editor. Pin
Maximilien25-Feb-14 9:44
Maximilien25-Feb-14 9:44 
AnswerRe: Learning a language using an IDE or text editor. Pin
Madhava Verma Dantuluri25-Feb-14 15:46
Madhava Verma Dantuluri25-Feb-14 15:46 
AnswerRe: Learning a language using an IDE or text editor. Pin
thatraja25-Feb-14 16:15
professionalthatraja25-Feb-14 16:15 
AnswerRe: Learning a language using an IDE or text editor. Pin
R. Erasmus25-Feb-14 20:11
R. Erasmus25-Feb-14 20:11 
AnswerRe: Learning a language using an IDE or text editor. Pin
Simon O'Riordan from UK25-Feb-14 20:43
Simon O'Riordan from UK25-Feb-14 20:43 
AnswerRe: Learning a language using an IDE or text editor. Pin
simion31425-Feb-14 21:18
simion31425-Feb-14 21:18 
AnswerRe: Learning a language using an IDE or text editor. Pin
cjb11025-Feb-14 21:19
cjb11025-Feb-14 21:19 
AnswerThe answer is a no brainer Pin
Rajesh R Subramanian25-Feb-14 21:42
professionalRajesh R Subramanian25-Feb-14 21:42 
AnswerRe: Learning a language using an IDE or text editor. Pin
Septimus Hedgehog25-Feb-14 23:01
Septimus Hedgehog25-Feb-14 23:01 
AnswerRe: Learning a language using an IDE or text editor. Pin
Obi_Hendrix26-Feb-14 3:17
Obi_Hendrix26-Feb-14 3:17 

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.