Discussion Locked

Budding Programming Interests by Students; Where to focus one's interest?

0 helpful
59 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I AM NOT a developer/programmer although I played around with C,C++ (Borland Products), and Visual Basic years ago. When things progressed beyond DOS 6.22 and WIN 3.1 I didn't have time to keep up. In the interim I know that programming languages have undergone tremendous changes and the popularity of certain platforms have evolved.

My sons have asked where they should put their time in terms of learning a programming language (among the various species found in the world).

Given my lack of awareness, I would appreciate any suggestions that would give direction to their interest for learning a language.

The criteria would seemingly be: is it a language that will be around for several years to come? (given the rate of changes in the computer age); could it be used for application and game development?; would the language be useful for programming as a career interest?.

Thank you for your patience and answers.
Dean

59 replies

by tony hopkinson

start working, but the underlying techniques will.
You can download an express version for free off MS.
If they want to learn how to program though the should see whatever language they choose as the tool they use to express their learning.
Learning the language itself does not teach you how to program, it teaches you the syntax and semantics of how programs are expressed in that language.
C# is object oriented ,event based and has very good support for concurrency, (threading). It's also pretty much, the thing on the current market.
If they are interested in internet based stuff then this is a really good site.
http://www.w3schools.com/

by billclewis2

We appreciate your insights. Being the "thing" on the market implies it has longevity and a larger user's support network.

They have taken CBT courses in the past and, I'm sure, will find your suggestions worthwhile.

Thank you again.

by tony hopkinson

I've seen a lot of current things diminish into obscurity through market processes.

Use C# to learn OO, then when Bill launches D# mapping their experience over to the next new thing will be much easier.

If they are interetested in programming theory, they might want to look at other classes of environment like prolog, lisp, forth. 'Old school' procedural, Fortran, Cobol, C and Pascal, or even assembler. They might not be out there at the forefront of the market but the differences are very instructive.

There's a lifetime of learning out there, they could produce something I'm interested in learning, lots of other people have.

I hope they catch the bug. We are suffering from a lack of people who are interested in how and why.

by mark miller

If your sons are really interested in programming techniques there are some languages that have been around for a very long time, and I suspect they will continue to be. For example if they want to learn about object oriented programming as a discipline I'd recommend Smalltalk or Ruby. They have a simple style that's easy to learn, and they are expressive so you can accomplish a lot with a little code. That helps with immediate gratification, and that can help get them interested in learning more.

The modern version of Smalltalk is called "Squeak". You can get it free at www.squeak.org. There's a book out now called "Squeak: Programming With Robots", published by Apress. I saw it a few weeks ago at Barnes & Noble. It's not about programming real robots, but virtual ones on screen. If you've ever seen the Logo language, the book uses Squeak in this way. The way the book bills itself is it's a REAL programming book, not merely child's play, but the approach was designed to be engaging and fun. I haven't read it in depth, but I'm sure it teaches object oriented principles. If they want to dig further into the language, there are free online books on the Smalltalk language, which works in Squeak, at http://www.iam.unibe.ch/~ducasse/FreeBooks.html. They are PDF files.

The Squeak site says that the language can be used for writing games. The way Squeak is set up encourages experimentation. Smalltalk literature tends to emphasize it as a system for simulations, and games can be seen as a kind of simulation.

You can get Ruby free at http://www.ruby-lang.org/en/. They have links there to free tutorials and documentation, and books that can be bought.

In that same vein Lisp would be a good language to learn. It's not object oriented, but it has some features that most languages don't have and can come in useful in some circumstances. It's probably possible to emulate these features in other languages, but with some effort. I've heard from some that Lisp is a good language to learn even if you never actually use it in real world projects, because it teaches programming techniques that you would not normally be taught through other languages.

What I've heard is recommended as a development environment for Lisp is "Lisp in a box" at http://common-lisp.net/project/lispbox/. This sets you up with an editor pre-configured for Lisp, kind of like an IDE. It provides free downloads and some introductory material. Paul Graham, a Lisp developer, has a free book on the language at http://www.paulgraham.com/onlisp.html

The truly marketable languages right now are C++ (I think), C# or VB.Net, and Java. All follow the object oriented paradigm. You can get a pretty good idea of how popular each is currently by going to www.dice.com and doing a lookup on each language and see how many results you get. C++ has been around since the mid-1980s. I think it'll be around for quite a while longer. Java has been around since the mid-1990s. I'd say the same for it. C# and VB.Net are relatively new. They came out in 2002, but Microsoft is continuing to support them strongly.

It's possible to write games in any of these languages. C++ used to be the popular language for writing games. It might still be. A lot of the games that run on "smart phones" are programmed in Java. I'm not sure what the state of the art is for games at this point.

Microsoft has free development tools you can download at http://msdn.microsoft.com/vstudio/express/ for C++, C#, VB.Net, and web development.

If they're looking to have marketable skills, I'd also suggest they learn about relational databases. It's kind of a different programming skill. Microsoft has a free database package available at the same URL called SQL Server Express.

For any of these technologies I'd suggest they get books that talk about them. There is documentation provided with them, but it's not great for a green beginner.

