Skip to main content
deleted 584 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Edit

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Last Edit

I recieved a lot of good answers from people. Some suggestions I don't personally agree with. My intentions with this class was This post is not to encapsulate another class (evenmeant to serve asfuel an input/storage derivative). It was to create a barebones, what you see is what you get type of class. Iargument about the use strings instead of an object because of the dynamic state that a string maintainsvar. A string can servePlease do not offer it as an item ID. See my new answer below forexample of something that could be used towards fixing the updated and final code. The use of var is based upon purely personal, arbitrary taste; I will also be acceptinghave no intentions of using it as the answer. Thanks for all the help and great suggestions.

Edit

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Last Edit

I recieved a lot of good answers from people. Some suggestions I don't personally agree with. My intentions with this class was not to encapsulate another class (even to serve as an input/storage derivative). It was to create a barebones, what you see is what you get type of class. I use strings instead of an object because of the dynamic state that a string maintains. A string can serve as an item ID. See my new answer below for the updated and final code. I will also be accepting it as the answer. Thanks for all the help and great suggestions.

This post is not meant to fuel an argument about the use of var. Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Final edit.
Source Link
Krythic
  • 1.5k
  • 1
  • 11
  • 20

Edit:Edit

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Last Edit

I recieved a lot of good answers from people. Some suggestions I don't personally agree with. My intentions with this class was not to encapsulate another class (even to serve as an input/storage derivative). It was to create a barebones, what you see is what you get type of class. I use strings instead of an object because of the dynamic state that a string maintains. A string can serve as an item ID. See my new answer below for the updated and final code. I will also be accepting it as the answer. Thanks for all the help and great suggestions.

Edit:

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Edit

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Last Edit

I recieved a lot of good answers from people. Some suggestions I don't personally agree with. My intentions with this class was not to encapsulate another class (even to serve as an input/storage derivative). It was to create a barebones, what you see is what you get type of class. I use strings instead of an object because of the dynamic state that a string maintains. A string can serve as an item ID. See my new answer below for the updated and final code. I will also be accepting it as the answer. Thanks for all the help and great suggestions.

added 272 characters in body
Source Link
Krythic
  • 1.5k
  • 1
  • 11
  • 20

Edit:

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

Edit:

This post is not meant to fuel an argument about the use of "var". Please do not offer it as an example of something that could be used towards fixing the code. The use of var is based upon purely personal, arbitrary taste; I have no intentions of using it.

deleted 73 characters in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238
Loading
Source Link
Krythic
  • 1.5k
  • 1
  • 11
  • 20
Loading