473,511 Members | 11,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting Started in Programming & Scripting

Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA
Nov 14 '05 #1
84 3851
Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations:

Hireability
Portability
Flexibility
Flexibility will lead to the other two. Abject pursuit of hireability will
not bring happiness. You can't buy love (but you can often rent it).
The likely candidates seem to be Java, VB.Net, C, C++, C#.
Every language in that list, and in your list of newsgroups, sucks.

You need to learn to learn languages. Nobody should say "I'm a VB
programmer", like they would "I'm a Mormon" or "I'm a Vegan". Linguistic
monogamy is a dead end.

(Also, Java is no relation to JavaScript.)
Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?


You need to research two general categories: Open Source, and TDD. Get with
GNU, Linux, and SourceForge, download their projects, and futz with them.
See if you can get one to compile (an herculean effort), then tweak it to
add features. You will confront some of the toughest problems in
programming - both logical problems within the code, and logistic problems
deploying that code.

Next, observe that many projects typically don't have unit tests. The most
popular implementation technique today is debugging, and it is slow,
fragile, and the source of many bugs and delays. If you instead learn
Test-Driven Development, you can trade long hours of debugging for short
minutes writing tests. Many TDD projects simply never use the debugger, and
never need to. This will put you in the forefront of modern programming, and
boost your hireability.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand
Nov 14 '05 #2
Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA

In order, personal preference:

