defer

English translation: delegate its role to the constructor

22:05 Feb 24, 2004
English language (monolingual) [PRO]
Tech/Engineering - IT (Information Technology) / Programming in Perl
English term or phrase: defer
In a case such as this, the entire plugin can be implemented by having the plugin's new( ) method defer to the modules constructor.
kgas (X)
Local time: 23:48
Selected answer:delegate its role to the constructor
Explanation:
Once again, this is an object-oriented programming question, not a natural language question. A good place for these technical questions is www.experts-exchange.com. That said, here is an explanation below:

1. The new() method is a function that exists in languages such as C, C++, and Java, which allocates memory to for a variable. You are probably dealing here with a plugin in Java or similar OO language. The new() function takes an variable name as an argument and allocates enough according to the size of that variable type (e.g.: in very simple terms: integer 32 bits, character 8 bits, etc.)

2. In an OO language an object must have two defined functions, one called the constructor and the other is the destructor. The constructor method knows the internal implementation of the object that is hidden to the users of the object, and when a new object needs to be instantiated (created), the constructor is called to put together an instance of that object.

Now putting (1) and (2) together: if the variable passed to new() is the name of an object instead of a simple variable, it does not just need to allocate memory for it, it needs to put the object together. But wait a minute ...

Problem: in OO programming the internals of the object should be hidden.

Solution: in OO languages, the new() function invokes the constructor of the object to create an instance of the object instead of creating the new object itself, ...

.. hence the new() method defers to the object's (module) constructor.

I hope to have explained this well.

--------------------------------------------------
Note added at 4 hrs 46 mins (2004-02-25 02:51:27 GMT)
--------------------------------------------------

Note on Alexander\'s comment:

First, I think we\'re getting too deep for a translation forum, that is why I suggest these types of questions should go to a technical forum.

Briefly, the context is not clear here, but in Java and C++, new is technically speaking an operator not a method, it takes as an argument the name of a class and returns an object of that class. eg. Type1 x = new Type1().

In this case you might be right since the reference is to a new() method. Still, apart from the possible inaccuracy of mentioning an argument (which we don\'t know here for sure), the meaning of \"defer\" still applies.
Selected response from:

Alaa Zeineldine
Egypt
Local time: 00:48
Grading comment
Graded automatically based on peer agreement.
4 KudoZ points were awarded for this answer



SUMMARY OF ALL EXPLANATIONS PROVIDED
5 +4delegate its role to the constructor
Alaa Zeineldine
4point to
tectranslate ITS GmbH
4 -1submit
Rafael Carvalho
2refer to / submit to
Jonathan MacKerron


  

Answers


2 mins   confidence: Answerer confidence 2/5Answerer confidence 2/5
refer to / submit to


Explanation:
are possible takes offered by Merriam-Webster

--------------------------------------------------
Note added at 2 mins (2004-02-24 22:08:00 GMT)
--------------------------------------------------

\"yield to\" is closer to your context

--------------------------------------------------
Note added at 7 mins (2004-02-24 22:13:10 GMT)
--------------------------------------------------

On second reading the sentence makes little sense; I don\'t see how a plugin\'s new method can defer to the modules constructor? Is the modules contructor a thing or a person? Sounds like a back-translation.

Jonathan MacKerron
Native speaker of: English
PRO pts in category: 4

Peer comments on this answer (and responses from the answerer)
agree  Vjollca Martinson
7 mins

disagree  Ildiko Santana: I don't think you should offer solutions in a field you are not familiar with at all. The sentence makes perfect sense to someone with knowledge of Perl programming. A case where M-W is not enough.
4 hrs
  -> if you say so boss
Login to enter a peer comment (or grade)

19 mins   confidence: Answerer confidence 4/5Answerer confidence 4/5
point to


Explanation:
...or call or invoke. The "new()" method invokes the "modules constructor".

tectranslate ITS GmbH
Local time: 23:48
Specializes in field
PRO pts in category: 8
Login to enter a peer comment (or grade)

23 mins   confidence: Answerer confidence 5/5 peer agreement (net): +4
delegate its role to the constructor


Explanation:
Once again, this is an object-oriented programming question, not a natural language question. A good place for these technical questions is www.experts-exchange.com. That said, here is an explanation below:

1. The new() method is a function that exists in languages such as C, C++, and Java, which allocates memory to for a variable. You are probably dealing here with a plugin in Java or similar OO language. The new() function takes an variable name as an argument and allocates enough according to the size of that variable type (e.g.: in very simple terms: integer 32 bits, character 8 bits, etc.)

2. In an OO language an object must have two defined functions, one called the constructor and the other is the destructor. The constructor method knows the internal implementation of the object that is hidden to the users of the object, and when a new object needs to be instantiated (created), the constructor is called to put together an instance of that object.

Now putting (1) and (2) together: if the variable passed to new() is the name of an object instead of a simple variable, it does not just need to allocate memory for it, it needs to put the object together. But wait a minute ...

Problem: in OO programming the internals of the object should be hidden.

Solution: in OO languages, the new() function invokes the constructor of the object to create an instance of the object instead of creating the new object itself, ...

.. hence the new() method defers to the object's (module) constructor.

I hope to have explained this well.

--------------------------------------------------
Note added at 4 hrs 46 mins (2004-02-25 02:51:27 GMT)
--------------------------------------------------

Note on Alexander\'s comment:

First, I think we\'re getting too deep for a translation forum, that is why I suggest these types of questions should go to a technical forum.

Briefly, the context is not clear here, but in Java and C++, new is technically speaking an operator not a method, it takes as an argument the name of a class and returns an object of that class. eg. Type1 x = new Type1().

In this case you might be right since the reference is to a new() method. Still, apart from the possible inaccuracy of mentioning an argument (which we don\'t know here for sure), the meaning of \"defer\" still applies.

Alaa Zeineldine
Egypt
Local time: 00:48
Specializes in field
Native speaker of: Native in ArabicArabic, Native in EnglishEnglish
PRO pts in category: 8
Grading comment
Graded automatically based on peer agreement.

Peer comments on this answer (and responses from the answerer)
neutral  Alexander Demyanov: new() doesn't seem to take arguments. In OO languages new() usually returns an object of the class of which this "new()" is. .|||Yep, new XXX() - operator; new() - method, often used for singletons. In the source phrase it's a method
2 hrs
  -> Thanks Alexander, please see my note above.

agree  Ildiko Santana: Excellent explanation, useful link.
4 hrs

agree  Lars Helbig
7 hrs

agree  tectranslate ITS GmbH: This is the most complete answer and it explains the concept quite well... WTG!
9 hrs

agree  senin
21 days
Login to enter a peer comment (or grade)

7 hrs   confidence: Answerer confidence 4/5Answerer confidence 4/5 peer agreement (net): -1
submit


Explanation:
Submit or yield to another's wish or opinion

Rafael Carvalho
Native speaker of: Native in PortuguesePortuguese

Peer comments on this answer (and responses from the answerer)
disagree  tectranslate ITS GmbH: Programs never yield to anyone's wish or opinion. Have you never noticed that? I realize that everyday on my computer running Windows. Seriously, in a programming context, your answer is way off.
2 hrs
  -> I should have thought I was going to trip out if I answered this question. Thanks, TectransDE. You have a point there.
Login to enter a peer comment (or grade)



Login or register (free and only takes a few minutes) to participate in this question.

You will also have access to many other tools and opportunities designed for those who have language-related jobs (or are passionate about them). Participation is free and the site has a strict confidentiality policy.

KudoZ™ translation help

The KudoZ network provides a framework for translators and others to assist each other with translations or explanations of terms and short phrases.


See also:
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search