I doubt specimen will catch on. It implies something kept behind glass to prevent damage/contamination. When teaching something you do not want to distance your audience from the code in any way. You have already used probably the best word - sample. You could also use example. I doubt any of these words will get common use though. Unfortunately the term snippet has become entrenched in some peoples minds as the correct term for a short piece of code.
CodeWomble
Posts
-
an excellent specimen -
Words of Wiz-DumbThere is a Casey and Andy for that: Link goes to external webcomic hosted on http://www.galactanet.com Casey and Andy[^]
-
Pulled The Trigger Last NightBut surely 640k is enough? :-D
-
Are Lenovo laptops any good?Sorry about that. Post was not going in to moderation, just the submit button was not doing anything. Disabling the submit button when clicked client side might help. *sorry, I am not a web developer) Sorry man, Mark
-
Are Lenovo laptops any good?I am currently eyeing up a Asus Zenbook Duo - the keyboard is at the front, so no reaching over the touchpad to type. The only problem is they are expensive - especially the i9 version :-D
-
Are Lenovo laptops any good?I am currently eyeing up a Asus Zenbook Duo - the keyboard is at the front, so no reaching over the touchpad to type. The only problem is they are expensive - especially the i9 version :-D
-
Are Lenovo laptops any good?I am currently eyeing up a Asus Zenbook Duo - the keyboard is at the front, so no reaching over the touchpad to type. The only problem is they are expensive - especially the i9 version :-D
-
Are Lenovo laptops any good?I am currently eyeing up a Asus Zenbook Duo - the keyboard is at the front, so no reaching over the touchpad to type. The only problem is they are expensive - especially the i9 version :-D
-
Sitting in the dentist, waiting for Herself's checkup...Start from the bottom and work your way up?
-
Flabbergasted by VNC, I opt for KVMHmm, I guess there was no monitor connected to the Mac. I know when I remote connected to a Windows PC without a monitor it caused issues with the remote software. If you need to go back to remote desktop software you could try a monitor emulator dongle (AKA HDMI dummy plug) to simulate a monitor in hardware. Software-wise I use TeamViewer - it is free for personal use. It can work over a local network, although that is not the default.
-
how can I know my keyboard is 3270 terminal or not3270 compatible keyboards will typically have two rows of function keys - although early keyboards will have none. Can you give me some more information about this keyboard please? For example what connector is on the cable? Are there any keys on it that are not on a standard keyboard (a photo would be nice)? Do you know the make/model?
-
a question about angle of sandYeah, it does seem a little steep. I would assume the 30 degrees is more accurate. I have been trying to sanity check it by imagining a stack of marbles. A triangular pyramid of marbles would have a 45 degree angle on the face. That would not be the angle of repose though.
-
a question about angle of sandIs the book referring to wet sand?
-
Need A 5 letter word with Y L and an H on the endCheating? You'll get LYNCHed for that :-)
-
Straw poll extensions?I voted it was not part of the extension based on the old 8.3 filename standard. Also when describing a file I would say 'It's a PNG' rather than 'It's a .PNG' The first time I used Path.GetExtension() I was wrong about what it returns. I suspect they applied the same rules to filenames as they did to TLDs (.COM, rather than COM) etc. Oh well, no big deal. Technically it is part of the filename, but so is the extension. The bit before the last dot is the base filename. All in all, file extensions are a bit of a head-scratcher. Having file metadata as part of the filename is plain wrong.
-
Data breach, but no security vulnerability?Because customer info is a commodity. Company info is a security issue.
-
Does such a software exist?Yes and no. The similarities can be washed out by the noise in the sentence, particularly with all of the different accents/varieties of English that are spoken around the world. Also, just identifying word endings can be tricky. Picking out words from "rainy days" can give "rainy days", "ray knee days" or "ray need as'" without changing the sound.
-
I thought I knew C++ *sob* It has been inserting extra code on me this whole time.Disclaimer: I have never used templates and rarely use C++, so this is just an observation... It looks like there is something swish about the use of pin and Pin - it might be worth accessing Pin as pin in the test() method? or something like that. Good luck!
-
blind micro optimisationI could argue the performance either way, so unless this has been pinpointed as a bottleneck I would ignore performance. With that in mind I would go with the first method, as it is a lot clearer and more maintainable. If it does become a performance bottleneck I would consider refactoring the source so it does not store A and B together, as that will presumably be an issue in a lot of places.
-
For the love of...Hmm, no option to uninstall edge. The next time it opens I am going linux and suffering that pain. Your move, Microsoft.