Tcl/Tk (script language)
Perl (script language)
Visual Studio (VB, VC, J#)
Java

I started Tcl/Tk, because I needed an easy scripting language, that
would also do GUI interfaces. Then moved up to Perl, and integrated
that with the ktinit for Tcl/Tk, for more advanced, GUI scripts. Wrote
several applications, of various sizes and complexity in VB and .NET,
and now I'm working with Java, in concert with Oracle and MySql databases.

Your mileage of course may vary.
--
Dr. Karl E. Taylor
UNIX Systems Engineer / Oracle DBA
Nov 14 '05 #3
On Sat, 21 May 2005 13:10:12 -0400, "Bibby" <bi***@hotmail.com> wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.
I would say C++. This also involves learning C (C++ is _almost_ a
superset of C). If you can do C++ then Java and C# won't pose much of
a problem. C++ can be used for OOP but also traditional, procedural
programming.
Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?


In my experience, the "scriptkiddies" do different things. They're
mostly used doing "web stuff". There's quite a substantial demand for
scriptkiddies (at least, where I live).

It all depends on what you want to do.

Note that a lot of applications (and websites) make use of a database.

Being able to program in SQL is helpfull (and knowledge about the
extensions offered by Oracle and MS SQL Server, MySQL is also popular
for websites).

Even though I, mostly, make applications in C++, most of my code is
actually SQL and resides on the DBMS as stored procedures. The
performance of such applications is more dependent on the design of
the DB and its SPs. This is normal, to have most of the "intelligence"
on the DBMS so that the client's interface is light weight and can be
easily changed or replaced. You don't have to be a genius to make
interfaces and the language hardly matters performance-wise,
especially since there are so many components taking care of stuff
(charts, reports, etc.). But it is important to be a very good
database designer.

Note also that not only a language(s) is demanded by employers but
also a specific development platform (like, for Windoze, MS Visual C++
or MS Visual Studio.net with its multiple languages, Borland Builder
seems to be less popular). These development platforms offer certain
components that a developer needs to be able to use.

But it is best to get the standard language down first. I would say
that C++ is the best choice and SQL as well, unless you want to stay
clear from database applications.

Nov 14 '05 #4
I'd recommend getting to grips with Java first. The design of the language
is very clean and you will not need to worry about pointer exceptions (no
pointers) or memory management (automatic garbage collection). Excellent
development environments such as Eclipse and NetBeans are also available for
Java.

C++, however, is very messy and has a much steeper learning curve owing to
its more complex facilities such as multiple inheritance; plus the hassle of
manual memory management and those pesky pointer exceptions.

Python and Ruby are two modern scripting languages, again with very clean
designs and fully object-oriented. If you want to do scripting for web
sites, PHP is still a popular and perfectly acceptable choice.
Nov 14 '05 #5
Mick Sharpe wrote:
Python and Ruby are two modern scripting languages, again with very clean
designs and fully object-oriented.


I'd like to second the suggestion for Ruby. It's really a fantastic
language, and the concepts map well to those in "grown-up" languages
like Java and C# well (at least superficially).
Nov 14 '05 #6
ben
Just pick any of them and half way down the learning you know how to learn
the others, literally.

ben
"Bibby" <bi***@hotmail.com> wrote in message
news:KX*********************@news20.bellglobal.com ...
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA

Nov 14 '05 #7

"Bibby" <bi***@hotmail.com> wrote in message
news:KX*********************@news20.bellglobal.com ...
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good way
to get started in general?


What sort of programming? You've said the equivalent of "I want to learn a
trade." Any idea what?
Consider these areas of the "programming world":

Animated Movies
Digital Signal Processing
Server Database Systems
Commercial Web Sites
Excel Macros
Artificial Intelligence
Anti-Spyware Programs
3D Internet Games
Server Management Tools
Device Drivers
Enterprise Resource Management
Streaming Video Players

Obviously there are many more. Which languages, platforms, and environments you
look into depends on what sort of programming you want to do.
Nov 14 '05 #8
Mick Sharpe wrote:
I'd recommend getting to grips with Java first. The design of the language
is very clean and you will not need to worry about pointer exceptions (no
pointers) or memory management (automatic garbage collection). Excellent
development environments such as Eclipse and NetBeans are also available for
Java.

C++, however, is very messy and has a much steeper learning curve owing to
its more complex facilities such as multiple inheritance; plus the hassle of
manual memory management and those pesky pointer exceptions.

Python and Ruby are two modern scripting languages, again with very clean
designs and fully object-oriented. If you want to do scripting for web
sites, PHP is still a popular and perfectly acceptable choice.


I concur re C++ (ol C dog here) I use python and rebol for most web
programming. Rebol runs rings around python in terms of rebol code being
more productive than python code - but python has more libraries and a
larger user base that tends to thoroughly test the libraries and (from
my experience) scales better than rebol for large projects. Python is
very thoughtfully designed Object-wise. And there is a market for python
programmers, if you must seek employment.

But the main thing is to be adaptable. For instance, I use elisp to
customize my editor (emacs), use my editor to write rebol code that when
executed, produces python code, which when executed produces javascript
and mysql code.

My apologies to other "ol C dogs" - my unbiased opinion. Those header
files with object defs in them can be a real pain in the rear.

tim
Nov 14 '05 #9
Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations:

Hireability
Portability
Flexibility
<snip>

Hireability varies as geographical locations change. What's in demand
in Chicago is different than what's in demand in Silicon Valley. Look
at your local job listings.
The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe something that's a subset of an above language? Maybe scripting is a good way to get started in general?


Skip C and C++ until you're familiar enough with programming to know
what you're getting yourself into. You're right: scripting is a
perfect way to get started, so pick one and get coding.
Mark F. Haigh
mf*****@sbcglobal.net

Nov 14 '05 #10

"Mick Sharpe" <mi*********@btinternet.com> wrote

I'd recommend getting to grips with Java first. The design of the language
is very clean and you will not need to worry about pointer exceptions (no
pointers) or memory management (automatic garbage collection). Excellent
development environments such as Eclipse and NetBeans are also available
for
Java.

Java is a good choice for first language.
Really it comes down to the question of whether pointers or object
orientation is more confusing for the beginner. My own view is that even
experienced programmers often get into a mess trying to do object-oriented
design, and effecive use of objects cannot be taught in a few days.
Pointers, on the other hand, can be grasped in a few days, but only if the
beginner has the right mindset.

The other advantage of Java is that the GUI is standard. Whilst basically a
good thing, this does have the disadvantage from the learner's point of view
that it is easy to get too ambitious too soon.

So my recommendation would be C. However I'm posting from comp.lang.c
Nov 14 '05 #11
In article <d6**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>, Malcolm
<re*******@btinternet.com> writes
Java is a good choice for first language.


Maybe, but my feeling is that it gets less so with every release. 'Java
in a Nutshell' 5th edition has over 1200 pages.

The second problem I have with Java as a first language is that it
heavily constrains the choice of programming paradigms. Such restriction
often results in difficulties with learning other languages. Quick,
visually attractive toy programs may give the student a sense of
achievement (actually that is important) but it can act as a hindrance
to long term progress.
--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Nov 14 '05 #12
In article <42**********************@news.optusnet.com.au>, ben
<be******@hotmail.com> writes
Just pick any of them and half way down the learning you know how to learn
the others, literally.


I wish it were that simple. A great deal of bad C has been written by
those who learnt Pascal as their first language. There is a lot to be
said for NOT protecting students from the consequences of lack of
understanding.

--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Nov 14 '05 #13
Chris Dutton wrote:
Mick Sharpe wrote:

Python and Ruby are two modern scripting languages, again with very clean designs and fully object-oriented.


I'd like to second the suggestion for Ruby. It's really a fantastic
language, and the concepts map well to those in "grown-up" languages
like Java and C# well (at least superficially).


No way. Ruby will spoil you, and make returning to those languages
miserable.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand

Nov 14 '05 #14
On Sat, 21 May 2005, Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA


As one who has nevery done any web programming, I can speak as only a hard core
unix programmer. Learning just language should NEVER be your goal.
A person I workd for for @ 17 years, told me "When you don't know where to
start, just start until you figure out where you need to start".

So if you interested in programming in one of the languages above, flip a coin?
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, b-******@ti.com
Nov 14 '05 #15
My recommendation would be:

Stop crossposting to every group in creation. Please.

Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA


Nov 14 '05 #16
Hey Guys, I really appreciate everyones input - it's really helping me out.
I haven't fully decided where to go yet but I'm leaning towards Javascript
and VB (just for starters). You'll, hopefully be hearing more from me on my
journey and I can't wait for the day when I'll have some helpful advice for
another newbie.

Great community.

PA

"Scott Moore" <sa************@Sun.COM> wrote in message
news:d6**********@news1nwk.SFbay.Sun.COM...
My recommendation would be:

Stop crossposting to every group in creation. Please.

Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've
dabbled
in C, C++ and VB6. Which would be the best language to focus my attention
to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA

Nov 14 '05 #17
What would be your suggestion then, if not Java? Which starting language
would serve a newbie well on a quest to master many?

PA
"Francis Glassborow" <fr*****@robinton.demon.co.uk> wrote in message
news:Vz**************@robinton.demon.co.uk...
In article <d6**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>, Malcolm
<re*******@btinternet.com> writes
Java is a good choice for first language.


Maybe, but my feeling is that it gets less so with every release. 'Java in
a Nutshell' 5th edition has over 1200 pages.

The second problem I have with Java as a first language is that it heavily
constrains the choice of programming paradigms. Such restriction often
results in difficulties with learning other languages. Quick, visually
attractive toy programs may give the student a sense of achievement
(actually that is important) but it can act as a hindrance to long term
progress.
--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions:
http://www.spellen.org/youcandoit/projects

Nov 14 '05 #18
No offence intended (crossposting), just needed input from varying
backgrounds - it's proven really helpful.

PA

"Scott Moore" <sa************@Sun.COM> wrote in message
news:d6**********@news1nwk.SFbay.Sun.COM...
My recommendation would be:

Stop crossposting to every group in creation. Please.

Bibby wrote:
Hi, I'm interested in getting started in the programming world. I've
dabbled
in C, C++ and VB6. Which would be the best language to focus my attention
to
regarding the following considerations:

Hireability
Portability
Flexibility

The likely candidates seem to be Java, VB.Net, C, C++, C#.

Also, what would be the best scripting language to get started in? Maybe
something that's a subset of an above language? Maybe scripting is a good
way to get started in general?

Thanks,

PA

Nov 14 '05 #19

"Bibby" <bi***@hotmail.com> wrote in message
news:Gh*******************@news20.bellglobal.com.. .
Hey Guys, I really appreciate everyones input - it's really helping me out. I haven't fully decided where to go yet but I'm leaning towards Javascript
and VB (just for starters). You'll, hopefully be hearing more from me on my journey and I can't wait for the day when I'll have some helpful advice for another newbie.

Great community.

PA


Those 2 languages, JavaScript and VB, are the only 2 i would discourage a
newbie to delve into. Specially VB, which in my opinion is not a language
but a mind-corrupting scripting system.

Nov 14 '05 #20
Phlip wrote:
Chris Dutton wrote:
I'd like to second the suggestion for Ruby. It's really a fantastic
language, and the concepts map well to those in "grown-up" languages
like Java and C# well (at least superficially).

No way. Ruby will spoil you, and make returning to those languages
miserable.


Well, yes. :-)

