Intellectual Question??

Hi There

Below Is a Is a Generated VB Simple Program. - A Windows Form with a Rich Text Editor Control loaded with the Text - "Hello World Without A Printer".......

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Partial Class Form1

Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.

<System.Diagnostics.DebuggerNonUserCode()> _

Protected Overrides Sub Dispose(ByVal disposing As Boolean)

If disposing AndAlso components IsNot Nothing Then

components.Dispose()

End If

MyBase.Dispose(disposing)

End Sub

'Required by the Windows Form Designer

Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

<System.Diagnostics.DebuggerStepThrough()> _

Private Sub InitializeComponent()

Me.RichTextBox1 = New System.Windows.Forms.RichTextBox

Me.SuspendLayout()

'

'RichTextBox1

'

Me.RichTextBox1.Location = New System.Drawing.Point(50, 105)

Me.RichTextBox1.Name = "RichTextBox1"

Me.RichTextBox1.Size = New System.Drawing.Size(200, 26)

Me.RichTextBox1.TabIndex = 0

Me.RichTextBox1.Text = "Hello World WithOut A Printer"

'

'Form1

'

Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)

Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font

Me.ClientSize = New System.Drawing.Size(292, 260)

Me.Controls.Add(Me.RichTextBox1)

Me.Name = "Form1"

Me.Text = "Form1"

Me.ResumeLayout(False)

End Sub

Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox

End Class

THIS IS OOP........ THIS IS ELEGANT ( Note Only One.1 If Statement!!!)....... CHECK THE POSTS YOU ALL AND ME ARE WRITING PROCEDURALLY(SPAGHETTI)....WHY CAN’T YOU ALL AND ME WRITE THIS ELEGANT OOP WAY

Cheers
Bronco Billy
"Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed"

 



Answer this question

Intellectual Question??

  • odcit

     ReneeC wrote:

     

     

    No it's not OOP.

     

    It's set up and positions object on a form and that's all it does. It's the output of VB designer.

    Hi There

    Just as I Thought A Complete Misunderstanding Of What OOP Really Is............. One Of US is Dead A*s Wrong...... Agreed

    I asked My Lovely Beautiful Professional Wife who Has Made Way more $$$$$ than I Ever Did and Who Is Way Smarter Than Me and Who I Love Very Much if This was OOP Code...... And She Said It Was definitely Elegant OOP Code.............. SO THERE.....

    Hey Blair Please HELP settle This...... ie. Who is Dead A*s Wrong

    Cheers
    Bronco Billy
    "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed suppression



  • Redskin9

     jvanderbeek wrote:

    I agree... this has virtually nothing to do with OOP. I also don't understand your comparison with procedural languages. I am really trying to understand what you are trying to say, but I am totally puzzeled .

    Was there a question in here somehow  The post's topic seems to indicate it.

    Hi There

    Was there a question in here somehow The post's topic seems to indicate it.

    Yes It’s The Thing To The Left of All The ...... ie. WHY CAN’T YOU ALL AND ME WRITE THIS ELEGANT OOP WAY

    Cheers
    Bronco Billy
    "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed suppression



  • Felipe Gaiotto

     ReneeC wrote:

    'NOTE: The following procedure is required by the Windows Form Designer

    'It can be modified using the Windows Form Designer.

    'Do not modify it using the code editor.

     

    This is a comment from the code you are marveling over. It's simple forms designer output. That's all it is.

    You Are Dead A*s Wrong.... When In A Hole Never Get A Bigger Shovel..... Worst Yet You Are CONFUSING THE REST OF THIS COMMUNITY ABOUT THIS ISSUE.........

    Would Some Real OOP Experts PLEASE STEP IN....... As I said Before One of US Is Dead A*s WRONG..........


  • pfitchie

    This is the first time I find someone who thinks that code generators write beautiful code .

    What part of this code do you find elegant And why do you think 'we' don't program like it What is your definition of spaghetti code



  • Nikhil Technology

     

    You're the one who has been saying you don't understand this stuff.

    Making a simple declaration that I'm wrong is simply that - a declaration. Unless you can support why I am wrong, which you have not, I will ignore your discounting of what I've said.

    Btw, if you look at the first line of code in your listing, you will notice that it says:

     "<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _"

    What you are mistaking for a program is simply the output from the VB forms generator. It describes the parameters of the form.

    I wouldn't take it so bad though. You get plenty of attention which seems to be what you want and are here for.

     

     

     

     



  • Altaff

    'NOTE: The following procedure is required by the Windows Form Designer

    'It can be modified using the Windows Form Designer.

    'Do not modify it using the code editor.

     

    This is a comment from the code you are marveling over. It's simple forms designer output. That's all it is.



  • Ferintal

    I agree... this has virtually nothing to do with OOP. I also don't understand your comparison with procedural languages. I am really trying to understand what you are trying to say, but I am totally puzzeled .

    Was there a question in here somehow  The post's topic seems to indicate it.



  • Lovenish Rolawan

    Billy,

    Try to understand that the output of the forms designer is just a serialization format. It could just as well be stored in something like an XML file, or worse, a binary file like in the old days. The fact that it generates code is cool, it makes stuff readable, editable, portable. Still, filling in properties in data structures has nothing to do with object oriented programming. Sure, there are a lot OO concept that pass by: classes, objects, inheritance, polymorphism... but that doesn't make it a good example of OO code.

    If your wife has certain ideas about this code, ask her why this is a good example of OO code. Try to find arguments and post them here.



  • MrMorgue

     jvanderbeek wrote:

    This is the first time I find someone who thinks that code generators write beautiful code .

    What part of this code do you find elegant And why do you think 'we' don't program like it What is your definition of spaghetti code

    Hi There

    What part of this code do you find elegant

    All Of It..... It Is Pure OOP ie. Non Procedural........

    why do you think 'we' don't program like it

    I see many more Procedural Statements than OOP Statements.... I am in the.’we’ Class and I wanna Be in the ‘oop’ Class...... I can’t Seem to Make the Jump(Quantum Leap) To the ‘oop’ Class.......

    What is your definition of spaghetti

    Procedural Code ie. Non OOP

    Cheers
    Bronco Billy
    "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed suppression

     


  • Jenks

    It is a piece of OOP framework code to actually support the OOP framework.

    If you have a batch file for compiling code, it's a part of the production process, but is NOT OOP code.

     

     



  • Maddu

     jvanderbeek wrote:

    What are you trying to say What is so procedural about this code It's as imperitive as it possible could. What do you expect from object oriented code

    Note that this is only a way to serialize code and data. Please be more descriptive.

    Hi There

    I am Not Being Factious....... The Code IS Beautiful and Elegant..... Only Code Generators and System Programmers Write Like This....... Why Can’t The Rest of US Write Like This.....Read the Posts - A Lot of Spaghetti...

    Cheers
    Bronco Billy
    "Beer and Fast Women are Ok... No Cigarettes or Hard Liquor Allowed suppression


  • Roberto_SEM2000

     

     

    No it's not OOP.

     

    It's set up and positions object on a form and that's all it does. It's the output of VB designer.



  • Abby14910

     ReneeC wrote:

    It is a piece of OOP framework code to actually support the OOP framework.

    If you have a batch file for compiling code, it's a part of the production process, but is NOT OOP code.

     

     

    BS


  • Grendizer

    What are you trying to say What is so procedural about this code It's as imparitive as it possible could. What do you expect from object oriented code

    Note that this is only a way to serialize code and data. Please be more descriptive.



  • Intellectual Question??