It's a lot to chew on, but programming is a big area to get into. It's possible to jump right in with the marketable languages and "learn to program in 24 hours", but that's a really shallow approach. Your sons might end up learning "just enough to be dangerous". That might get them employed, but they're probably going to end up committing gaffes and be part of failed projects (which there are a lot--have been for years). Personally I find it's a lot more rewarding to go in depth. I enjoy it. The people I've worked with have appreciated the depth of knowledge I have as well. It makes me someone they value working with.

by billclewis2

Mark,
Thank you for the in depth preview of options. Your response was both well reasoned and of sufficient depth to help us wade through the possibilities. While I was familar with several of your suggestions, I wasn't aware they were still viable alternatives. The bottom line still seems to be OOP, as presented in C++, however Ruby or Squeak might appeal to their budding minds with instant feedback instead of syntax mania!

Thank you for your efforts and counsel.

by mark miller

All of the languages I mentioned have been used in real world projects somewhere. Smalltalk (basically the same as Squeak) and Lisp are rarely used in the U.S. in the commercial sector (I don't know about the government/public sector). The marketable languages I mentioned are the ones I would suggest in terms of getting a job today (though as mentioned by another post, this can change over time), just because there are a lot more of them that use these languages.

The hub of activity for Smalltalk seems to be in Europe, though there is some activity in Canada. There are Smalltalk jobs here and there in the U.S. This is ironic since Smalltalk was invented in the U.S.

Lisp has experienced a bit of a resurgence in the U.S. It's used in airline reservation systems. Orbitz or just about any online airline reservation web site is an example. Paul Graham has an article about this on his site somewhere. It's also been used from time to time to create search engines on the web.

Interestingly, Ruby could one day become a marketable language. There's a web application framework called "Rails" that works with Ruby (the combination is typically called "Ruby on Rails"). It's a "hot" up and coming technology in the U.S. for creating applications for the web. It's really just getting started at this point. In comparison to C++, Java, and the .Net languages, the job numbers for it right now are paltry.

The only reason I suggested the other languages (Smalltalk, Ruby, and Lisp) is they have more inherent power (you can accomplish a lot with a little bit of code) than the mainstream languages, and can, if nothing else, help teach programming techniques that will be useful in the mainstream languages. The mainstream languages tend to make up for their lack of inherent power via. powerful add-ons and code libraries.

by jaqui

They will have to pick an area and platform to develop on / for.

systems level programming:
assembly and c

graphics apps, including games:
windows:
Directx, opengl, directdraw.
c++, java
Macos:
opengl, objective c [ cocoa ]
Linux:
opengl [ mesagl ]
c, objective c, c++, java, python, perl ruby ...... [ every language listed except MS visual basic and MS .net framework based. ]

If they want their software to be cross platform, they will have to limit the languages they learn.
They would also have to be very carefull about supporting technologies, since graphics wise opengl is pretty much the only cross platform option.

A got ya with java is, you have to pick the jre to use, and remember it might not work right on other platforms.
[ personally, I won't use any java based software because there is more than one jre. java is "broken beyond usability because there is more than one interpreter / runtime environment." ]

python has some handy libraries for working with 3d graphics objects, specifically the lighting effects and texturing.

web based applications, they have to really pick the technologies to use carefully, since only windows servers will run any .net framework right every time.
they have to make sure they pick a technology that will function for the most people, if not for all people with websites.

the W3 Schools will show them what truly is a standard for websites, .net [ c#, asp, et-al ] are not web standards. They can't be until MS releases control to an international consortium, which won't happen ever.

A good place for them to read about some of the issues with coding, that often get overlooked is http://sans.org . They are completely focussed on security, and have easily reviewable records that show security for os, application as well as website scripts.

by billclewis2

We've looked at Ruby, Squeak, and several others in recent days and are exploring compiled vs interpreted programs and their programming paradigm.

There are many websites we've found that show side-by-side comparisons of the various programs and which are both interesting and a little daunting at first. However, insights like yours and others, and our reading has done much to part the veil.

Your discussion of the Java's JRE problems were VERY beneficial! It seems that everyone is pushing JAVA as the language to learn.

Thank you for your consideration and thoughtfulness.

by tony hopkinson

If it wasn't almost as dead as a nit, I'd recommend vanilla pascal as start. C would probably a more future proof choice.
C# is OO, Pascal and C are procedural, other languages are set based, then there are those that are specifically designed for concurrency such as Occam.

If your chaps want to learn the theory of programming, then as Jacqui says you need to branch out a bit.

The thing about programming is while everybody talks about new and state of the art, they are talking about the tools we use to program and the environments we program in.

Programming itself hasn't changed since the Jacquard loom or the Babbage engine.
All it is breaking up a 'complex' task in to smaller steps. The size of those steps are the syntax of the language in use, whether it be machine code or bolting together components in a drag and drop IDE.

Effectively all that has happened is the size of the steps have got bigger.

For instance way back when things like linked lists and sort algorithms were things you had to know, now you just instantiate a list class and call it's sort method.

Now this might sound like a good thing, but I've seen code where to to do a sort Drag and Droppers have put an invisible list box on a form, populated it and then called it's sort method, which is wildly inefficient.

There is a temptation to dive straight in at the highest level, but if you skip how we got to it, you'll never know whether you are doing your best and you'll always be reliant on whether someone else has.

Besides it's interesting.

by jaqui

That was just off the top of the subject. :)

Java is a hot language right now, most companies are looking for java developers.
will it be a hot language when your kids are looking for work?
who knows.

The JRE issues are addressed by sucking more system resources to run a java app, use the eclipse framework.
which gives you a 3 step process just to get the app code to the cpu. another 3 steps to get the result back to the app.

when it comes to spped there are two standards of mesurement.
speed in execution and speed of development.
the development speedis only in interpreted languages. the executon speed is in compiled languages.

Tony mentions in his reply that programming is breaking a complex task down to simple steps. Another way of phrasing this is that programming is teaching an absolute moron how to accomplish a difficult task, using terms that they understand, which is a very limited collection.

An exercise that really teaches someone what it means to write a program, yet is easily understood by non technical people:

Wrtie a detailed list of the steps required to wash a car. You must include a desription / definition of every tool used as part of the list. The person that needs the list does not even know what a car is, a bucket, hose, soap, cloth/sponge/rag... and they barely understand [ insert primary language here ].
essentially, target the list to a 2 year old child, from another country where they speak a different language.

even just thinking about the above exercise tells people how detailed they need to think for even fairly simple tasks. getting them to crete the requested list with inks to each object's definition / description wherever it is mentioned in the list gives them a really good understanding of how the programming process works, for both object oriented and procedural languages.

by nmeneses

Point your sons towards http://mindstorms.lego.com/ It is a programmable lego brick for creating robots. New version just out has bluetooth and a lot more potential. This is not a small kids toy but a big kid toy. Basic programming logic can be learnt with the lego software using drag and drop to create the program flow. Then NBC similar to C can be used to do some serious coding. This would really give them purpose whilst they learn and all modern programming languages are quite easy to learn once you get basic coding theory under your belt.

by pbackhurst

I'm not the sort progammer who writes and compiles software applications, and probably those who do that wouldn't even call waht I do programming!
I write web applications in PHP, which sit in a framework of XHTML and the look of which is determined by the CSS (and the XHTML, of course). For extra dynamism and interactivity I use javascript (ECMAscript), and in flash applications ActionScript. Also, I use MySQL databases to store content, login data, etc.
Seeing as javascript, ActionScript and PHP are both C-derivatives (be merciful to me, programmers!), they give the opportunity of learning principles of programming that are applicable to other C-languages, i.e. Java and probably C++ and C# (I think!). In PHP there is also OOP. So these skills are transferable to compiled programming.
And lastly, building your own MySQL databases and the necessary queries teaches an awful lot about relational databases structure and datacalls (queries). And this is certainly fundamental IT stuff.
So, in other words, web programming is also an option, from simple XHTML to complicated ActionScript/Flash web applications or PHP OOP.
Hope this helps.

by tony hopkinson

LOL
Yes you do program, however I would argue that the scripting environments you work in do not teach enough of the basics.
Essentially they are designed so things like variable typing need not be learnt.

That's all well and good for what were meant to simple snippets of code (I know some people go for unbelievably complex).

When you get into environments where resource management and efficiency are critical scripting knowledge will mislead you.

The database stuff will help any budding IT enthusiast, you can't turn round nowadays without bumping into one.

by drdosus

I have heard so many Windows babies 'programmers' say, and I quote, "I don't need to know anything about computers. I'm a _programmer_!"
Start your children on hardware studies..the microprocessor, memory architecture, etc. then let them learn assembler. It will definitely help them to write better software no matter what gooey language is chosen in the end.

by khunter

I started out as a programmer (ages ago) and it's a good idea that they (or anyone) should know the hardware basics. One of my favorite languages was assembly because I could control pretty much all the system processes (Bwaa ha ha!)...

However, knowing what is actually happening with the gui languages after they are compiled or interpreted is a great foundation to make a better programmer.

by tony hopkinson

Rodnay Zaks Z80 Processor, first 'IT' book I ever bought.

I started with gates, flip flops, address decoders multiplexors etc.

Electronics was my major interest.

by cd613

I wont hire any one who does nt have the basics such as assembly

evey one who thinks they are a programmer needs to control the hardware first then the software

any body else is a gui developer

by tony hopkinson

Which processor what architecture. Aside from very specific tasks it's barely used any more. I predominantly work high level now, I can count the times I've had to go to machine code on the fingers on one hand.

I'd see things like the things that went with it such as stacks, pointer arithmetic, boolean algebra, binary arithmetic, coding and representation as still regularly useful though.

by seppo.mannonen

Hi

We have same kind of past in compus.
I have started in 1975
and have followed the development of this business in hardware and software.

Well, you know what is base, hardware.
When you know how hardware is working, you know how software must be working.

To know how hardware works with software,
how it is alive and stay alive,
that it is all about.

To learn programming is not easy, but you can make it easier with hobbies or interesties.

Are you interested games, music, sports,
business software, security, internet...?

There you find what language they use
in these areas and if your sons are
interested of that area, so you got it !

My oldest son is studing in software area
and i am very proud of that.

And you know what, he let me know that after.

Let them decide what kind of programming
they are interested about and you find the right way.

best regards

seppo mannonen

by bschaettle

RE: "Given my lack of awareness"

Dean, not to put too fine a point on it, but there is NO future for programmers in this country. Hear that sucking sound? That's the sound of programming jobs leaving the USA, every minute of every day. My best recommendation for a language for them to learn is Mandarin Chinese, and forget about programming -- they'll never regret it.

by tony hopkinson

Analysts, developers, admins, DBAs, PMs, Architects, either benefit from some knowledge of programming or need to be damned good at it.
Picking up a foreign language as well, or an MBA, well can't hurt.

Besides you are guessing what the market will be like in several years time.

1) Third world coders go on strike for fair treatment
2) Outsourcing get's proven to be the naff short term low quality solution it seems to be
3) They are managed by IT people who know what they are doing instead of some bean counting numbwit who got rid of his in house resource because it was no longer relevant.
4) You become a good developer which is more than coding and compete by adding value.