Of course, the other way to look at it is that it'll make you appreciate
programming for fun in Ruby all the more. Also, you might be getting
paid by the hour, in which case using Java or C# or such isn't a bad thing.
Nov 14 '05 #21
"Bibby" <bi***@hotmail.com> writes:
What would be your suggestion then, if not Java? Which starting language
would serve a newbie well on a quest to master many?

I'm going to be radical here... Lisp. In terms of the syntax it is
about as simple as you can get. But in terms of the power it gives
you you won't find anything better. Check out "guile" the GNU scheme
implementation.

Concentrate on concepts of recurssion and closure and the like. Its a
great language. Though I will admit I do most of my work in
javascript and php.

--Zach

PA
"Francis Glassborow" <fr*****@robinton.demon.co.uk> wrote in message
news:Vz**************@robinton.demon.co.uk...
In article <d6**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>, Malcolm
<re*******@btinternet.com> writes
Java is a good choice for first language.


Maybe, but my feeling is that it gets less so with every release. 'Java in
a Nutshell' 5th edition has over 1200 pages.

The second problem I have with Java as a first language is that it heavily
constrains the choice of programming paradigms. Such restriction often
results in difficulties with learning other languages. Quick, visually
attractive toy programs may give the student a sense of achievement
(actually that is important) but it can act as a hindrance to long term
progress.
--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions:
http://www.spellen.org/youcandoit/projects

