Questions tagged [anonymous]

DO NOT USE! Please use a more specific tag such as [anonymous-function] or [anonymous-class].

The term anonymous has come to represent different aspects of development with the rise of the functional programming style and the use of anonymous on-demand applications.

In an effort to disambiguate this tag, it has been split into the following subcategories:

Category Description
Anonymous Classes An anonymous class is a local class without a name. An anonymous class is defined and instantiated in a single succinct expression using the new operator.
Anonymous Functions Anonymous functions use a block of code as a value, defining it as an inline function without a name.
Anonymous Methods An anonymous method is a procedure or function that does not have a name associated with it.
Anonymous Types Anonymous types are data types which dynamically add a set of properties into a single object without having to first explicitly define a type
Anonymous Users Anonymous users are individuals or systems that make use of a product or service, without formally registering account details and are instead associated with some token or identifier.

Former Tag Definition

For new questions, see [anonymous-class] and [anonymous-function].

Typically, a programming language construct like a function or class has a name associated with it -- a symbol that can be used to refer to the construct in some context. An anonymous function or class is one that, in contrast to normal practice, has no name. For example, in Java, you can create an anonymous class using a special syntax that defines a class and constructs an instance of it at the same time:

Runnable r = new Runnable() {
    public void run() {
        System.out.println("Running");
    }
};

The variable r holds a reference to an instance of a class which has no name in Java, but which implements the Runnable interface and can be used anywhere a Runnable instance is needed.

702 questions
0
votes
1 answer

"Anonymous" appears in the top-left corner of my Wordpress page

For my web page here, the Wordpress pages keep on showing the word "anonymous" in the top-left corner. I have tried disabling all of the plugins but that didn't affect it. I also changed the theme and it disappeared so I'm certain it's a theme…
0
votes
3 answers

Is it possible not to inherit some private inner classes in java?

I have Class1 that contains many private inner anonymous classes like: ClassAInterface var1=new ClassAInterface { ..... When I inherit Class2 from Class1 is it possible not to inherit all these classes but replace with new? So all methods that…
user810430
  • 11,181
  • 15
  • 38
  • 43
0
votes
1 answer

MVC3 authentication and anonymous users

I have an MVC3 application that uses the standard accountcontroller that comes with visual studio to authenticate users. I want to share specific parts of my program with people, much like google shares documents in google docs when you do that via…
garma
  • 213
  • 1
  • 3
  • 12
-1
votes
1 answer

When do you declare variables in anonymous functions in Golang?

I use some anonymous functions in my code and I’m trying to understand the difference (if there is one) between these two code snipets being called in a function: defer func(s *Service, ID string) { err := s.Deprovision(ID) if err != nil { …
-1
votes
2 answers

app.js:12 Uncaught TypeError: Cannot read properties of undefined (reading 'className') at HTMLDivElement. (app.js:12:53)

I have ran into a problem. I have a website and some buttons to the right. using JS, I want to change the style of the button we click on. When you land on the page, the home button will have a background-color: green. But when you click another…
-1
votes
1 answer

Anonymous structs outside function not working

I don't understand why this doesn't work for this type of structure. package main import ( "fmt" ) var myStruct struct { number float64 word string toggle bool } myStruct.number = 3.14 myStruct.word =…
Alex_N
  • 19
  • 2
-1
votes
1 answer

How to hide Apache server IP?

I'm creating a website which needs do some data gathering anonymously. I ran an Ubuntu server with Apache, and normally when I want to run my script, target websites and servers can determine my server real IP. Is there any solution to hide Apache…
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
-1
votes
1 answer

jQuery anonymous vs named function syntax

This code works to fade and loop an audio element when a button is pressed: $("#loop").click(function(){ var tone = document.getElementById("testTone"); tone.play(); $("#testTone").animate({volume: 0}, 1900); setInterval(function(){ …
drenl
  • 1,321
  • 4
  • 18
  • 32
-1
votes
1 answer

How to send SMS anonymously?

Nowadays, I wonder how SMS services work and they allow us to send message without sharing any number. I want to know the logic of this process. For example, can I build my own SMS sending service? If you have any knowledge about this topic, can you…
Marc Blume
  • 79
  • 1
  • 2
  • 8
-1
votes
3 answers

Python flask requests load page

Create script which loads page from my server (with server IP etc.) - all OK, but if I want to click on any link I landed to 404 error page, because link is - some thing like this: ...37.139.17.81:5000/html/privacy-check.php My code: from flask…
Konstantin Rusanov
  • 6,414
  • 11
  • 42
  • 55
-1
votes
1 answer

Equivalent code in c#?

I am analyzing a program in the Exceptions section, but i don't understand what this piece of code do: if (obj.ValidationExceptions.Exists( delegate(Exceptions.ValidationException x) { return x.Type ==…
Aben
  • 45
  • 1
  • 7
-1
votes
1 answer

javascript anonyfunction style

Those 1,2 case are same in using anonymous function in Javascript ? Normally, case 1 is seen easily. Case 1 : $('img:eq(0)').attr('src', ( function(){return '1'} ) ()); //works console.log((function(){return '1'})()); //works Case 2…
fr2lancer
  • 1
  • 2
-1
votes
2 answers

Read a .txt file from an anonymous FTP page?

My goal is to to convert a .txt file on an FTP page to a simple String for easy manipulation. The specific .txt file is here: ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt. It is an anonymous FTP page, so when I use my computer's…
user2323030
  • 1,193
  • 4
  • 16
  • 37
-1
votes
3 answers

initialization of a field inside an anonymous union, upon declaration

I have the following structs: typedef struct cxt_simple_socket_address_s { int is_ipv6; cs_inaddr_t ip; unsigned short ip_port; } cxt_simple_socket_address_t; typedef struct cs_inaddr { union { struct…
-1
votes
1 answer

text field with submit to email button where the user remains anonymous

I need a large text field with a button that submits the data to an email, ANONYMOUSLY. Is this possible? is there anything even relatively close? The code needed is for Tumblr, they have a submit function but requires user data, they have an…