473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reading Books and some C#

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... :)

Next 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...

<code>
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;
}
</code>

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!

--
Its easier to stay out then get out.
Nov 15 '05 #1
9 1423
Well, if I have nothing else going, I could probably go through a book that
size in about a week or two.

Having said that, you should not make determinations on how fast others
read. The real question is, do you understand what you are reading and can
you apply it. Although I may read the book quickly, I don't read with the
expectation that I will be an expert (in fact, I don't even try the sample
code). My goal is usually to get a high-level understanding of the
technology and how it interacts with other systems. This is so that I know
what tools are available to solve particular problems. Only when a problem
needs solving do I dive into more detail.

DateTime is a structure (similar to a class). Parse is a method that takes
a string value and converts it into a DateTime instance. Pretty much all
your datatype have a Parse method.

I have not done much with formatting, but generally formatting allows you to
specify the culture the string was formatted in. Each country has their own
delimiters. Now, looking at that example, I think that you could have
probably just run the Parse without the second parameter and received the
same results.

"Worker" <wo****@work.net> wrote in message
news:bn**********@ls219.htnet.hr...
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... :)

Next 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...

<code>
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;
}
</code>

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!

--
Its easier to stay out then get out.

Nov 15 '05 #2
I% SAY :::
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... :)

not a lot, but i read a little bit each day
of the book, "c# class design, coding effective
classes". i think i know the basics of asp.net
web mechanics, i have programmed services, client
applications and console application, so now i
want to learn how to really design using OOP.

isn't that the poing of languages like c# and
java, to liberate us from the mechanics so we
can concentrate on design?



Next 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
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,


funny you should ask, because if you read
the book above you would know.

in the .Net framework, while there are many
'primitive' datatypes, the point of .Net is
that it supports many object datatypes, which
are not only datatypes but carry with them
methods and properties that apply to data and
that datatype.
Nov 15 '05 #3
I R BABOON wrote:
Next 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
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,


funny you should ask, because if you read
the book above you would know.


Correct me if i m wrong but i have seen no explanation of DateTime.Parse in
the whole book.
I`ve read it, and i dont remember it being explained, i ve also searched the
index and theres no such
thing mentioned there either, i might be wrong though.

--
Its easier to stay out then get out.
Nov 15 '05 #4
I% SAY :::
I R BABOON wrote:
Next 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
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,
funny you should ask, because if you read
the book above you would know.


Correct me if i m wrong but i have seen no explanation of DateTime.Parse

in
ok, did you look it up here:

http://msdn.microsoft.com/library/de...arsetopic1.asp

there's some code at the bottom.
the whole book.
I`ve read it, and i dont remember it being explained, i ve also searched the
index and theres no such
thing mentioned there either, i might be wrong though.

--
Its easier to stay out then get out.


Nov 15 '05 #5
>Having said that, you should not make determinations on how fast others
read. The real question is, do you understand what you are reading and can
you apply it. Although I may read the book quickly, I don't read with the

I agree with Peter. If yuu went by my answer, you would never finish
a book. :)

As Peter says, what you should do is take as long as you need to read
a book and understand the material as you go along. What is what
learning is all about.

I am studying for the 70-316 exam right now. I had planned originally
to take it this week, but things have changed. I need to do more
studying. :)

Nov 15 '05 #6
Don't know if this would help u or not. Here's the
link to source code implements the "InvariantInfo"

Browse around it and other c# test code for the "InvariantInfo"
might help you understand it better.

http://www.slink-software.com/W/SL_T...0/LN_264#L_261
--
The "source" is out there.
"Worker" <wo****@work.net> wrote in message news:<bn**********@ls219.htnet.hr>...
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... :)

Next 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...

<code>
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;
}
</code>

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!

Nov 15 '05 #7
DateTime.Parse is a *static* method, meaning to call it you don't use an
instance of DateTime, but the DateTime class itself. DateTime.Parse takes a
String parameter and returns a DateTime (or throws an exception).

The InvariantInfo bit has to do with the culture. You want to use the
Invariant culture.

"Worker" <wo****@work.net> wrote in message
news:bn**********@ls219.htnet.hr...
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... :)

Next 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...

<code>
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;
}
</code>

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!

--
Its easier to stay out then get out.

Nov 15 '05 #8
K_Lee wrote:
Don't know if this would help u or not. Here's the
link to source code implements the "InvariantInfo"

Browse around it and other c# test code for the "InvariantInfo"
might help you understand it better.

http://www.slink-software.com/W/SL_T..._InvariantInfo
/FILE_clr/src/bcl/system/globalization/datetimeformatinfo.cs/L_300/LN_264#L_
261

Thanx alot.
Nov 15 '05 #9
General Protection Fault wrote:
DateTime.Parse is a *static* method, meaning to call it you don't use
an instance of DateTime, but the DateTime class itself.
DateTime.Parse takes a String parameter and returns a DateTime (or
throws an exception).

The InvariantInfo bit has to do with the culture. You want to use the
Invariant culture.


Thank you General Protection Fault,
thank you all for assistance.
Nov 15 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Ward | last post by:
First: sorry as a relative newbie for previously not including code. My question: Reading C++ books I almost always find programs such as the one below give the following type of code for reading...
6
by: The_Kingpin | last post by:
Hi again guys, I've decided to cut my project in section and I found it way easier like this. I'm having a little problem reading struct in a file though. I think after this I'll be able to...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
7
by: fakeprogress | last post by:
For a homework assignment in my Data Structures/C++ class, I have to create the interface and implementation for a class called Book, create objects within the class, and process transactions that...
3
by: darren via AccessMonster.com | last post by:
Hi I'm based in the UK and I've drifted into Access from building a simple db for myself, to then being asked to build a simple db for someone else, to now spending time building increasingly...
10
by: vfunc | last post by:
OK, after reading some C++ books and writing some programs that cover the core, where do I go from there, to say be able to read some open source code ? How do you unravel other peoples code when...
1
by: Dave | last post by:
Hello, I'm new to SQL Server, have alot of experience with DB2 and Oracle, and have been tasked with supporting SQL Server. Could anyone suggest a good administrator book? Thanks!! Dave...
7
by: ianenis.tiryaki | last post by:
well i got this assignment which i dont even have a clue what i am supposed to do. it is about reading me data from the file and load them into a parallel array here is the question: Step (1) ...
11
by: downwitch | last post by:
Hi, I'm using a 3rd-party app's back end which stores SQL statements in a table, so I have no choice but to use dynamic SQL to call them (unless someone else knows a workaround...) Problem...
8
by: boki_pfc | last post by:
Hi Everybody, I am looking for an advice on following: I have that "pleasure" of reading C++ codes that have been written by person(s) that have not attended the same C++ classes that I did or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.