Nov 14 '05 #22
In article <m2************@crookshanks.local>, Zachary Kessin
<zk*****@cs.brandeis.edu> writes
"Bibby" <bi***@hotmail.com> writes:
What would be your suggestion then, if not Java? Which starting language
would serve a newbie well on a quest to master many?


I'm going to be radical here... Lisp. In terms of the syntax it is
about as simple as you can get. But in terms of the power it gives
you you won't find anything better. Check out "guile" the GNU scheme
implementation.

The problem is not that it isn't a great language but that there are
pitiful good teachers of it. Most think procedurally and then try to
translate that into Lisp. The result is rather worse than Japanese
English (and I mean no insult to the Japanese, their English is a heck
of a sight better than my Japanese, but then the average Lisp
programmer's use of a procedural language is ...)

--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Nov 14 '05 #23
> I wish it were that simple. A great deal of bad C has been
written by those who learnt Pascal as their first language.


IMHO all that proves is that if you can write bad Pascal then
you can also write bad C.

Jussi Jumppanen
Author of: Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
"The C/C++, Java, Pacal, Cobol, Fortran programmers text editor"
Home Page: http://www.zeusedit.com
Nov 15 '05 #24
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.


Is it possible to code anything without the concept of pointers?

Like it or CPU's works with memory which means working with
pointers, any when things go wrong it will usually means a
pointer has gone astray.

So like it or not I think a basic understanding of pointers
is essential when it comes to programming.

Jussi Jumppanen
Author of: Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
"The C/C++, Java, Pacal, Cobol, Fortran programmers text editor"
Home Page: http://www.zeusedit.com
Nov 15 '05 #25
Jussi Jumppanen wrote:
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.


Is it possible to code anything without the concept of pointers?


Most certainly, in some languages. IIRC, Java has no pointers.

V
Nov 15 '05 #26
>> Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.


Is it possible to code anything without the concept of pointers?


Yes. For example, FORTRAN 77 had no pointers. It also had no
structures, which often resulted in "parallel arrays" where what C
would call structure[i].member ended up being written as member(i),
member2(i), member3(i), etc. You could even sorta do "linked lists"
(where the array subscript substituted for a pointer). And you
could screw up with out-of-range subscripts almost as badly as with
pointers.
Gordon L. Burditt
Nov 15 '05 #27
Victor Bazarov said:
Jussi Jumppanen wrote:

Is it possible to code anything without the concept of pointers?
Most certainly, in some languages.


VS/BASIC certainly had no pointer concept. Some BASICs do, and others don't.
IIRC, Java has no pointers.


Imagine a blanket laid loosely on a quiverful of arrows. Look ma, no
pointers - but sit down *very* carefully...

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/2005
http://www.cpax.org.uk
email: rjh at above domain
Nov 15 '05 #28
"Victor Bazarov" <v.********@comAcast.net> wrote:
Most certainly, in some languages. IIRC, Java has no pointers.


Hiding pointers can have its own problems.

(Discussing C# code with a programmer unfamilar with C#.)

MyClass x = myCollection.findAnObject("foo");
x.bar = "blip";

"Don't you have to put x back into the collection after you modify it?"
"No, x is a reference. Its pointing to the same object inside the
collection."

Bill, not the actual Bill, just a reference. He's over there.

--
http://billpg.me.uk/ usenet(at)billpg(dot)me(dot)uk
Nov 15 '05 #29
In article <43***********@zeusedit.com>, Jussi Jumppanen
<ju****@zeusedit.com> writes
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.


Is it possible to code anything without the concept of pointers?


To the best of my knowledge Cobol has no pointers and Cobol programmers
have no need of the concept (indeed many of them find the idea of a
pointer quite bizarre)
--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Nov 15 '05 #30
In article <IM********************@comcast.com>, Victor Bazarov
<v.********@comAcast.net> writes
Jussi Jumppanen wrote:
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.


Is it possible to code anything without the concept of pointers?


Most certainly, in some languages. IIRC, Java has no pointers.


Well actually it does (it just calls them references)
--
Francis Glassborow ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Nov 15 '05 #31
Jussi Jumppanen wrote:
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.
Is it possible to code anything without the concept of pointers?


Yes. Several programming languages have no concept of pointer that's
visible to the programmer. For example Lisp, Java and Perl have no
pointers. Perl has references which refer, somehow, to another perl
object - effectively equivalent to a pointer.

Lisp's don't have pointers per se. Each name in a lisp program and
almost everything else is "bound" to a piece of data of some type, and
can be freely rebound. Some of these data types can store sequences of
values. So, altogether there is no need for visible pointers.

(There are naturally tons of pointers in actual implementation, but
they're invisible to the programmer).
Like it or CPU's works with memory which means working with
pointers, any when things go wrong it will usually means a
pointer has gone astray.
Often yes, but not always, and not in languages where they can't go
astray. There remain plenty of things to go wrong without them though.
So like it or not I think a basic understanding of pointers
is essential when it comes to programming.


Yes, because it's how real machines work.

Nov 15 '05 #32
Francis Glassborow wrote:
In article <IM********************@comcast.com>, Victor Bazarov
<v.********@comAcast.net> writes
Jussi Jumppanen wrote:
Malcolm wrote:

Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.

Is it possible to code anything without the concept of pointers?


Most certainly, in some languages. IIRC, Java has no pointers.


Well actually it does (it just calls them references)


I didn't know it called them anything other than "objects"...
Nov 15 '05 #33
Victor Bazarov wrote:
Francis Glassborow wrote:
In article <IM********************@comcast.com>, Victor Bazarov
<v.********@comAcast.net> writes
Jussi Jumppanen wrote:

Malcolm wrote:
>Pointers, on the other hand, can be grasped in a few days, but
>only if the beginner has the right mindset.

Is it possible to code anything without the concept of pointers?

Most certainly, in some languages. IIRC, Java has no pointers.


Well actually it does (it just calls them references)

I didn't know it called them anything other than "objects"...


According to the Java Language Specification, it has objects and
references, and non-null references are pointers to objects:

"4.3.1 Objects
An object is a class instance or an array.

The reference values (often just references) are pointers to these
objects, and a special null reference, which refers to no object."

[http://java.sun.com/docs/books/jls/s...oc.html#12028]

Patricia
Nov 15 '05 #34
"Victor Bazarov" <v.********@comAcast.net> writes:
Francis Glassborow wrote:
In article <IM********************@comcast.com>, Victor Bazarov
<v.********@comAcast.net> writes
Jussi Jumppanen wrote:
Malcolm wrote:

> Pointers, on the other hand, can be grasped in a few days, but
> only if the beginner has the right mindset.

Is it possible to code anything without the concept of pointers?

Most certainly, in some languages. IIRC, Java has no pointers.


Well actually it does (it just calls them references)


I didn't know it called them anything other than "objects"...


It's remarkable, given the number of newsgroup to which this
discussion is inappropriately cross-posted, that Java isn't topical in
*any* of them.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #35
In article <r6**************@robinton.demon.co.uk>,
Francis Glassborow <fr*****@robinton.demon.co.uk> wrote:
Most certainly, in some languages. IIRC, Java has no pointers.
Well actually it does (it just calls them references)


It doesn't *just* call them references. It strongly restricts what
you can do with them. C pointers have an important feature that makes
them very different from the references that Java and most other
languages have: they let the programmer perform address-like
arithmetic on them. You can't use a Java reference to step through an
array, or take the difference between two references.

(Not to mention the unportable but almost universal ability to
convert them to and from integers.)

-- Richard
Nov 15 '05 #36
ri*****@cogsci.ed.ac.uk (Richard Tobin) wrote:
C pointers have an important feature (Not to mention the unportable but almost universal ability to
convert them to and from integers.)


Actually, that ability itself _is_ portable and Standard. The resulting
numbers c.q. pointers are not, of course; however, a compiler that
doesn't allow you to cast a pointer to an integer or v.v. is not a C
compiler.

Richard
Nov 15 '05 #37
In comp.lang.c Francis Glassborow <fr*****@robinton.demon.co.uk> wrote:
To the best of my knowledge Cobol has no pointers and Cobol programmers
have no need of the concept (indeed many of them find the idea of a
pointer quite bizarre)


I think the idea of a Cobol programmer is quite bizarre :-)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 15 '05 #38
In article <43***************@news.xs4all.nl>,
Richard Bos <rl*@hoekstra-uitgeverij.nl> wrote:
ri*****@cogsci.ed.ac.uk (Richard Tobin) wrote:
C pointers have an important feature (Not to mention the unportable but almost universal ability to
convert them to and from integers.)

Actually, that ability itself _is_ portable and Standard. The resulting
numbers c.q. pointers are not, of course; however, a compiler that
doesn't allow you to cast a pointer to an integer or v.v. is not a C
compiler.


C89 does not, however, promise that you can meaningfully convert
a pointer to an integral type and back again. K&R2 did have such
a promise, that the back-converted pointer would compare equal
to the original pointer, but that promise did not make it into C89.
--
"I want to make sure [a user] can't get through ... an online
experience without hitting a Microsoft ad"
-- Steve Ballmer [Microsoft Chief Executive]
Nov 15 '05 #39
On Tue, 13 Sep 2005 12:52:13 +0000 (UTC), Christopher Benson-Manica
<at***@nospam.cyberspace.org> wrote:
In comp.lang.c Francis Glassborow <fr*****@robinton.demon.co.uk> wrote:
To the best of my knowledge Cobol has no pointers and Cobol programmers
have no need of the concept (indeed many of them find the idea of a
pointer quite bizarre)


I think the idea of a Cobol programmer is quite bizarre :-)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.


Just shows that you know nothing about COBOL
- I was surprized to find out what a full instruction set it had

I do not consider the use of SQL to be programming
Nov 15 '05 #40
J French wrote:
On Tue, 13 Sep 2005 12:52:13 +0000 (UTC), Christopher Benson-Manica
I think the idea of a Cobol programmer is quite bizarre :-)

Just shows that you know nothing about COBOL


Did you not see the smiley?
Nov 15 '05 #41
Jussi Jumppanen wrote:
Malcolm wrote:

Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.

Is it possible to code anything without the concept of pointers?


Yes. Pointers did not even appear in high-level languages until the
mid-60's, except to the extent that they are implied in LISP. A good
many COBOL-turned-to-PL/I programmers don't even know anything to do
with pointers except to subvert the type system.

Even as late as the mid-80's, the designers of Ada felt the need to
justify including pointers in the language, experiences with PL/I and
ALGOL 68 having been bad. (PL/I has been improved since then.)
--
John W. Kennedy
Read the remains of Shakespeare's lost play, now annotated!
http://pws.prserv.net/jwkennedy/Doub...ood/index.html
Nov 15 '05 #42
Francis Glassborow wrote:
In article <43***********@zeusedit.com>, Jussi Jumppanen
<ju****@zeusedit.com> writes
Malcolm wrote:
Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.

Is it possible to code anything without the concept of pointers?

To the best of my knowledge Cobol has no pointers and Cobol programmers
have no need of the concept (indeed many of them find the idea of a
pointer quite bizarre)


Well, IBM mainframe COBOL has long included some semi-documented pointer
functions intended for use with CICS.

COBOL 2003 includes OO, and, consequently, references.

--
John W. Kennedy
"Information is light. Information, in itself, about anything, is light."
-- Tom Stoppard. "Night and Day"
Nov 15 '05 #43
In article <9T**************@robinton.demon.co.uk>, Francis Glassborow
<fr*****@robinton.demon.co.uk> writes
In article <42**********************@news.optusnet.com.au>, ben
<be******@hotmail.com> writes
Just pick any of them and half way down the learning you know how to learn
the others, literally.


I wish it were that simple. A great deal of bad C has been written by
those who learnt Pascal as their first language. There is a lot to be
said for NOT protecting students from the consequences of lack of
understanding.


But as Pascal is a "safe" language you can't write bad Pascal.... the
compiler won't let you :-)

There are still far to many people who think that with some languages if
it compiler it must be "good".

I agree that protecting students with a "safe" language makes matters a
lot worse as they rely on the compiler for error checking and safety.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Nov 15 '05 #44
In article <V6*****************@fe10.lga>, John W. Kennedy
<jw*****@attglobal.net> writes
Francis Glassborow wrote:
In article <43***********@zeusedit.com>, Jussi Jumppanen
<ju****@zeusedit.com> writes
Malcolm wrote:

Pointers, on the other hand, can be grasped in a few days, but
only if the beginner has the right mindset.
Is it possible to code anything without the concept of pointers?

To the best of my knowledge Cobol has no pointers and Cobol programmers
have no need of the concept (indeed many of them find the idea of a
pointer quite bizarre)


Well, IBM mainframe COBOL has long included some semi-documented pointer
functions intended for use with CICS.

COBOL 2003 includes OO, and, consequently, references.


I recall seeing OO Cobol around 1995 though I don't know if it had
pointers/references then.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Nov 15 '05 #45
On Wed, 14 Sep 2005 14:10:10 GMT, red floyd <no*****@here.dude> wrote:
J French wrote:
On Tue, 13 Sep 2005 12:52:13 +0000 (UTC), Christopher Benson-Manica
I think the idea of a Cobol programmer is quite bizarre :-)

Just shows that you know nothing about COBOL

Did you not see the smiley?


No - I missed it
- I apologize to Christopher Benson-Manica
Nov 15 '05 #46
On Thu, 15 Sep 2005 08:16:25 +0100, Chris Hills <ch***@phaedsys.org>
wrote:
In article <9T**************@robinton.demon.co.uk>, Francis Glassborow
<fr*****@robinton.demon.co.uk> writes
In article <42**********************@news.optusnet.com.au>, ben
<be******@hotmail.com> writes
Just pick any of them and half way down the learning you know how to learn
the others, literally.
I wish it were that simple. A great deal of bad C has been written by
those who learnt Pascal as their first language. There is a lot to be
said for NOT protecting students from the consequences of lack of
understanding.

But as Pascal is a "safe" language you can't write bad Pascal.... the
compiler won't let you :-) There are still far to many people who think that with some languages if
it compiler it must be "good".
You mean if the code compiles it must be good ?
I agree that protecting students with a "safe" language makes matters a
lot worse as they rely on the compiler for error checking and safety.


So you drive a car with dodgy brakes, no airbags and no seat belts ?

There is a lot to be said for strong type checking, it shows up stupid
errors rapidly

Gawd, I remember having to write my own call parameter checking
utility
Nov 15 '05 #47
Chris Hills said:
In article <V6*****************@fe10.lga>, John W. Kennedy
<jw*****@attglobal.net> writes

