Questions tagged [nomenclature]

Nomenclature is a term that applies to either a list of names or terms, or to the system of principles, procedures and terms related to naming.

128 questions
15
votes
3 answers

What is an int() Called?

It's been rehashed over and over that primitive types don't have constructors. For example this _bar is not initialized to 0 when I call Foo(): class Foo{ int _bar; }; So obviously int() is not a constructor. But what is it's name? In this…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
15
votes
3 answers

What does 'site' in 'site-packages' actually mean?

I've always been a bit curious about the rationale of the naming of site-packages. What does site mean in this context? I doubt it means 'website', and I've never heard 'site' used in relation to the installation location, or the context of the…
Joe
  • 46,419
  • 33
  • 155
  • 245
13
votes
4 answers

accessor and mutator?

when using doctrine i stumble upon these 2 words: accessor and mutator. are these only used in doctrine or are they specific for php? and what do they mean? thanks
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
11
votes
6 answers

JavaScript try/catch: errors or exceptions?

OK. I may be splitting hairs here, but my code isn't consistent and I'd like to make it so. But before I do, I want to make sure I'm going the right way. In practice this doesn't matter, but this has been bothering me for a while so I figured I'd…
Josh
  • 10,961
  • 11
  • 65
  • 108
10
votes
4 answers

Name that technique (it may be called 'piggybacking')

What is the name of the following method/technique (I'll try to describe the best I could, background on "memoization" is probably needed to understand why this technique can be very useful): You start some potentially lenghty asynchronous…
cocotwo
  • 1,285
  • 2
  • 13
  • 19
9
votes
6 answers

What part of the C# language is .ForEach()?

If I'm explaining the following ForEach feature to someone, is it accurate to say that #2 is the "LINQ foreach approach" or is it simply a "List extension method" that is not officially associated with LINQ? var youngCustomers = from c in…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
9
votes
1 answer

Where does the "core" namespace nomenclature derive from?

I'm relatively new to Clojure but I've noticed many projects implement a "core" namespace; e.g. foobar.core seems to be a very common pattern. What's the history behind this and why is it the de facto standard?
maxcountryman
  • 1,562
  • 1
  • 24
  • 51
8
votes
8 answers

Is "temp" ever a good variable name?

Sometimes I've been trying to come up with a good variable name for minutes, when I realize that it isn't worth the effort for this tiny loop. Is there any situation where it would be justified to call a variable "temp"? Update: I should have been…
Tim
  • 13,904
  • 10
  • 69
  • 101
8
votes
5 answers

.NET platform, .NET environment or .NET framework which is correct? And what's the difference between platform/environment/framework?

In some documents (i.e. ECMA-334) the name of '.NET framework' is used, but in other documents (in many books), '.NET platform' is used. I saw someone refer .NET as .NET environment. Which one is correct nomenclature for .NET? In general, what's…
prosseek
  • 182,215
  • 215
  • 566
  • 871
7
votes
0 answers

Graph algorithm: simplify graph by replacing chains of nodes with single node

I'm looking for a directed weighted graph simplification algorithm that seeks chains of nodes which have exactly one inbound edge and exactly one outbound edge and are interconnected and replaces such chains with single node that has weight equal to…
6
votes
7 answers

What is this functional "pattern" called?

I was fooling around with some functional programming when I came across the need for this function, however I don't know what this sort of thing is called in standard nomenclature. Anyone recognizes it? function WhatAmIDoing(args...) return…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
6
votes
4 answers

What is the name of this operator =>?

Possible Duplicate: What is the => token called? What is the name of this operator in C#?
RHaguiuda
  • 3,207
  • 9
  • 37
  • 55
6
votes
4 answers

Where does the word "dereferencing" come from?

This question will draw information from the draft N1570, so C11 basically. Colloquially, to dereference a pointer means to apply the unary * operator to a pointer. There is only one place where the word "dereferencing" exists in the draft document…
user3920237
6
votes
2 answers

Public method calls private method with the same name - what is this pattern?

Consider this code from Apache Commons StringUtils: public static String[] splitByCharacterType(final String str) { return splitByCharacterType(str, false); } private static String[] splitByCharacterType(final String str, final boolean…
Kao
  • 7,225
  • 9
  • 41
  • 65
6
votes
7 answers

Name of class of programming languages that execute its own code

What do you call a programming language that can execute its own code (passed as a string literal)? The setting in my mind is something similar to this (forgetting for a moment typing of code, results, etc): string eight = "5+3" int result =…
user210870
1
2
3
8 9