[Year 12 SofDev] Records and Arrays

Laurie Savage savage.john.l at edumail.vic.gov.au
Fri Aug 20 08:35:01 EST 2010


Hi again,

 

I seem to have set the cat among the pigeons with my original post. I'm
wondering whether, based on Guy and David's reflections on the Pascal basis
of the term, we need to keep the notion of a record at a formal level. It
seems that what we persist in calling a record is, in practice if not in
fact, a 1D array of any type of term, and a 2D array is a collection of
"records". 

 

Laurie

 

From: sofdev-bounces at edulists.com.au [mailto:sofdev-bounces at edulists.com.au]
On Behalf Of Janson, Adrian A
Sent: Thursday, 19 August 2010 8:54 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: RE: [Year 12 SofDev] Records and Arrays

 

Hi everyone,

 

I know that some of you were happy with the definitions I posted before, and
I do want to keep them simple - but, how about this:

 

 

One-Dimensional Arrays

 

A one dimensional (or 1D) array is a data structure in which variables are
grouped together under the same name and accessed via a number known as the
'index'.  Although an array typically contains only one data type, it can
consist of multiple data types (as is possible in some languages such as PHP
and Python).

 

....

 

Records

 

A record is a structure that can be used to group together variables for a
particular purpose.  Records are similar to arrays but whereas an array
usually contains elements all of the same type, the variables within a
record are usually of different types and sizes.  Indexing the elements of a
record is often done via an identifier which is declared at the same time as
the record.

 

 

The important thing - as some have stated already, is for us to be able to
tell students: 'this is the standard definition of an array and a record'.
So if a student were asked on the exam 'what is an array', they could answer
'an array is a data structure in which variables are grouped together under
the same name and accessing using an index number'. - and get full marks.

 

Adrian

 

Adrian Janson B.Sc, Dip.Ed, M.Ed
Director of ICT
Melbourne High School, Forrest Hill, South Yarra, Victoria 3141 Australia.
Phone: 03 9826 0711 International: +61 3 9826 0711
Fax: 03 9826 8767 International: +61 3 9826 8767
E-mail: janson.adrian.a at edumail.vic.gov.au
<https://www.edumail.vic.gov.au/mail/janson.adrian.a/Drafts/RE:%20%5bYear%20
12%20SofDev%5d%20Records%20and%20Arrays.EML/janson.adrian.a at edumail.vic.gov.
au> 

Website: http://www.mhs.vic.edu.au <http://www.mhs.vic.edu.au/> 

Blog: http://jansona.edublogs.org <http://jansona.edublogs.org/> 

 

  _____  

From: sofdev-bounces at edulists.com.au on behalf of David Dawson
Sent: Thu 19/08/2010 8:46 PM
To: sofdev at edulists.com.au
Subject: Re: [Year 12 SofDev] Records and Arrays

What a fascinating discussion this is! (No I mean it!)
When I started teaching Pascal in 1998 - I was so confused by "records"
- and came to see them as "customised data types" and - having just
learnt some Java and C++ - I figured they were really like Classes - or
even objects.
In any case I have not come up against this mysterious "data structure"
in the other languages I have explored - in C they are constructed and
can be called anything - and I bet that the library file could be
renamed ""list_o_stuff" - even in Pascal.
I prefer PHP at present and in PHP - like so many languages - the thing
people seem to miss is that in "weakly typed languages" everything just
starts as a String and is dealt with "contextually" as someone cleverly
pointed out earlier. If there are numbers we wish to multiply the
language figures this out by our operations - very smooth!
An array is a list defined by a computer language to store temporary
Strings! Some languages limit these - if they insist on strong variable
typing.
I really hope records are just amended out of any reference in the study
design.
IMHO they died 10 years ago!

David Dawson
Head of Information Technology Learning Area
Head of Learning Technologies
St Kilda Rd Campus
Wesley College
577 St Kilda Rd
Melbourne 3004
Ph 8102 6340
Mob 0425 718147

____________________________________________________________________________

Sapere Aude - Dare To Be Wise

Wesley College Melbourne is a world class coeducational independent school
developing the whole person through timeless principles of learning:
- to know
- to do
- to live with
- to be
with innovation and wisdom

ABN 38 994 068 473  CRICOS 00354G
____________________________________________________________________________

This email is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged. If
you are not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this email is strictly prohibited.
If you have received this email in error, please email a reply to Wesley
College and destroy the original message.

_______________________________________________
http://www.edulists.com.au <http://www.edulists.com.au/>  - FAQ, Subscribe,
Unsubscribe
IT Software Development Mailing List kindly supported by
http://www.vcaa.vic.edu.au <http://www.vcaa.vic.edu.au/>  - Victorian
Curriculum and Assessment Authority and
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html
http://www.vitta.org.au <http://www.vitta.org.au/>   - VITTA Victorian
Information Technology Teachers Association Inc


Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20100820/9fe4c782/attachment-0001.html 


More information about the sofdev mailing list