COBOL 2003 includes OO, and, consequently, references.


I recall seeing OO Cobol around 1995 though I don't know if it had
pointers/references then.


It's time for the post-increment joke again, if someone would be so kind.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/2005
http://www.cpax.org.uk
email: rjh at above domain
Nov 15 '05 #48
In article <43*************@news.btopenworld.com>, J French
<er*****@nowhere.uk> writes
On Thu, 15 Sep 2005 08:16:25 +0100, Chris Hills <ch***@phaedsys.org>
wrote:
In article <9T**************@robinton.demon.co.uk>, Francis Glassborow
<fr*****@robinton.demon.co.uk> writes
In article <42**********************@news.optusnet.com.au>, ben
<be******@hotmail.com> writes
Just pick any of them and half way down the learning you know how to learn
the others, literally.

I wish it were that simple. A great deal of bad C has been written by
those who learnt Pascal as their first language. There is a lot to be
said for NOT protecting students from the consequences of lack of
understanding.
But as Pascal is a "safe" language you can't write bad Pascal.... the
compiler won't let you :-)

There are still far to many people who think that with some languages if
it compiler it must be "good".


You mean if the code compiles it must be good ?
I agree that protecting students with a "safe" language makes matters a
lot worse as they rely on the compiler for error checking and safety.


