la forme typée des collections

English translation: typed collections

GLOSSARY ENTRY (DERIVED FROM QUESTION BELOW)
French term or phrase: la forme typée des collections
English translation:typed collections
Entered by: veratek

09:45 Oct 29, 2010
French to English translations [PRO]
Tech/Engineering - IT (Information Technology) / JAVA
French term or phrase: la forme typée des collections
En JDK 1.5, il est recommandé d’utiliser la forme typée des collections.
// EVITER
List nameList = new ArrayList();
nameList.add(“Watson”);
// PREFERER
List nameList = new ArrayList();
nameList.add(“Watson”);
veratek
Brazil
Local time: 02:49
typed collections
Explanation:
as opposed to untyped.

Sorry Neil, this isn't generics. Generics are closer to templates in languages like (historically) C++. In others, like Ada and related, they are called just that - generics.

Typed means that collection (in this case) is of a known type - string collection, collection specifically of strings. The other, untyped option would be a collection of anything (strings too).

Also, you are completly wrong about the difference between weak/strong typing and compile/runtime type checking. Either weak or strong (or none at all!) can be done at compile or run-time (or both or none).

Typing system (strong/weak) and it's implementation (compile/run-time) are completely spearate beasts.
Selected response from:

Kiwiland Bear
New Zealand
Local time: 17:49
Grading comment
4 KudoZ points were awarded for this answer



Summary of answers provided
5typed collections
Kiwiland Bear
4 -1generic (form of) collections
Neil Coffey
3 -2specified form of collections
La Classe
Summary of reference entries provided
liz askew

Discussion entries: 8





  

Answers


12 mins   confidence: Answerer confidence 3/5Answerer confidence 3/5 peer agreement (net): -2
specified form of collections


Explanation:
Here it seems that typée is specified.

La Classe
Local time: 11:19
Works in field
Native speaker of: English
PRO pts in category: 20

Peer comments on this answer (and responses from the answerer)
disagree  Neil Coffey: No! See my answer.
1 hr

disagree  Kiwiland Bear: Totally wrong.
6 hrs
Login to enter a peer comment (or grade)

1 hr   confidence: Answerer confidence 4/5Answerer confidence 4/5 peer agreement (net): -1
generic (form of) collections


Explanation:
I assume that in your second example, the preferred form actually says List<String> etc, with "String" in angle brackets. They're referring to a programming feature called "generics", where you can specify the type (class) of object held by a data structure.

You *could* say "typed", but I think it's more common to talk about the "generic" or "non-generic" form of a collection.


    Reference: http://download.oracle.com/javase/1.5.0/docs/guide/language/...
    Reference: http://www.angelikalanger.com/GenericsFAQ/FAQSections/Progra...
Neil Coffey
United Kingdom
Local time: 06:49
Specializes in field
Native speaker of: Native in EnglishEnglish
PRO pts in category: 48
Notes to answerer
Asker: I see what happened! my copy -paste of the preferred example isn't working because of the angle brackets. the Proz site is eliminating part of the text... you were right in case - string in angle brackets!


Peer comments on this answer (and responses from the answerer)
disagree  Kiwiland Bear: Sorry, no. Typed /= generics. And they are talking about typed collections here.
5 hrs
  -> Specifically in Java, I'm not sure what other types of "typed collections" you envisage...
Login to enter a peer comment (or grade)

6 hrs   confidence: Answerer confidence 5/5
typed collections


Explanation:
as opposed to untyped.

Sorry Neil, this isn't generics. Generics are closer to templates in languages like (historically) C++. In others, like Ada and related, they are called just that - generics.

Typed means that collection (in this case) is of a known type - string collection, collection specifically of strings. The other, untyped option would be a collection of anything (strings too).

Also, you are completly wrong about the difference between weak/strong typing and compile/runtime type checking. Either weak or strong (or none at all!) can be done at compile or run-time (or both or none).

Typing system (strong/weak) and it's implementation (compile/run-time) are completely spearate beasts.

Kiwiland Bear
New Zealand
Local time: 17:49
Specializes in field
Native speaker of: Russian
PRO pts in category: 41
Login to enter a peer comment (or grade)




Reference comments


14 mins peer agreement (net): +1
Reference

Reference information:
does "typée" have anything to do with "typed"..see:

Objects First with Java: Supplementary Material
Using typed collections has a knock-on effect with the use of iterators. .... We recommend that it be used wherever the basic style of iteration is needed. ... In its simplest form, an enumerated type allows us to create a dedicated ...
www.bluej.org/objects.../java5-supplement.html - Cached - Similar

--------------------------------------------------
Note added at 16 mins (2010-10-29 10:01:43 GMT)
--------------------------------------------------

http://webcache.googleusercontent.com/search?q=cache:2HuYySQ...


Strongly-typed collection (Java 5+ only)

In Java 5 and later, you can use strongly typed collections (using generic types). That is, it is possible to declare a Collection type such that it can only contain String elements (for example). If you are using Spring to dependency-inject a strongly-typed Collection into a bean, you can take advantage of Spring's type-conversion support such that the elements of your strongly-typed Collection instances are converted to the appropriate type prior to being added to the Collection.

liz askew
United Kingdom
Native speaker of: Native in EnglishEnglish
PRO pts in category: 40

Peer comments on this reference comment (and responses from the reference poster)
agree  Neil Coffey: Yes, it's basically referring to this. Very strictly speaking, Java generic classes aren't "strongly typed", though so I'd avoid this.
1 hr
  -> Thank you! Not my forté, just found the reference...
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