6 AM is too early to be coming across code like th...
# water-cooler
j
6 AM is too early to be coming across code like this…lol. Terrifying this person is ultimately processing credit cards.
a
Wow. I wonder how many things are "wrong" with this. I particularly love the use of
<cfoutput>
and pound-signs in this. And tags.
🤣 2
n
I just don't understand the requirement of getting the first or last letter in UCASE from a static string. WTF? ... just put T ? or Y?
😆 2
a
I think they thought "today" would magically resolve to - eg - 2022-02-25. Or they had guidance from elsewhere (like a Jira ticket etc) saying "take the first and last character from today [implied: today's date] [because reasons]", and they were too hopeless to work that out.
☝️ 1
😂 1
To be frank... nothing I see there surprises me of the capabilities & nous of a lot of CFML devs*.*
☝🏾 1
t
At least the value of
y
is Y. You can almost pretend it's a reasonable variable name.
🤔 2
😆 1
p
Oh man, I think I need a drink after that one... Forget the coffee, break out the hard stuff!
a
#hemlock
a
It's not even the worst thing here but using a capital letter for the start of every function except
ucase
is really hurting my feelings 😂
🤣 2