Any fool can write a program, writing a good program well is a much rarer skill.

by billclewis2

Over the years I've followed the immigration reform debate. On many occassions I've read how the IT industry is always pushing for increases in visa numbers so that foreign programmers can work in the US, albeit at much lower salaries than our citizens. Coupled with foreign out-sourcing of projects, it seems like many firms are ignoring the need for maintaining a pool of local talent. I would have thought, given that US consumerism is what "made" many IT companies, that re-training would be cost effective and a civic reaction when necessary.

Is that part of your underlying meaning, that company loyalty to employees is ephemeral, or better yet, "virtual"???

The boys are enjoying everyone's posts and are finding something worthwhile in each of your suggestions. (Seppo, as a Father, I know better than to dictate their interests. Guide or help, yes, but to determine, no...LOL.)

Our thanks to all of you, as the professionals you are, for making quick work of a complex subject.

by crabbyabby86

i'm not sure how i feel about java as a first language.

it was mine, first year at university.

and then i did some web programming languages.

by then i was feeling pretty good about being able to crank of software that was useful really fast.

and now im going back to the not-so-high level languages in a course where linked lists and various sorts are all the rage... and it hurts.

we actually did a lot of this stuff in the second level java course. with the same professor and everything. im not sure why its not clicking for me now. and apparently im at the top of the class, so i shudder to think how my classmates are doing.

