A made-up name is better than no name
51–60 of 86 posts
Re: A made-up name is better than no name
#52PosMove, but nothing wrong with MoveFromPosition either.
I also easily get annoyed by mouthful typing, so I usually do the following: write code in short identifiers and then rename them after I finish.
I wish dev envs could store two representations for an identifier, one short and one long, so one could easily switch between these (and also local/personal ones, or name comments at least). But that’s rocket science for text-based sources.
Re: A made-up name is better than no name
#53Earlier quoted context omitted.
No, it's not just the computer world. Affordable housing where I live is a specific thing. Below-market-rate housing purchaseable/rentable with specific income requirements. Some number of units in new builds are usually required to meet this requirement. Your example sounds similar, it is also specifically defined and not just housing that is affordable but rather it meets specific requirements. A cross-country flig…
Thank you; I appreciate the explanation. I suppose the cross-country flight is so named as to preclude student pilots flying around and around in small circles to qualify?
Re: A made-up name is better than no name
#54I often remove the vowels, so I'd have probably gone with 'pdSn' as the shorthand for it.
Re: A made-up name is better than no name
#55I really don’t like this idea if you are sharing this code base with anyone else. I work in one of the magnificent seven and the culture here is codename crazy. Everything has code names, of course: every project, every release of every project, every component or subservice of every project, every internal tool, and often minor features that address some one-off problem in any of the above. I am sure that these name…
I feel like that complaint is somewhat addressed by the blog post itself: > Obviously don’t go crazy with it, but it’s a tool I’m happy to have added to the toolbox. It sounds like your company culture has gone crazy with it, which, yea, I would think it would make it hard to reason about. I think this kind of naming approach could be...reasonable in a shared code base, if used very sparingly and well documented.
Don't do it 15 times, though, because then it's going to slow down onboarding more than the benefit you get.
Re: A made-up name is better than no name
#56Instead of "kep", if you want something that visually stands out, there are also lots of fun little symbol-like characters you can use, even when you're dealing with a language where identifiers are limited to ID_Start/ID_Continue (e.g. Javascript, Rust). My favorite collection :) ⴵ ⵛ ꘜ ⵣ ꕤ ꖜ ꘖ ꧮ ⴲ Ⰴ Ⰺ
Re: A made-up name is better than no name
#57I really don’t like this idea if you are sharing this code base with anyone else. I work in one of the magnificent seven and the culture here is codename crazy. Everything has code names, of course: every project, every release of every project, every component or subservice of every project, every internal tool, and often minor features that address some one-off problem in any of the above. I am sure that these name…
I prefer code names over acronyms. Like code names, acronyms are meaningless to the uninitiated, but for me code names are more memorable. Here, I don't know what "EPD" or "SAN" mean and these are terms I have to get familiar with when reading the code base, just like "kep". I get that EPD and SAN are probably familiar terms to chess people, but the idea there is never a code base where you don't have to get familar…
Re: A made-up name is better than no name
#58> A Made-up Name is Better Than No Name Perhaps, but a meaningful name is better than an arbitrary made-up name.
Re: A made-up name is better than no name
#59Earlier quoted context omitted.
I prefer code names over acronyms. Like code names, acronyms are meaningless to the uninitiated, but for me code names are more memorable. Here, I don't know what "EPD" or "SAN" mean and these are terms I have to get familiar with when reading the code base, just like "kep". I get that EPD and SAN are probably familiar terms to chess people, but the idea there is never a code base where you don't have to get familar…
Those are abbreviations, not acronyms.
Re: A made-up name is better than no name
#60Earlier quoted context omitted.
Thank you; I appreciate the explanation. I suppose the cross-country flight is so named as to preclude student pilots flying around and around in small circles to qualify?
I don't know why it's named that way but you need some number of cross-country flights and hours because there are skills that you pick up doing that (several kinds of navigation, fuel management, weather management, flight planning, map reading, etc) that you wouldn't by flying in circles or by spending time in the pattern (looped takeoffs and landings, which you do also need to do a fair amount of but builds a sepa…