Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need lots of help! Pin
Alisaunder13-Oct-11 4:31
Alisaunder13-Oct-11 4:31 
GeneralRe: Need lots of help! Pin
BobJanova13-Oct-11 4:53
BobJanova13-Oct-11 4:53 
GeneralRe: Need lots of help! Pin
Alisaunder14-Oct-11 0:59
Alisaunder14-Oct-11 0:59 
GeneralRe: Need lots of help! Pin
BobJanova14-Oct-11 2:36
BobJanova14-Oct-11 2:36 
GeneralRe: Need lots of help! Pin
BillWoodruff12-Oct-11 15:05
professionalBillWoodruff12-Oct-11 15:05 
GeneralRe: Need lots of help! Pin
BobJanova12-Oct-11 23:11
BobJanova12-Oct-11 23:11 
GeneralRe: Need lots of help! Pin
Richard MacCutchan12-Oct-11 23:23
mveRichard MacCutchan12-Oct-11 23:23 
GeneralRe: Need lots of help! Pin
DaveyM6912-Oct-11 23:57
professionalDaveyM6912-Oct-11 23:57 
Hi Bill,

All comments are always welcome, whether in agreement or not. A sensible discussion of the different ways this can be approached can only be beneficial to the OP Smile | :)

BillWoodruff wrote:
From an OO point of view, what is modeled in this scenario, imho, is not a 'pizza,' but a process which takes a pizza-spec as an input, and returns certain calculated data useful to the pizza-creator

Hmm.. possibly but as we need to get more than one calculation (slices, area, area per slice) from just one specified diameter then an instance that is essentially a diameter wrapper makes more sense to me.


BillWoodruff wrote:
our consistent use of Public properties as a substitute for methods/functions is interesting

You are quite correct, CalculateSlices() etc methods may be more 'normal'. Where the object is immutable, therefore the methods will always return the same value for a given instance, I always feel that properties are more suited. This is just a personal thing and I have never really thought about it - it's just what I do naturally in that situation.


BillWoodruff wrote:
mho people vary greatly in the extent to which they "take naturally" to OO programming

Undoubtedly, but that normally stems from any pre-existing experience and/or the way they are initially taught. IMO there is no reason not to introduce very basic OOP from the outset rather than trying to lay it on afterwards.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Need lots of help! Pin
BillWoodruff14-Oct-11 18:04
professionalBillWoodruff14-Oct-11 18:04 
GeneralRegarding the style of OO discussion Pin
BobJanova13-Oct-11 3:23
BobJanova13-Oct-11 3:23 
GeneralRe: Regarding the style of OO discussion Pin
BillWoodruff14-Oct-11 18:24
professionalBillWoodruff14-Oct-11 18:24 
GeneralRe: Need lots of help! Pin
DaveyM6912-Oct-11 10:20
professionalDaveyM6912-Oct-11 10:20 
GeneralMessage Removed Pin
12-Oct-11 10:21
professionalN_tro_P12-Oct-11 10:21 
GeneralRe: Need lots of help! Pin
DaveyM6912-Oct-11 10:28
professionalDaveyM6912-Oct-11 10:28 
AnswerRe: Need lots of help! Pin
BillWoodruff12-Oct-11 15:08
professionalBillWoodruff12-Oct-11 15:08 
AnswerRe: Need lots of help! Pin
BobJanova12-Oct-11 23:20
BobJanova12-Oct-11 23:20 
QuestionIssue with creating bitmap image data for Format8bppIndexed and Format4bppIndexed Pin
AMSR12-Oct-11 8:35
AMSR12-Oct-11 8:35 
AnswerRe: Issue with creating bitmap image data for Format8bppIndexed and Format4bppIndexed Pin
BobJanova12-Oct-11 22:46
BobJanova12-Oct-11 22:46 
GeneralRe: Issue with creating bitmap image data for Format8bppIndexed and Format4bppIndexed Pin
AMSR12-Oct-11 23:24
AMSR12-Oct-11 23:24 
GeneralRe: Issue with creating bitmap image data for Format8bppIndexed and Format4bppIndexed Pin
AMSR12-Oct-11 23:27
AMSR12-Oct-11 23:27 
QuestionHow to Programatically find the application pool of an applicatiom Pin
yaju patel12-Oct-11 4:14
yaju patel12-Oct-11 4:14 
AnswerRe: How to Programatically find the application pool of an applicatiom Pin
Ravi Bhavnani13-Oct-11 16:21
professionalRavi Bhavnani13-Oct-11 16:21 
GeneralRe: How to Programatically find the application pool of an applicatiom Pin
yaju patel14-Oct-11 1:43
yaju patel14-Oct-11 1:43 
GeneralRe: How to Programatically find the application pool of an applicatiom Pin
Ravi Bhavnani14-Oct-11 1:47
professionalRavi Bhavnani14-Oct-11 1:47 
QuestionGet Client machine localization Pin
Mugdha_Aditya12-Oct-11 2:55
Mugdha_Aditya12-Oct-11 2:55 

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.