so. yeah. you can learn the stuff you have to know in a high level language. but then going back to the others hurts a lot.

ouch.

good luck.

by tony hopkinson

I came out of straight procedural into event model and OO. Developed the habits then I got a job with Fortran, had to unlearn some things and relearn others. The real head stretcher was doing a socket connection between a vms box and a windows one.

Iterative development switching between the two, invented two new languages forcal and pastran, painful. ?:|

by tony hopkinson

Write down the steps you'd take to do the sum 3 + 5 + 10 with a calculator.

Don't forget to write down press =

by jaqui

it's the emphasis on every step that drives the point home.

people see computers as smart, when all programmers know that a computer is an idiot.
It's only ability is to add and subtract nummbers really fast.

everything we use a computer for is all addition and subtraction to the computer.

hmmm.. maybe making assembly as one of the very first languages learned would improve all programmers skills. and make them do everything for a 386 with only 8 mb ram in class. We [b][i]might[/i][/b] see a reduction in bloated software after a while then ]:)

only 256 colours on the monitor at best, and only 800 by 600 for a resolution...no sound card. ]:)

make new programmers really learn the value of good code.

by tony hopkinson

any more is quantities like 8M.
I started with 4k on a 6502 processor.
8M is a lot of machine code !

I think a lot of people would get something out of say a PIC micro controller, particularly those of an engineering background.

Unfortunately a lot of them got their first programming exercise with VB which is another f'ing terrible language to learn to learn the discipline in.

by jaqui

I remember working with 8 inch floppies that only held 256 kb, double sided.
and that was huge amounts of storage for the code we were writing.

by joeaaa22

Recently I was exploring this very thing. I found three books with which could make a decent path to learning programming.

1) Programming from the Ground Up {assembler}
by Jonathan Bartlett
ISBN: 0975283847
http://www.cafepress.com/bartlettpublish.8640017

2) Learning to Program with Alice, with CDROM
by Dann, Wanda P. / Cooper, Stephen / Pausch, Randy
ISBN: 0131872893
http://www.nerdbooks.com/item.php?id=0131872893

3) Learn to Program {ruby}
by Pine, Chris
ISBN 0976694042
http://www.nerdbooks.com/item.php?id=0976694042

This should be the equivalent of a Programming I, II & III learning track.

by hyposave

This is based on my experience.

I would recommend that you start them off with C programming. I'm not sure how old they are, but by learning the fundamentals of C language, they can adopt to any other language in the future. For example, PHP / Java / Python are all relatively close to C.

Regardless of any programming language, they need to learn the basic concepts of programming like the if/then/else statements. For / while / looping concepts. The idea of variables, and the many type there are. There are many more of these basic concepts, but they are common to all languages. Mastering the basics allows them to go into any language.

by mcrogerm

After reading the rest of the thread, my experience leads me to agree strongly with this one. I hardly see any computer books nowadays as good as the ones from the old gang at AT&T Bell Labs, Plauger, Ritchie, Khernigan, Ahoe, etc. While I was still learning Basic by copying program listings out of hobbyist magazines I subscribed to Doctor Dobbs' Journal of Overbyte and Orthodontia (if I recall it correctly) when they published an assembly language listing of what was called the Tiny-C compiler. Then I got the C Language manual by Khernigan and Richie (later I think I read every book which Brian Khernigan wrote or co-authored). That book as a marvel. It teaches C syntax, algorithms, and datastructures. It's clear!!! Easy to read. A great way to start. There are lots of free C compilers available, too. Oh, yeah, once they've played a little with that assembly language is a lot of fun, too.

by tony hopkinson

in terms of basic constructs and a simple map to the more popular high level languages C is going to be a good start.

by nihtekra

I don't know if your sons have done any programming up to this point, so I'll start from the beginning.

I think BASIC is a great starting language. I know it's old, but it has a few good points that make it a good first language. First, it's really simple. First time programmers won't get bogged down in a whole lot of syntax that they don't understand or see the meaning of, and for the most part, learning the various simple commands isn't too hard. They won't be able to go very far with it, but they should be able to learn it in at most a couple months, and it will give them a good intro to programming concepts like data types (strings, integers, etc.) and program flow. It's free, and it's simple, and it comes with some great old games like nibbles and gorillas to learn from.

After that, if they still enjoy programming, I would go for something like C++. It's a big step up from BASIC, but there is a lot, a ton even, of information and programming guides for C++. It's harder because it's compiled, and generally the errors and warnings are very ambiguous to a beginning programmer. It's a great language to learn about the computer though, and it's a great into in OOP, if they really get interested in programming. At this point it would be worth it to buy a C++ howto that includes a compiler rather than trying to use the free tools available online. GCC/G++ are great tools and I use them myself, but in the modern age a GUI is almost a necessity, and they usually help beginning programmers a lot, especially if they come bundled with a good book that uses the same compiler.

Instead of C++, you might try two other languages. Java is like a cousin to C++, and I consider it a higher level language. Learning with Java is a good introduction to programming concepts, but doesn't give a good introduction to the computer in my opinion (and I personally feel that this is a very important aspect of programming). The tools that I've seen for it also aren't as polished as the ones for C++, and the resources aren't as good either, but I know a lot of schools are starting with Java now, so you can probably as around and find some good resources. Perl is a scripting language used in mostly Unix environments, and it can also be a good intro to higher level programming. It is more similar to BASIC than C++/Java are, so it might also be easier to pick up.

All of these languages are in use today and probably will be for a while. They are all useful in some respect, C++ for application programming, Java for web programming, Perl for back-end programming and scripting, and they're also well-estrablished, although most major applications, including almost all big games, are generally written in C/C++ (to my knowledge, though some smaller games are written in Java and Perl). I'm sorry I didn't find any resources for any of these for you, but a google search or an amazon search should turn up more information than you'll ever need about these languages and programming in general. So, that was more like $5, and I would really liked to have said more - programming is one of my favorite things to do - but since I can't really, good luck and have fun. If I was too ambiguous or you have any questions, I'd be glad to answer them.

by billclewis2

My Brother, during the DOS Wars, did a great deal of functional work in Basic. (All of this during the time when Word Perfect ruled, an XT was top end, and when everyone wrote code in a very concise way.)

I had thought that Basic had become just TOOOO basic to even consider. Thank you for the suggestion. Given that they are very conversant with Office applications, would learning VB Script be an equivalent to learning Basic (in terms of teaching logic and ease of learning, not in terms of what can be done with it).

by tony hopkinson

The reason it's easy is because it hides some fundmanental programming concepts.

I understand VB.NET is an improvment, but VB6 is probably the worst language I've ever seen, so that's not that much of an achievement.

I've tidied up a lot of code written by new starters in it. The applications they'd written looked OK, but underneath they were absolutely awful. If your chaps want to take on serious coding they'll be better off with a language that doesn't provide them with a way of skipping important concepts and encourages extremely bad habits.

by nihtekra

I'm not very familiar with VB script, so I can't give you very much information about it, but I don't think it would be equivalent to learning BASIC, simply because it is a scripting language and not a programming language. A fairly good way to picture the difference is to say that scripting languages are mainly used for connecting black boxes together to do something new, while programming languages are used to create the black boxes. I'm not trying to say that scripting languages are good for programming, but I think that learning a programming language is probably a better way to go.

I can't really tell if you're concerned about BASIC because it's so old and you think your sons won't be interested in it, or because it isn't as powerful as many of your other choices for languages to learn and that they'll be at a disadvantage. To address the second issue, BASIC is a fairly straightforward computer language, and while it isn't like C++, it still is a fairly powerful language, just not very impressive. It actually has many of the same constructs that C does, but the reason that C is considered such a powerful language is because of the versatility and access to the computer that the language provides, as well as the more advanced concept of pointers. I recommended BASIC simply because it's a good way to get a feeling for programming that won't interfere with learning anything later on. I would imagine they could start learning C++ instead, but then they also have to tackle the stricter syntax, harder keywords and variables, and other issues that arise in the more powerful languages, in addition to learning what programming is about.

As for BASIC being too old, well, it is pretty old. Gorillas isn't very graphically impressive, but it's a good demonstration of how to create simple graphics for a simple, and fun, game. On the other hand, if they start with any more powerful language, maybe except Java, making graphics becomes a hassle and requires a lot more programming knowledge than making simple graphics in BASIC does. Java has a fairly easy to understand graphics interface that makes it much easier to access the screen than in any other language I've used, but I think BASIC is still a faster way to get drawing, and it's much easier to understand drawing on the computer screen when you only have to deal with 320x200 pixels, rather than having to set the window size and resolution yourself without yet knowing exactly what those mean.