So you drive a car with dodgy brakes, no airbags and no seat belts ?


Not the same thing at all. Also in many cases you turn OFF the airbags
and don't use seat belts. Though you always want working breaks.
There is a lot to be said for strong type checking, it shows up stupid
errors rapidly


Agreed. I use PC-lint
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Nov 15 '05 #49
Chris Hills <ch***@phaedsys.org> writes:
In article <43*************@news.btopenworld.com>, J French
<er*****@nowhere.uk> writes
On Thu, 15 Sep 2005 08:16:25 +0100, Chris Hills <ch***@phaedsys.org>
wrote: [...]
I agree that protecting students with a "safe" language makes matters a
lot worse as they rely on the compiler for error checking and safety.


So you drive a car with dodgy brakes, no airbags and no seat belts ?


Not the same thing at all. Also in many cases you turn OFF the airbags
and don't use seat belts. Though you always want working breaks.


I hope that's just an overstretched metaphor. If you're actually
talking about driving, I don't know if it's even possible to turn off
the airbags, and I *always* wear my seatbelt and insist that my
passengers do likewise. I might consider turning off the airbags in a
dire emergence if it made the car go faster, but of course it doesn't.

Getting back to programming, yes, it's often possible to disable
checks for faster performance. Whether it's a good idea is another
matter.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

80
5182
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.