108 reputation
4
bio website
location
age
visits member for 1 year, 10 months
seen Apr 7 at 13:43

Jun
29
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
jk - so if I replaced bool, fully spelling it out as boolean, it wouldn't apply?
May
11
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
@AakashM: That question looks like a potential debate, but let me just say I'm referring to applying any naming prefix/suffix rule based entirely on a variable type. When I asked the question I was considering making a naive commitment to do so. (Is, On).
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
Yes, I actually wondered if I might have pulled "On" from my database experience, although I don't think it is more typical for MS SQL schemas than others. Note that I'm using On to indicate a Date in my examples. Just more proof that no name is bullet-proof. :)
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
p.s. I'll take that answer :)
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
Assuming that you'd also interpret "Company" as a non-standard/non-core type, I'm on the same page as you. The seeming "rule" I was questioning just came from the fact that any past-tense verb has the same ambiguity: Recorded, Reported, Opened, Closed, Etcetera(ed).
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
Looking more at what seems right to me, natural language does seem to play the largest role for me. I find that "FirstVerified", "LastVerified", and "LastActivity" make sense to me. "Begin" and "End" are reasonable to me on an "Engagement" object, but would need clarification on a "Building" object. But "CreatedOn", "OpenedOn", and "ResolvedOn" all help clarify the intent is to record some type of time, where it would be reasonable to interpret the core function of the variable incorrectly when reading naturally. Conversely, "IsOffered" helps clarify also.
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
Yes, Aleksandra, I've tried all sorts of things in the past to avoid using the word "Code" in my naming, substituting things like "-HumanReferenceId", "-State", or other identifiers. You raise a good thought experiment for me to test against. It seems that in-general, I try to ensure that an English speaker who understands the business logic doesn't need to inspect the type to fully understand all the information the object can convey.
May
10
comment “Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
Very good point. That could certainly explain why it "feels right" to me. I wonder, does that mean it IS right? It just seems that invariably when I do not use "Is" and "On" I have a harder time understanding my own code.
Sep
5
comment Do you keep intermediate files under version control?
I may publish websites for clients, but do not typically have a license for the software to build SWF files on the devices I publish websites from. In those cases I need the flash content artists to commit the final output to revision control.