Just as a side note, and I probably don't need to say this, but it is important when they're learning to program to emphasize good style and practices. There are lots of styles, and people definitely argue about how to program, but in general a good style is consistent, easy to read, and provides other people with enough information to understand the code, usually in the form of comments. Too much whitespace hurts just as much as no whitespace, and overcommenting can be just as bad as not commenting at all (although not commenting is pretty bad). Using good style and practices helps a coder to avoid bugs and be concise. We don't need any more terrible programmers writing code that crashes all the time, has major bugs, or has huge security holes. It happens as a natural part of development, but it doesn't have to happen nearly as much as it currently does.

by hifromprince

Hi

What I think is if u programming in C and working on microcontrollers with C.

Then you will never fill bored because they r the most inventive things in world and there is no end of that things and u will like programming much more and more..............

by 352.ritu

hereby i would also like to ask u as i m also a computer science student that how can i develop more and more interest in programming as i dint had this in my class 12th..plz suggest some way of proceeding in this field..
i dint know about programming such as till my class 12th.i took this branch since i was able to get it..now things are not going well but as having a branch like computer science i want to develop a very very great interest in these things as i know that things things will become my life in future...plz suggest some innovative ideas so tha i can develop a great interest in these things..which are the things i should stress upon while making a new program or understanding a program or the way of understanding the program...

by tony hopkinson

an interest in programming. Some problems are considerably more intetesting to me, not necessarily anyone else though.

This would be like saying I need to find golf interesting to progress my career, please help me.

Earning millions and being covered by blonde bimbettes is interesting, I'd rather do fishing though to be quite honest. Doesn't pay as well, but I enjoy it.

What do you find interesting, is there something you could program that would use that interest. If it's too big, how can it be usefully and interestingly broken up.

I enjoy scrabble and spent days on making the fastest 'find words that will fit on the board with those in the rack.' Scrabble bores the tits off a lot of people though. Each to their own.

It won't help you to understand, it will merely encourage you into putting more effort into it.

by mdhealy

I hate to start with a clich?, but the answer really is, "it depends." There are many programming languages because there are many different needs out there and each language has its strengths, its weaknesses, and its history.

The first question to ask is, what ELSE are your sons interested in? That may have a large bearing because different technical communities have historical preferences. For example, consider my own history. My first programming language was FORTRAN (which I keyed into a PUNCH CARD machine, this was a few years ago), because at the time I was an engineering student and FORTRAN was the dominant language for engineering calculations. Today I am in Genomics and I use Perl, Java, and SQL because those are the languages that dominate bioinformatics. I've used a few others in between.

So if there is a particular field, other than programming as such, that interests your sons then you should check websites and blogs devoted to that area and see what they use.

But your sons also must learn a lot more than just coding. For me, Perl is a tool to accomplish collaborative drug discovery research. If all they wanted was to solve standard problems in Perl, they could outsource that to Bangalore (there are a large number of people over there doing routine grunt work for us right now). They need me because I am engaged in the full process of scientific research with my wet-lab collaborators. I spend maybe 20% of my time writing code; the rest of my time is spent thinking and discussing what my code needs to do. For that, DOMAIN KNOWLEDGE is essential: while I do have some computer science training, I also have an engineering degree and a doctorate in biology.

So your sons need to know some NON-computer field in sufficient depth that they can be active collaborators with colleagues working in that area. Also, they need to know the fundamental principles behind programming because no matter which is the first programming language they learn it ain't gonna be their last! They need to know basic algorithms, they need to know databases, they need to know networking, they need to understand the multiple levels of abstraction that characterize modern IT systems.

Also they do need to know several programming languages. More important than which specific ones they learn would be making sure they learn languages in several of the major CLASSES of languages:

1. They should learn one procedural systems language such as Basic, C, or Pascal.

2. They should learn one Object-Oriented language such as Java or C++.

3. They should learn one scripting language such as Perl, Python, or Ruby.

4. Optionally, they should also consider learning LISP, an idiosyncratic language that will force them to think about some deep concepts that are easy to avoid facing in other languages but will be useful in almost any.

5. If they plan to work on the business side, then they should consider learning Visual Basic -- it's not an elegant language, and learning it before learning a few others can do permanent damage to one's coding style, but in the business systems world VB is hard to avoid.

6. If they plan to work in web development then they really must learn JavaScript. Actually, it might be fun and worthwhile for JavaScript to be the FIRST language they learn -- it's a fairly decent modern language as such go, it's freely available in any browser, it's kind of fun to make active web pages that they can show their friends, and every time you see some cool JavaScript trick on the web you can use "View Source" to see how it's done. I do however strongly recommend that EVERY web page must be tested with BOTH Internet Explorer AND Mozilla browsers, because each has its quirks and making pages work equally well with both can be tricky. However, learning to work around browser quirks will teach them an EXTREMELY important fact of computing life: for just about ANY language there exist multiple not-quite-compatible implementations and therefore real coders often must deal with portability issues.

by tony hopkinson

and vehemently disagree with 6 for exactly the same reasons. Javascript will also severely damage coding ability.

You need to know the basics before you use a language that flat out ignores them.

by jslarochelle

