Why do they call it "hard" coding?
-
When it is just so very easy?
Select Case word
Case "JULY"
Return 7
End SelectMaybe because if you used mixed case (July) it would fail, or be hard for the original author to determine what the issue was?
-
Maybe because if you used mixed case (July) it would fail, or be hard for the original author to determine what the issue was?
-
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?
Nothing is removed from the snippet- it really can only deal with JULY.
-
Nothing is removed from the snippet- it really can only deal with JULY.
Where is that sarcasm icon when it's needed most?
-
Nothing is removed from the snippet- it really can only deal with JULY.
Maybe the TDDers never got round to writing the tests for other strings - therefore they weren't allowed to change it!
-
Or different languages.
-
When it is just so very easy?
Select Case word
Case "JULY"
Return 7
End Selectoh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D
V.
(MQOTD rules and previous solutions) -
Or different languages.
That's the one to watch for these days.. Your product may only be intended to English speaking nations (although there are differences even between these), but eventually some bright spark of a salesman's going to drop everyone in it selling a version to Beijing or some other exotic location :laugh:
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
-
oh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D
V.
(MQOTD rules and previous solutions)I challenge you to pronounce you if you're not slavic :) (I am, btw) R in sRpanj is hard as when the russian speaks english in movies and nj is single letter pronounced like New without U :)
-
oh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D
V.
(MQOTD rules and previous solutions) -
I challenge you to pronounce you if you're not slavic :) (I am, btw) R in sRpanj is hard as when the russian speaks english in movies and nj is single letter pronounced like New without U :)
I did before I read your explanation, do I win a cookie? :-D
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson