How Fast do we Read

  • Thread starter Thread starter Worker
  • Start date Start date
W

Worker

Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow... :)



I d ask another question, i have a simple function from my latest book here
and the authors of "Wrox Beginning Asp.net with c#" were not to eager to
explain the meanings of the theory of code they used in their example so i
guess i should figure it out on my own, maybe with the help from a good
soul,
So there are some confusions in the function which i d appreciate being
clarified,

The code first...



private DateTime GetSafeDate(string proposedDate)

{

// Returns a non-null DateTime even if proposed date can't be parsed

DateTime safeDate;

try {

safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);

} catch (Exception e) {

Response.Write("<!-- Failed to parse date: " + e.Message + " -->");

safeDate = DateTime.MinValue;

}

return safeDate;

}



What i m confused about is the "DateTime.Parse" which seems like a property
of an object or something, i know DateTime is a type of variable but i m not
sure what this means here,

Also, the "DateTimeFormatInfo.InvariantInfo" is not too clear to me either,
do you have any idea?

Thats it,
Thanx!
 
Hi , i`ve been wondering how many days do you guys need to read
an average asp.net programming book, answer honestly please, for
example 800 pages big, how many pages a day? I just wanna see if
i m reading too slow... :)

Worker,

There is no hard number that defines a "good" or "bad" reading speed.
I think you should read at a speed where you have both
good comprehension and retension. That, IMO, is what really matters
- not how quickly you read compared to someone else.
I d ask another question, i have a simple function from my
latest book here and the authors of "Wrox Beginning Asp.net with
c#" were not to eager to explain the meanings of the theory of
code they used in their example so i guess i should figure it
out on my own, maybe with the help from a good soul,
So there are some confusions in the function which i d
appreciate being clarified,

<code snipped>

System.DateTime.Parse is a static method of the System.DateTime
class. A static method can be called without creating an instance of
the class.

The help file has extensive information on both that method and
System.Globalization.DateTimeFormatInfo. In addition to learning the
ins-and-outs of the C# language, you will also have to invest some
time in learning the .Net documentation and going through all of the
tutorials. The answer to most of the questions you encounter will
either be in the documentation, on msdn.microsoft.com, or Google
(www.google.com and groups.google.com).


Hope this helps.

Chris.
 
Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow... :)

The reading speed is not that importand.
And in programming, trial and error is very important to learn new things.
Programmers simply do not have the time to read all books, they just try,
and if they discover they do not understand something, then they go to look
into the books to get some sollutions. Or browser the Internet to find some
code samples.
I d ask another question, i have a simple function from my latest book here
and the authors of "Wrox Beginning Asp.net with c#" were not to eager to
I took also a long time to understand how to convert some numerical thing
tot string and the reverse.
In C# it is very logical and intuitive. (If you know it)

The Parse() method converts strings to internal format.
The ToString() method converts the internal format to a string
representation.

The Parse function can have additional information in order to convert from
string to internal format correctly.
e.g.: DateTimeFormatInfo.InvariantInfo which holds the format of the date
and time, which is country dependend.
For example, Belgium uses 23:45:50 time, The states uses 11:45:50pm format.
DateTimeFormatInfo holds the necessary information for Parse() to correctly
recognize "pm".

Keep trying is the key to become an expert programmer. :-)
 
Back
Top