I would recommend Java. There is an incredible amount of material available on the Web for Java. They can get Java 1.5 SDK free from SUN. They can use Eclipse (free) as their environment. They can get a lot of other free tools on the Web:
FindBug (a good static code analyzer), various Eclipse pluggin (GUI builder, etc.).
They can take advantage of the great written material available for Java developpers (some of the best books on Concurrent programming: Doug Lea, Brian Goetz, etc.)
As they mature they can use some of the advanced technologies available for the Java platform such as AspectJ for AOP, Hibernate for database persistence and a lot of other good free tools. Also, they can share programs with their friends who are using other platform such as Linux or other hardware platform such as Mac.
Now in case you are confused about all those suggestions you got, here is a tip: most of the languages suggested by other people on this site will probably do just fine. I will suggest however that they wait a while before getting into C/C++. It is a difficult language and might be painfull as a first introduction into programming. We use C++ at work and it is the language that junior programmers have the most trouble with. Don`t take me wrong, it is a great language and it is needed to write all those great script interpreters and byte code compilers...but it is difficult.

by mcrogerm

LOL! I remember back in the '80s reading that Edsger Dijkstra, considered a Code God in those days, refused to accept students (I think he was teaching at the University of Leyden then) who had learned BASIC, on the grounds that learning the language had permanently damaged their thought processes.

by dfo_rexx

what type of "job" you want and then learn that language.

I've programmed in practically everything, mostly self-taught, as both an application and a systems programmer. From 64K Basic on CP/M, through Fortran and Cobol, C+, several types of assembler languages, Unix cripting, SQL, and recently XML and Java, I've found two things.

1) the most commonly-used language in the business depends on mainframe (still COBOL, but Java is catching up) and servers (again, Java). Java is a good way to go, however...

2) if you want to learn basic (small letters, grin) programming in an easy-to-learn, but powerful and portable language, try REXX. Although nobody has mentioned it before, you can write entire applications in REXX, whether on the mainframe or on servers. There are several REXX interpreters on the market for many platforms, nearly all of them free, and a lot of documentation available.

I know some will laugh at this suggestion, but REXX is English-like and I've taught even non-programmers REXX (try that with Java). I don't recommend it as a career-building language, but if you don't know any others, give it a try to bridge to others.

Of course, if you already know programming, Java is the way to go.

by tony hopkinson

Worked like java basically. Your code was transalted into tokens and the pushed through a processor.
Compiled basic came out on other platforms.
VB, VBA and VBscript all came from the same family in the same way as Java, perl came oot of the C family.

Your point about good coding practices was well made. They don't exist in VB, VBA or VB script.
You can learn to code in an environment that doesn't enforce typing for instance, it's much harder to learn how to code well in it though.

by mcrogerm

The original version of BASIC (the acronym stood for Beginner's All-purpose Symbolic Instruction Code)wasn't anything like what was later pushed as Visual Basic. Frankly, I never understood how they could claim VB was in any way related to BASIC, which was the real beginning of Bill Gates' and Paul Allen's fortunes. The original BASIC was written for a time-sharing machine at Dartmouth, and as far as I'm concerned was pirated by Gates and Allen, although their product was a work of genius. I agree with you that VB 6 was the most hideous jumble I ever tried to understand, and I only did because I was trying to write an application based on an Access database. Well, I'm still trying to do it in MySQL and PHP, and it's easier.

There are free BASIC interpreters available, but I don't know where you could find the old Q Basic now. And there aren't nearly so many example programs available as there used to be. Perl, as someone suggested in another post is good. Actually, an interpreted language is a better learning tool, I think, than a compiled one.

by tony hopkinson

some really nasty syntax and the fact that an untrained noob could develop something that looked ok with it.
I aren't too worried about interpreted vs compiled, after all VB6 is compiled, it's still crap.

Any language where variable declaration and typing, scope and lifetime management are optional is a really bad start for a programmer. I've seen the results of that, leaky, inefficient,fragile, stifled with variants and patched to hell and back to make it 'work'

Lifetime Management is becoming less critical in these modern days of garbage collection, but I still need convincing this is a good thing, for the discipline.
The fact that a now unused artifact will be freed might solve memory leaks, it still means your logic is crap though.

by tony hopkinson

I must confess I've never liked Java.The last time the penny failed to drop I was seriously into Delphi. Maybe once I get my head round C# I'll be able to progress back to it.
One thing I've always noted it's big selling point was portability, and that never panned out. Ask Jacqui about JVM's under linux, drives him buggers.

by jslarochelle

And I think C# will be perfectly ok as a first language even though my main language at work these days is Java.
I will have to ask Jacqui what problems they have had with Java under Linux because I know of at least two applications that have been ported at work with no major problem (and not much work from what I have heard).

I have to apologize for possibly hading to the confusion because my post ended up as a reply to one of your post but was actually meant for the trunk. I was distracted and forgot to go back to the root.

JS

by jaqui

which jvm?
it conflicts with gjc, kaffe and every other jvm.

eclipse framework to manage conflicts between jvms? sure, slow down the already slow java by adding yet another layer of prcessing between it and getting any work done.

java needs to have one jvm for every application, the choices in jvms is a failure, fatal one at that, in the language.

no two jvms handle the code the same way, so the jvm used has to be installed on the client's system, which is a conflict with any other jvm on the system.

applications for running on a system, not for a web site, should never be done in anything but a compiled language for performance reasons alone.

I actually went and installed the eclipse framework, to look at the zend studio tools for an ide, and it failed to run the zend java application. so eclipse [ from distro packages] and zend sudio lasted 10 minutes before they were uninstalled.
[ I actually never install a jvm because the language is broken, so I'll never buy a java based application. ]

by jslarochelle

a high school project. I am working on a suite of application for industrial continuous on-line FTIR analysis. The major problems that we have right now are comming from compiled C/C++ DLLs. And we have good C/C++ programmers. However, we plan to get rid of most of the C/C++ stuff. Our FTIR instrument now uses a TCP/IP protocol so we will get rid of the acquisition driver and we should be able to do the same thing for some of the I/O drivers.
I feel that Java is getting better with every version. The new multithreading support in 1.5 is just amazing and the annotation is a great tool for more formal class specification. There is just not going back.

Thanks for the input anyway I will keep the multiple JVM factor in mind.

JS

by tony hopkinson

I've done a lot of work in heavy industry, never in java though, wouldn't even have crossed my mind to use it.
All the high speed or low level stuff I've done has been C, Fortran or PLC based.

by jaqui

since B.A.S.I.C. was designed as a learning tool only.

no real programming work was ever an intended use of the language. [ hmm.. maybe we have another example of how MS screwed the pooch with their products... visual beginners all-purpose symbolic instruction code... ]

by mark miller

Yep, that's what I first programmed in. There were no procedures or functions. Just line numbers. I remember I used to increment my line numbers by 10 so that if I needed to put lines of code in between them I could. I also used some line-renumbering utilities a couple times. Those were life savers.

The one thing you could do that was kind of like procedural programming was GOSUB to a line number, which would create a "return point" for you at the point of the GOSUB, and you could RETURN to it later. I don't remember, but I don't think GOSUB's were stack-based either, where you could be at Point A, GOSUB to Point B, and from there GOSUB to Point C, RETURN from C to B, and then RETURN to A. I learned procedural programming in LOGO. I started using GOSUB's in my BASIC code to emulate procedure calls. After that experience I decided to just move on to Pascal where I could work with real procedures and functions, with a real stack.

I've had a couple opportunities since then to look back at my old BASIC programs. I knew what some of them did, but others I couldn't figure out just by looking at them. I remember thinking, "I don't know HOW I programmed like this," where ALL variables were global! Yuck! Some BASICs didn't store more than a certain number of characters of a variable name. I remember in Applesoft BASIC the max was 2 characters of uniqueness.

I took a COBOL course in college. It reminded me of that experience, and it was exasperating. I was so used to scoping rules in more modern languages, I couldn't go back to all-global scoping without getting disgusted with it.

BASIC has come a long way since then. I've said this elsewhere. VB.Net is similar to Delphi (Object Pascal) in terms of the language features it supports. It's verbose, like BASIC always was, and it still has some syntactic holdovers from the old days. Like, you can still say Dim <a variable>, or Print <some string>, but now the string shows up in an alert dialog. I'm guessing GOTO still works, but now you GOTO a label.

Anyway, I did some programming in VB.Net last year, and it was alright. I was so used to C-style syntax (like in C, C++, and C#) that it was awkward. I haven't programmed in BASIC for a couple decades. It had a nice, useable structure, and it also brought back some fond memories of programming as a youth.

by mark miller

"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration."

It came from his speech, "How do we tell truths that might hurt?" from 1975 (at http://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD498.html). I call it his "Inconvenient Truth" speech. :) When I first read it, it reminded me of the scene in the movie "Liar Liar" where the main character is brought into the lawfirm's boardroom and he "roasts" everyone in the room. Dijkstra is so blunt, it's funny. :)

I didn't know he didn't accept students into his class based on what language they had programmed in before. From reading this though it sounded like he had an intolerance for BASIC. He criticized just about every programming language that was out there at the time, including FORTRAN, PL/I, COBOL, BASIC, and APL. I may have mentioned this before in this forum. The one language Dijkstra appeared to like was LISP. He may have had a couple more favorites. This was the only one I've found so far where he had something nice to say.

by jslarochelle

about learning how to program he might be best looking at http://www.norvig.com/21-days.html.
Although I have a lot of respect for pioneers like Dijkstra this is one instance where you have to take the statement with a grain of salt. I?m certainly not a fan of BASIC however although it might be fun to joke about this at the water cooler ;-) I don?t think that learning it would cause any permanent damage.
I started programming in APL. This is one language that is very different from most other languages. In APL you rarely used loops and other such common constructs. Instead you would express the solution to your problem as a sequence of matrix operation (of course APL included very powerful matrix operations). While it is true that I had to adjust when I did make the switch to more conventional language I still think that the experience was beneficial. Another language that I learned early on was assembly language and this is full of GOTO (jne, etc.).

by tg2

Ok, maybe I wouldn't go so far as to force a programmer to know intimate details of a cpu and system, but I know I wouldn't hire someone that spells "you are" as "Ur" nor would I believe that someone that does spell that way is l33t or that they would be in the position to mandate what programmers would be hired, and what their skills should be.

(BTW, his post is the same way and seems to be designed to cause turmoil)

by 352.ritu

thanks a lot
i would like to repeat my question as i think that u have not clearly understood my problem.. my problem is "what are the ways by which programming can be made interesting" or in other words what are the way of learning programming when i am in my lowest level...

This discussion is closed to new replies.