Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old November 16th, 2006, 04:54 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,310 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 7832 Folding Title: Novice Folder
Time spent in forums: 6 Days 4 h 58 m 15 sec
Reputation Power: 4
Roles of variables

Some history first...

I started programming when I was ten. Everything I've learned so far has been through self teaching from books in the library and articles in the web, and asking and reading stuff on forums.

Currently I'm studying electrical engineering at a university, and we have these compulsory basic programming courses. They're teaching us this concept I had never heard of. Turns out it was recently developed in another Finnish university. I'm talking about roles of variables.

The page linked above pretty much explains the thing, so I don't bother writing it here. What do you think about this concept?

I think roles could help beginners to understand the basics of programming better, but because those compulsory courses have people with previous experience too, it's a waste of time forcing them to learn new terminology they aren't likely to use outside the course. Therefore, requiring people to recognise and name the roles in exams isn't necessary.

Reply With Quote
  #2  
Old November 16th, 2006, 07:48 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Roles of variables

If a novice programmer needs a crutch like this to help learn programming, find and explain errors, provide visualization assistance, and help comprehend larger programs, he has probably selected the wrong Major.

One of the examples used a variable called "age" as a counter. This only has this meaning in the context of the code it is being used in. A variable called age would typically be a value that was entered or was associated with a current record from a database. So, the same variable name, depending on the specific way it is being used in the code, would have multiple role types. It does not make sense to do this.

When programming, you select variable names that have meaning within the context of the program. By defining and adding this "Roles of variables" layer to something that is intuitive, you are just complicating something that is already... intuitive.

While I only read the page at the link you provided and the first article linked on that page, the concept reads like a sociology graduate student came up with this for his masters thesis on how he would go about teaching novice programmers a way to overly complicate something that is intuitive - naming and using variables in programming. And what do I base this on - I hold a BSEE degree from 1981.

Reply With Quote
  #3  
Old November 16th, 2006, 01:58 PM
Ursus Ursus is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 398 Ursus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 8 sec
Reputation Power: 2
RE: Roles of variables

I'm no guru, but I have to agree with what the previous post said. The purpose variables serve isn't exactly rocket science. If a student can't understand them, I think they're in the wrong field.

Reply With Quote
  #4  
Old November 27th, 2006, 09:23 AM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,719 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 4 m 29 sec
Reputation Power: 6
RE: Roles of variables

talk about a confusing explanation. Sorry but I was more confused by their explanation of what a variable is then I ever was when i was first learning. Maybe it was because my instructor based it off of something i was already familiar with (math variables) but... *shrug*

My take to put it bluntly - what a load of crap.

Reply With Quote
  #5  
Old November 27th, 2006, 05:28 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Roles of variables

Actually one of the articles I read was so poorly organized that you could not tell how this Roles of variables was being used until you got 2/3 of the way through it. Normally when you write about something, the first paragraph introduces and defines what you are talking about.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Roles of variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway