Click here to Skip to main content
15,881,812 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: What is an Object Pin
Member 1008817116-Nov-13 14:38
Member 1008817116-Nov-13 14:38 
GeneralRe: What is an Object Pin
michaelbarb16-Nov-13 15:32
michaelbarb16-Nov-13 15:32 
GeneralRe: What is an Object Pin
0bx17-Nov-13 2:46
0bx17-Nov-13 2:46 
GeneralRe: What is an Object Pin
irneb5-Mar-14 23:36
irneb5-Mar-14 23:36 
GeneralRe: What is an Object Pin
Marc Clifton17-Nov-13 4:51
mvaMarc Clifton17-Nov-13 4:51 
GeneralRe: What is an Object Pin
Member 1008817117-Nov-13 18:31
Member 1008817117-Nov-13 18:31 
GeneralRe: What is an Object Pin
Marc Clifton18-Nov-13 2:49
mvaMarc Clifton18-Nov-13 2:49 
GeneralRe: What is an Object Pin
Member 1008817118-Nov-13 6:26
Member 1008817118-Nov-13 6:26 
Instantiated is not equivalent with application programmer action. In case of static methods and fields the compiler does it in the background. At the runtime it is occupying memory and it is an object as well and integral part of OOP.

Object has a type defined by its class and at the core of OOP is compound type consisting of fields and functions (if any as you pointed out).

Sizeof operator will distinguish between int and float/double and C++ has features that are similar to reflection (RTTI). In fact anything you do in any language post C++ is C++. You are just not aware of this because certain complexities of C++ are hidden from modern programmer and rightly so.

Object is occupying memory and each and every object can be copied, moved etc. Just give me pointer to it.

What is confusing for most programmers? Programming abstraction which is class that does not exist unless object is created based on class design meaning that chunk of memory for data and code is assigned and then executed on the hardware. The designer creates classes but the actual work is done by objects residing on hardware.

I do not mind disagreements but to my astonishment none of the posts above was concrete enough to correlate programming abstraction with constrains of underlying hardware. This only confirms that the mumbo jumbo written in most programming books on OOP is truly confusing and able to fool experienced programmers.
GeneralRe: What is an Object Pin
robocodeboy18-Nov-13 23:36
robocodeboy18-Nov-13 23:36 
GeneralRe: What is an Object Pin
Rob Grainger28-Nov-13 22:39
Rob Grainger28-Nov-13 22:39 
GeneralRe: What is an Object Pin
robocodeboy2-Dec-13 0:53
robocodeboy2-Dec-13 0:53 
GeneralRe: What is an Object Pin
Rob Grainger2-Dec-13 2:23
Rob Grainger2-Dec-13 2:23 
GeneralRe: What is an Object Pin
robocodeboy2-Dec-13 2:38
robocodeboy2-Dec-13 2:38 
GeneralRe: What is an Object Pin
Rob Grainger2-Dec-13 4:14
Rob Grainger2-Dec-13 4:14 
GeneralRe: What is an Object Pin
robocodeboy2-Dec-13 4:30
robocodeboy2-Dec-13 4:30 
GeneralRe: What is an Object Pin
michaelbarb2-Dec-13 8:11
michaelbarb2-Dec-13 8:11 
GeneralRe: What is an Object Pin
Rob Grainger28-Nov-13 4:35
Rob Grainger28-Nov-13 4:35 
GeneralRe: What is an Object Pin
michaelbarb28-Nov-13 12:55
michaelbarb28-Nov-13 12:55 
GeneralRe: What is an Object Pin
Rob Grainger28-Nov-13 22:35
Rob Grainger28-Nov-13 22:35 
GeneralRe: What is an Object Pin
michaelbarb29-Nov-13 2:40
michaelbarb29-Nov-13 2:40 
GeneralRe: What is an Object Pin
Rob Grainger2-Dec-13 2:35
Rob Grainger2-Dec-13 2:35 
GeneralRe: What is an Object Pin
michaelbarb2-Dec-13 8:00
michaelbarb2-Dec-13 8:00 
GeneralRe: What is an Object Pin
Rob Grainger2-Dec-13 8:36
Rob Grainger2-Dec-13 8:36 
GeneralRe: What is an Object Pin
michaelbarb2-Dec-13 9:26
michaelbarb2-Dec-13 9:26 
GeneralRe: What is an Object Pin
Rob Grainger2-Dec-13 10:01
Rob Grainger2-Dec-13 10:01 

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.