|
They are not developers but they are form builders or creators
Ranjan.D
|
|
|
|
|
Ed Aymami wrote: The instructions turn out to be 43 pages long. That's because it's the EZ form. The normal form has over 100 pages of instructions.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Ed Aymami wrote: 43 pages long
Ha, no wonder he wanted you to print them!
...the problem isn't with the developers, but with the dumbed down public who need a paragraph to explain every entry.
"Go forth into the source" - Neal Morse
|
|
|
|
|
Your friend should consider using the free online TurboTax 1040EZ form: Clickety[^].
/ravi
|
|
|
|
|
Well, thankfully, they haven't "lost" any of those documents
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
One of my own little beauties to show why I should be kept on a short leash...
Public NotInheritable Class ClientSummaryProjection
Inherits ProjectionBase(Of AggregateIdentifiers.ClientAggregateIdentity)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.NewBazaarCreatedEvent)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.BazaarClosedEvent)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.CreatedEvent)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.ClientNameChangedEvent)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.DisabledEvent)
Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.EnabledEvent)
ReadOnly m_identity As AggregateIdentifiers.ClientAggregateIdentity
Public Overrides ReadOnly Property Identity As AggregateIdentifiers.ClientAggregateIdentity
Get
Return m_identity
End Get
End Property
Private m_openBazaars As Integer
Public ReadOnly Property OpenBazaars As Integer
Get
Return m_openBazaars
End Get
End Property
Private m_totalBazaars As Integer
Public ReadOnly Property TotalBazaars As Integer
Get
Return m_totalBazaars
End Get
End Property
Private m_clientName As String
Public ReadOnly Property ClientName As String
Get
Return m_clientName
End Get
End Property
Private m_enabled As Boolean = True
Public ReadOnly Property Enabled As Boolean
Get
Return m_enabled
End Get
End Property
Public Overrides Sub ConsumeEvent(sequence As Integer, eventToConsume As IEvent(Of AggregateIdentifiers.ClientAggregateIdentity))
If IsPriorEvent(sequence) Then
Return
End If
If (TypeOf (eventToConsume) Is Events.Client.NewBazaarCreatedEvent) Then
ConsumeNewBazaarCreatedEvent(sequence, eventToConsume)
End If
If (TypeOf (eventToConsume) Is Events.Client.BazaarClosedEvent) Then
ConsumeBazaarClosedEvent(sequence, eventToConsume)
End If
If (TypeOf (eventToConsume) Is Events.Client.CreatedEvent) Then
ConsumeCreatedEvent(sequence, eventToConsume)
End If
If (TypeOf (eventToConsume) Is Events.Client.ClientNameChangedEvent) Then
ConsumeNameChangedEvent(sequence, eventToConsume)
End If
If (TypeOf (eventToConsume) Is Events.Client.EnabledEvent) Then
ConsumeEnabledEvent(sequence, eventToConsume)
End If
If (TypeOf (eventToConsume) Is Events.Client.DisabledEvent) Then
ConsumeDisableEvent(sequence, eventToConsume)
End If
SetSequence(sequence)
End Sub
Public Sub New(ByVal aggregateidentity As AggregateIdentifiers.ClientAggregateIdentity)
m_identity = aggregateidentity
End Sub
Public Sub ConsumeNewBazaarCreatedEvent(sequence As Integer, eventToConsume As Events.Client.NewBazaarCreatedEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.NewBazaarCreatedEvent).ConsumeEvent
m_totalBazaars += 1
m_openBazaars += 1
End Sub
Public Sub ConsumeBazaarClosedEvent(sequence As Integer, eventToConsume As Events.Client.BazaarClosedEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.BazaarClosedEvent).ConsumeEvent
m_openBazaars -= 1
End Sub
Public Sub ConsumeCreatedEvent(sequence As Integer, eventToConsume As Events.Client.CreatedEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.CreatedEvent).ConsumeEvent
m_clientName = eventToConsume.ClientName
End Sub
Public Sub ConsumeNameChangedEvent(sequence As Integer, eventToConsume As Events.Client.ClientNameChangedEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.ClientNameChangedEvent).ConsumeEvent
m_clientName = eventToConsume.ClientName
End Sub
Public Sub ConsumeDisableEvent(sequence As Integer, eventToConsume As Events.Client.DisabledEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.DisabledEvent).ConsumeEvent
m_enabled = False
End Sub
Public Sub ConsumeEnabledEvent(sequence As Integer, eventToConsume As Events.Client.EnabledEvent) Implements IEventConsumer(Of AggregateIdentifiers.ClientAggregateIdentity, Events.Client.EnabledEvent).ConsumeEvent
m_enabled = True
End Sub
End Class
I assure you it seemed like a good idea near the top of this rabbit hole...
modified 9-Apr-15 18:38pm.
|
|
|
|
|
I think you just proved why I have such a low opinion of VB programmers.
(Marc ducks and runs for cover)
|
|
|
|
|
It'd probably be as ugly in C#with the need for explicit interface implementation
|
|
|
|
|
It's been a while since I've seen any VB..
Public ReadOnly Property Enabled As Boolean
Get
Return m_enabled
End Get
End Property
C# certainly appears to be slightly cleaner in my opinion, although it's a matter of preference/working environment/etc..
public readonly bool Enabled { get { return m_enabled; } }
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
You can do implied getters/setters in VB (and C#) to save a bit of space.
It was more the one implements of the interface per event handler that was the OMG part.
|
|
|
|
|
I've seen a lot (lot) worse, tbh
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Public Property Something As String
Get
Return _Something
End Get
Set(value As String)
_Something = value
End Set
End Property
public string Something
{
get
{
return _Something;
}
set
{
_Something = value;
}
} That's eight vs. eleven lines. It adds up!
I always find VB has a vertical cleanliness whereas C# has a horizontal cleanliness
I love both languages by the way. It's just a little bit easier to write messy code in VB due to backwards compatibility with VB1-6, but you can write utter crap in both languages any language!
Started out in VB.NET and later moved to C#.
|
|
|
|
|
In your example, VB has 20 keywords, variable names, etc. C# has 9. Nuff said
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
But still less vertical space!
|
|
|
|
|
Sander Rossel wrote: But still less vertical space!
public string Something
{
get { return _Something; }
set { _Something = value; }
} Where, exactly?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Yep, that's how I would write simple getters and setters. I only go multiline if there's some additional logic in there
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
In VB.NET you could type only
Public String Something
variable _Someting would be internally created and accessible without explicit definition. I don't know if they added it in C# too..
While there are more keywords, intellisense is better and there is actually less typing in vb version
|
|
|
|
|
|
VB? I see why you're ashamed!
veni bibi saltavi
|
|
|
|
|
expected ';'
|
|
|
|
|
When it is just so very easy?
Select Case word
Case "JULY"
Return 7
End Select
|
|
|
|
|
Maybe because if you used mixed case (July) it would fail, or be hard for the original author to determine what the issue was?
|
|
|
|
|
"because it requires a recompile to update the values"
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Nothing is removed from the snippet- it really can only deal with JULY.
|
|
|
|