Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 What do easy data structures do to the programmer?
Index -> Programming, General Programming -> Functional Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Fri Oct 20, 2006 11:30 am   Post subject: What do easy data structures do to the programmer?

Disclaimer: no, not all of the languages mentioned here are, strictly speaking, functional programming languages. However, I believe that in the context of this topic, they are at least functional-ish.

But I digress...

How does it affect the habits and priorities of a programmer, when that programmer is given the ability to easily construct data structures?

Consider creating a list/array...

O'Caml

code:
[1; 2; 3]


SML, Ruby, Python, Haskell, Perl, Erlang

code:
[1, 2, 3]


Lisp/Scheme

code:
'(1 2 3)


Now, I don't want to spend a lot of time writing code here. I want a discussion. Smile

So... discuss!
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Fri Oct 20, 2006 11:33 am   Post subject: (No subject)

I'd say it lets them write code faster and easier.

As for affecting habits, it shouldn't do anything in a bad way. It may make them lazier, but name a programmer that isn't lazy.
Tony




PostPosted: Fri Oct 20, 2006 3:04 pm   Post subject: (No subject)

I'm amazed by the ease of datastructures with Ruby's YAML <=> Hash

I can easily create/save/load/change structure, all on the fly, with minimal effort.

Habbits? I don't know.. I suppose it's becomes so much easier to change the structure to fit your code, rather than code to fit an existing structure Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, General Programming -> Functional Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: