The Glade 4.0
https://gladerebooted.net/

A syntactically correct and complete sentence...
https://gladerebooted.net/viewtopic.php?f=2&t=8395
Page 1 of 1

Author:  Aegnor [ Wed Mar 28, 2012 9:24 pm ]
Post subject:  A syntactically correct and complete sentence...

Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.

Author:  Stathol [ Thu Mar 29, 2012 12:12 am ]
Post subject:  Re: A syntactically correct and complete sentence...

James while John had had had had had had had had had had had a better effect on the teacher

Edit:

While we're at it:

One ghoti
Two ghoti
Red ghoti
Blue ghoti

Author:  Micheal [ Thu Mar 29, 2012 3:49 am ]
Post subject: 

No.

Author:  Vladimirr [ Thu Mar 29, 2012 7:10 am ]
Post subject:  Re: A syntactically correct and complete sentence...

Aegnor wrote:
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.


Mushroom. MUSHROOM!

Author:  Micheal [ Thu Mar 29, 2012 8:03 am ]
Post subject: 

10 say "Badger"
20 go to 10

Author:  Shelgeyr [ Thu Mar 29, 2012 8:42 am ]
Post subject:  Re:

Micheal wrote:
10 say "Badger"
20 go to 10
How about ...

5 BadgerCount = 0
6 MushroomCount = 0
10 say "Badger"
15 BadgerCount = BadgerCount + 1
20 if BadgerCount = 12 then gosub 30 else goto 10
30 BadgerCount = 0
35 if MushroomCount = 3 then goto 40 else goto 36
36 say "Mushroom"
37 MushroomCount = MushroomCount + 1
38 goto 50
40 say "Eeek, a snake!"
45 MushroomCount = 0
50 return

Author:  Micheal [ Thu Mar 29, 2012 9:06 am ]
Post subject: 

That is for the lead singers Shel, I'm just doing back-up chorus. Good program though.

Author:  Aegnor [ Thu Mar 29, 2012 9:41 am ]
Post subject: 

The sentence I wrote is expressing that buffalo from the city of Buffalo, who are buffaloed by other buffalo from Buffalo, in turn buffalo other buffalo from Buffalo. Or if I replace each set of Buffalo buffalo with a different animal you would get:

Cats dogs buffalo buffalo chickens.

Author:  Vladimirr [ Thu Mar 29, 2012 9:50 am ]
Post subject:  Re: Re:

Shelgeyr wrote:
How about ...

5 BadgerCount = 0
6 MushroomCount = 0
...


Sorry, not enterprisey enough.

Code:
'Basic animal structure with implemented subclasses.
'Eventually will migrate to Oracle backend

Public Enum AnimalType As Integer
    Badger
    Snake
    Mushroom 'vlad - added 3/29/12 per compliance, yes we know it's not an animal
End Enum

'2/1/10 coding standards mandate abstraction
Public MustInherit Class Animal
    Friend atTypeName As AnimalType
    Friend strNoise As String
    Public MustOverride ReadOnly Property TypeName() As AnimalType
    Public MustOverride ReadOnly Property Noise() As String
End Class

Public Class Badger
    Inherits Animal

    Public Sub New(ByVal TypeName As AnimalType, ByVal Noise As String)
        atTypeName = TypeName
        strNoise = Noise
    End Sub
    Public Overrides ReadOnly Property TypeName() As AnimalType
        Get
            Return AnimalType.Badger   'todo remove hardcode
        End Get
    End Property
    Public Overrides ReadOnly Property Noise() As String
        Get
            Return strNoise
            'Return "Badger."  '11/7/10 removed hardcoding
        End Get
    End Property
End Class


Public Class AnimalFactory
    Implements IEnterpriseCreatureFactory

    Public Function CreateAnimal(ByVal eAnimalType As AnimalType) As Animal
        Select Case eAnimalType
            Case AnimalType.Badger
                Return New Badger(AnimalType.Badger, "Badger.")
            Case AnimalType.Snake
                'Return New Snake(AnimalType.Snake, "Snake.")
            Case AnimalType.Mushroom
                'todo add mushroom
        End Select
    End Function

End Class


Author:  Aegnor [ Thu Mar 29, 2012 2:09 pm ]
Post subject: 

Lol, Vlad's been reading thedailywtf.com.

Author:  Mookhow [ Thu Mar 29, 2012 2:22 pm ]
Post subject: 

Great site.

Author:  Vladimirr [ Thu Mar 29, 2012 2:35 pm ]
Post subject: 

Yeah, that'd be Badger, Snake, FileNotFound.

:D

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/