Python Bumps Off Java As Top Learning Language 415
itwbennett writes: Python has surpassed Java as the top language used to introduce U.S. students to programming and computer science, according to a recent survey posted by the Association for Computing Machinery (ACM). Eight of the top 10 computer science departments now use Python to teach coding, as well as 27 of the top 39 schools, indicating that it is the most popular language for teaching introductory computer science courses, according to Philip Guo, a computer science researcher who compiled the survey for ACM."
Which raises the critical question: (Score:5, Interesting)
Re:Which raises the critical question: (Score:5, Funny)
Who cares? Isn't the critical question always what editor they should program with? Everyone knows that real programmers use vim. Long live vim!
Here: something to distract you while I go duck under a desk [xkcd.com]
Re:Which raises the critical question: (Score:5, Funny)
Re:Which raises the critical question: (Score:4, Funny)
vim! You are a reformed apostate!
How dare you split from the true path of vi? You might as well join be working for the forces of E.
Re:Which raises the critical question: (Score:5, Informative)
I really hope 3.x, if only for the fact that your code tends to work with non-English text by default, because str supports the whole Unicode range, so it works with non-English input by default. Compare to 2.x where you have to make a conscious effort to work with Unicode. Particularly important for third party libraries, where they aren't producing a final application, and often don't think about Unicode at all even for text based APIs. Heck, the Python built-in csv module in 2.7 doesn't work properly with Unicode; you have to load or convert as UTF-8 bytes, parse, then decode to the 2.7 unicode type. It's a mess.
For teaching purposes 3.x is even better, since you have a proper distinction between binary data and text, rather than the mushy 2.x situation where str is sometimes binary data and sometimes handicapped text, while unicode is always text, and sometimes interoperates with str, while at other times it explodes. Teaching languages should be consistent, and 3.x is simply more consistent than 2.x (largely because of cleanup decisions like this).
The Future's So Bright (Score:5, Funny)
I can't wait for this generation to saturate the industry. Fewer bugs, better features, from less nonsense to code programs with. They might even be better as people, with clearer heads. Python might even help you think more clearly.
Re:The Future's So Bright (Score:5, Insightful)
That's not how it works. Bad programmers are bad programmers - it doesn't matter what language they touch.
Re: (Score:3)
Bad developers are bad no matter what. But good developers make less mistakes in a language where there's less freedom and ease to make mistakes. The recent openSSL bug is a good example. The person who made the mistake isn't a bad programmer, but he did make a dumb mistake. Something that wouldn't have even been possible in an intepreted language.
Tools DO make a difference. They can very easily save you from yourself and not allow you to do things that you really shouldn't be doing.
Re:The Future's So Bright (Score:5, Interesting)
But good developers make less mistakes in a language where there's less freedom...
Some of us like having the training wheels off our bikes.
Re: (Score:3)
Absolutely! OpenSSL should have been written in Python. In fact I am starting a new fork of OpenSSL called PythonSSL - we will be rewriting the codebase in Python to finally improve the performance and get rid of the horrible looseness of the abomination called "static typing" and declaring your variables, replacing it with dynamic typing where bugs are impossible.
Re: (Score:3)
What are you talking about? Interpreted languages let you reuse data structures for performance. What he did was a performance hack. If anything in languages where getting performance is more difficult we'd expect more, more complex and more subtle bugs like the SSL one.
Unfortunately (Score:3)
Re: (Score:2)
You want to know what is really funny? What you said works perfectly if taken absolutely on the level.
"Top Learning Language" ...OR... (Score:5, Interesting)
"Top Learning Language" ...OR... "Top Teaching Language"?
Do we have some great metrics as to how well people taught in Python actually *learn*? You know, for things like memory allocation, pointers, and so on?
Re:"Top Learning Language" ...OR... (Score:5, Insightful)
I think they're going for teaching conditionals, loops, classes, functions and structure. You don't need to teach them about memory allocation, pointers and memory alignment in an introductory class. You can save that for an asm and C course. Or better yet, a memory class (which I've not seen).
Re:"Top Learning Language" ...OR... (Score:4, Funny)
Funny you should mention a memory class. I'm the Computer Science department head at my university.
I was going to introduce a memory class last semester, but I forgot.
Re: (Score:3)
Here you go:
{
1: fn1(),
2: fn2(),
3: deploy_attack_kittens()
}[input]()
Complaining about a switch statement missing in Python is like complaining that Superman doesn't have a faster airplane.
Re: (Score:2)
And of course, I submitted with a typo... omit the parenthesis inside the dict on the callables.
Corrected:
{
1: fn1,
2: fn2,
3: deploy_attack_kittens
}[input]()
Python for learning? Good choice. (Score:3, Insightful)
Python is an awesome language for learning - I'd vote for any language that allows interactive code debugging and experimentation. I see Python used everywhere these days so it's even useful as industry experience.
I'm a C++ programmer by trade but there's no way I'd wish that language on a student. It's a hellish nightmare clusterfuck language that doesn't know what problem it's trying to solve anymore. Java is loosely based on C++ so it inherits a lot of the problems. I only wish Python would allow stricter interface constructs...
Re:Python for learning? Good choice. (Score:5, Insightful)
I'm a C++ programmer by trade but there's no way I'd wish that language on a student
Agreed. Its not a learning language.
I only wish Python would allow stricter interface constructs...
I only wish python didn't have semantic whitespace. That's it. Otherwise i like it just fine.
I want the compiler/IDE/whatever to pretty-print and reformat my code to reflect program semantics, not have me spend my time formatting it to DEFINE program semantics.
A programming language that can have its code be destroyed by copy-paste / email / web-forum formatting mangling is simply idiotic.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
As opposed to pasting misformatted shit that causes confusion and bugs?
Yes, as opposed to that. Which almost never happens.
And I have the IDE reformat code pretty regularly (and before check-in) so the rare case of mis-formatted code that someone might actually be confused by doesn't stick around long.
Whereas in the course of maintenance and composition I mangle (or encounter mangled) python code that needs to be reformatted manually all the time.
So yeah, I'll take the almost never happens and usually is ha
Re:Python for learning? Good choice. (Score:4, Insightful)
I only wish python didn't have semantic whitespace. That's it. Otherwise i like it just fine.
I'll disagree on that. We use white space to communicate our programs' block structure to other humans. Why should we use a different syntax to tell the compiler the same information? Computers should conform to the needs of humans. Full. Stop. Python eliminates that source of bugs and redundancy by having the compiler's view of the significance of what space match a human's view of significance of white space. Please join us in the 21st century. I'm old enough that I did undergrand homeworks with punch cards, and just missed being taught intro to programming using FORTRAN. One thing I've learned over the years is to recognize progress when I see it.
Re:Python for learning? Good choice. (Score:4, Insightful)
We taught C++ to a lot of students, and a lot of them learned it very well and were able to move on to other languages easily enough. Although I think a problem is that today's students aren't as nerdy as they used to be, they don't want to learn about computers and programming and everything related, from assembler and transistors up to lisp and databases, but instead just want to get their 9 to 5 job in whatever field seems to pay the most for the least effort.
Re: (Score:3, Insightful)
If you're copy-pasting enough code from web forums
Ah yes, because teaching yourself from online resources like the web is a bad idea. And one should always retype everything from scratch despite it already being more or less what you want one window over.
and emails for this to be a problem
Well, not so much in practice, because it's a waste of time, so we have to diddle around with little attachments etc because trying to put any code in the email body directly is likely to barf on itself.
It would be nice no
Makes sense (Score:4, Interesting)
It makes sense. IMHO python removes a lot of the hardware considerations that other languages have. This allows for a focus on the CS material, rather than the engineering material. An advantage over java is that it also supports functional programming. That means that you can teach introductory CS principles in multiple programming styles without having to switch languages. Top it all off with forced indentation (not my favorite thing), which makes beginner code easier to read for instructors and I can see why they did this. Now, later they'll get into asm and C/C++ and memory alignment and paging and all that stuff, but starting out it's nice.
Comment removed (Score:5, Interesting)
Re: (Score:3, Insightful)
'Hate' is an understatement. The language's syntax is broken by design. It's a shame another scripting language couldn't have caught on.
Re: (Score:2)
yeah, but beautifully broken. I don't like it much personally, but the restrictions do make it harder to write obtuse python code, which makes it much, much better for collaborative projects or introductory education. its wide use is another good reason to teach intro with it; even if the student doesn't take more classes, they have more opportunities to self-educate. even if you think it's a bad language (and, imho, it's not bad, just unremarkable), it's still a reasonable choice for a first teaching langu
Re: (Score:3, Insightful)
OP is right. Caring about whitespace is one of the fatal flaws of a programming language.
Make shares the same flaws, but at least it does something useful.
Re:Java or Python (Score:4, Insightful)
Humans care about whitespaces. That's why there are spaces between words, lines, paragraphs and so on. It is easier to spot a lack of indentation or a line break than, let's say, a missing ; at the end of a line (or an extra one, like for(int i = 0; i n; ++i); { do something }").
This kinds of things make it easier for beginners, and they should not be a problem to experienced programmers, either.
Re: (Score:2)
In Python its annoying, but it could be worse.
Doing it in a markup/templating language is where the capital sin starts. Jade, I'm looking at you...
Re:Java or Python (Score:5, Interesting)
Why o why do people drop Pascal? It's still one of the best languages to learn how to program: it's typesafe, compilers plenty, and you can easily create custom types (records). With pointers to records you can make lists, trees etc. - all the constructs basic to the trade.
Re: (Score:2)
The whitespace sensitivity is not the thing I hate most about Python (although I hate that too). I hate that I can't build a string by doing "Foo" + i (where i is an integer) and I can't catch the error at compile time (because it's interpreted, but more because variables aren't declared to be a type); it's a "worst of both worlds" combination of weakly and strongly typed language. Also the ternary operator is a huge WTF: a if test else b . Why the hell would you put the test in the middle of the 2 poss
Re: (Score:3)
The ability to seamlessly use + with mixed text and numeric types in a language without explicitly declared types is usually considered a design flaw, not a positive feature. Perl uses separate operators for strings vs. numbers to avoid ambiguity, while Python and Ruby require explicit type conversions. Java defaults to string concatenation, but Java requires explicit types, so you get a compile time warning if you make a mistake like adding a String and an int and expecting an int. Even PHP, the go to stan
Bah humbug. (Score:2)
I like Python, but BASIC on a C-64 VM is what they should first learn.
No need to become an expert in it; maybe just 1/2 of a semester. But with line numbers analogous to memory addresses, GOTO essentially a branch, and GOSUB like subr, they'd get a better sense of what is actually happening in the "h/w", before going to a super-HLL like Python.
Re: (Score:3)
And even most C64 owners dropped it ASAP and went straight for assembly.
Which only has equivalents to goto and gosub.... you were saying?
Re: (Score:2)
I was saying that basic was an intermediate stage that noone wanted to bother with. If you want memory locations and jumps, going straight to assembly is the easier route, IMO, because it drops the syntactic clutter of C64 basic. If you want conditionals etc. you are better off with Pascal.
Re: (Score:2)
I'm not sure than any language exists that can truly* replace GOTO through the use of other flow control sugars.
* equivalently - stacking multiple flow control branches to simulate the singular GOTO is not the same.
Re: (Score:3)
Re: (Score:2)
a bad intermediate language
It, like COBOL, is only bad if you make it bad. (Shelly & Cashman -- may their non-existent souls burn in non-existent Hell for all eternity! -- made COBOL bad. Real experts in the language showed me how good and capable it (even the much maligned COBOL-74) the language. -85 was even better.)
Congratulations Vinod Khosla (Score:2, Troll)
By investing Sun Corporation in making Java the standard programming language of computer science courses in India at the same time that the H-1b program expanded to take over the Fortune 500, Vinod Khosla managed to set the software industry back more than a decade.
Pascal (Score:4, Interesting)
Wait!!! What happened to Pascal?!?!? On a more serious note, Pascal was the premier teaching language back in the day, but it really wasn't used much in the real world. It was a stepping stone for learning C, which is where the real power was at and what "real" applications were developed in. I believe there is less disconnect today between the popular learning languages and what is actually utilized in the real world.
Re:Pascal (Score:4, Insightful)
Pascal had fucked up string handling, though some dialects partially rectified that.
Also, back in the golden age of DOS (late 80s to early 90s), [Borland] Pascal was in fact the language in which many "real" applications were developed, as well; even games. Delphi was also pretty popular on Windows in late 90s to early 00s.
Re: (Score:2)
The nice thing about Pascal as a learning language was you knew it was a toy language that you wouldn't use in the real world. I fear the programmers who learn Python in school and then try to apply it to major projects in the real world. I learned lots of other academic languages in school too, there is no problem with the fact that I never used them outside that class; it taught me to pick up new languages quickly.
At least it wasn't Ruby! (Score:2, Interesting)
As much as I hate whitespace formatted languages I hate Ruby most of all. The language itself isn't the problem, it's the hipster asshats who promote it. They should all die in a fire. I'm working on master's in CS and we still use Java, C, and C++ so it's going to be a while before any of the decent languages are displaced in academia.
Great, an entire generation that won't... (Score:3, Insightful)
be capable of comprehending blocks. Their kind simply doesn't fucking get begin and end even in pseudo code. I've had to fire three Python devs that simply couldn't figure-out how to use {} in JavaScript. It's not that hard, but I think that horrible language spoils them into thinking that whitespace is magical. Of course colleges want to graduate people that can't keep jobs so they get more customers for their masters programs so they love Python. Making sure you graduate people that are unable to find and/or keep jobs is the number one job now of college professors.
Re: (Score:2)
Their kind simply doesn't fucking get begin and end even in pseudo code
Huh? IIRC, pseudo-code most often uses indentation to indicate the level of nesting. I always thought that this was why Python used it in the first place; it's a good idea, even if I don't like it.
And you may as well say that C/Pascal/whatever spoils you into thinking that braces are magical. It's just syntax. If your employees really can't figure out fucking braces then there's either something seriously wrong with your company, or you
Re:Great, an entire generation that won't... (Score:5, Interesting)
You attribute the mistakes of idiots to their language of choice? What does that say about your ability to judge the merits of technical people you work with?
Doesn't fix the problem (Score:2)
Good idea (Score:5, Insightful)
Python isn't a bad first language. It has all the important advanced concepts - objects, dictionaries, closures, and threads. The syntax is reasonable. Some people are bothered by the forced indentation, but for new programmers, it will seem natural.
Most of the problems with Python are performance related. They come from obscure features of the language, such as the ability to do "getattr" and "setattr" on almost anything, including objects running in another thread. So everything has to be a dictionary. (This is sometimes called the Guido von Rossum Memorial Boat Anchor.) PyPy is struggling hard to overcome that, with some success. (The optimization approach is "oh, no, program did Obscure Awful Thing which could invalidate running code" - abandon compiled JIT code, shift to backup interpreter, flush JIT code cache, execute Obscure Awful Thing, wait for control to leave area of Obscure Awful Thing while in backup interpreter, rerun JIT compiler, resume running compiled code.)
MATLAB! WTF!?!?? (Score:2)
That's disturbing.
Re: (Score:3)
Who cares what they use as long as... (Score:2)
...they point out to the students all along the way that they should learn other languages, toolsets, and operating systems if they want to be useful when they graduate/drop out.
Subjectively I would recommend they start with C specifically because you can hang yourself but it has few ropes to do so than C++, and then different languages for different aspects of Computer Science after that. There's virtually nothing in an undergraduate Comp Sci syllabus that should prevent you from learning a new language f
What happened to Scheme? (Score:4, Interesting)
Re: (Score:3)
Because it's a *terrible* language for learning the fundamentals of programming? It's a pretty good language for learning the fundamentals of *programming languages*, as in a PLs class, and a pretty good language for learning how to think in functional language ways, but really, I can't imagine anyone thinking starting first-time programmers in a purely functional language would be a good idea?
Which is not to say it hasn't been done, just that it's crazy - the college I went to taught their intro course in
Re: (Score:3)
I think it was a great idea. This was taught at MIT by the way, not DeVry or IIT Tech or University of Phoenix. MIT is not in the business of churning out code monkeys, so their "computer science" curriculum really was about computer science.
Re: (Score:2)
The people who designed the SICP curriculum felt it wasn't teaching the right paradigms. SICP was built around a world where a programmer wrote small programs and tied them together. An individual programmer could really understand an entire production program. Today's programming world involves programmers using massive and complex specialized libraries with far more large group projects. SICP/Scheme didn't train people for that sort of environment. They needed to switch from "what data-structure wou
Re: (Score:3)
Scheme was developed by CS professors for other CS professors. It was not made for students, regardless of what the purple wizard book claims. It was written by CS theorists who were very good at CS, and very bad at teaching.
Scheme programs were neither easy nor obvious to read or comprehend. It's simplified syntax results in the need for overly complex machinations to produce anything but the most trivial of operations - writing an algorithm that's gone 18 or 20 indentation layers deep is fairly standar
Re: (Score:2)
Scheme was developed from LISP to prove the possibility of constructing a language from the ground up using a Meta-circular evaluator. That was important for SICP because it meant that every student knew how to create a language using arbitrary primitives, a DSL. There is no way in an 1 year introductory Python class the students would be anywhere near ready to implement a Python with different primitives. You can argue that the entire LISP philosophy is the wrong approach to solving complex problems, an
Re: (Score:3)
new students must first learn to think along a different paradigm, one opposed to how they had been thinking their whole life,
I think this is by far the most important things that students need to do. And they need to do this early on in their education, not just as some optional upper division elective.
I mean if learning to think in a university is inappropriate, then where is it appropriate? Especially when the university in question is MIT of all places.
I was introduced to Python first (Score:5, Interesting)
hmm (Score:2)
Finally... (Score:2)
... some common sense !
Geez, what a load of whining. (Score:2)
Sheesh with all that whining you'd think all other languages are being banned from CS departments and nobody will ever learn anything else in later classes.
Whatever you think about Python, it has to be better than Java for an intro CS course. Less bureaucracy, can also do non OO paradigms, easier to code without an IDE etc, has an interactive shell for exploring code, and you get to the CS parts quicker without having to flounder around in the programming ceremony parts.
Moving away from Pascal (or Scheme or
Python is good but insufficient (Score:2)
1) It is easy to learn
2) It has a REPL.
3) It has a large standard library, and most things things in the library are easy to use.
The library is not super abstracted and overly engineered like so many other tools.
4) It has a large universe of third party libraries that are useful and easy to install.
There are bindings to many C/C++ and Fortran libraries. Things like numpy, scipy, and matplotlib.
5) The language and its libraries work o
Python + QT... (Score:2)
Ten years too late... (Score:2)
Why didn't this happened ten years ago when I went back to school to learn computer programming?
Like many community colleges back then, mine couldn't afford the Microsoft site license to get Visual Studio to teach C++. All the programming classes had Java, Java and Java. I learned a little bit of C/C++ and shell scripting in the Linux classes that I took. The assembly language and PERL classes got cancelled for a lack of students.
By the time I graduated from school, Java programmers were like a dime a dozen
Transitioning to "real" programs (Score:3)
Python lets you dive in quickly, and it has two properties I like in a first language: It encourages good practices, and it's in the C-derived language group so what you learn transfers easily.
The only thing you lose with Python is some of Java's ability to do "real" programming directly. A kid can use Java to do Minecraft modding, and a college student can write Android apps. There aren't so many direct uses of Python. (Yes there are a lot of real-world uses for Python, but not for writing user-level apps.)
My biases, let me show you them (Score:3)
My recommendation for an initial language has long been Pascal. Technically, it has nearly all of the big concepts that you'd want to demonstrate in a computing language. Practically, it is sufficiently annoying that the student will be receptive to the idea that the language of a program is a design choice rather than getting stuck on the first thing they learned.
Re: (Score:2)
Re:another language shoved down your throat (Score:5, Funny)
Re:another language shoved down your throat (Score:4, Informative)
You are far from alone in misunderstanding Javascript [crockford.com].
Re: (Score:2)
Well, that's a high complement a misunderstood langauge. That seems like a perfect language to teach people, the one that most professionals misunderstand. Its like how all of our schools now teach exclusively in Esperanto.
Re: (Score:2)
You are far from alone in misunderstanding Javascript [crockford.com].
That link is 13 years old. Surely JavaScript has become even more confusing by now.
Re: (Score:3)
Re: (Score:2, Insightful)
Clown. And that is all the response you deserve.
Re: (Score:3)
what do you mean, picking up steam - Enterprise (those who are Windows shops of course) use C# extensively.
However - think of it like this. Ten years ago, you'd be the one saying Visual Basic is the most widely used language in enterprise, so we should be teaching kids that. And today, those kids would be coming out of college knowing all about VB6 (note, schools don't change curriculums overnight, it takes a long time for them to realise, and even longer to implement change - Java was popular in 1996 which
Re:another language shoved down your throat (Score:4, Insightful)
Yeah, because the concepts of C# cannot be aplied to any other language like Java or Python.
Re:another language shoved down your throat (Score:5, Insightful)
If you're being force-fed anyways, I think python would be much easier to stomach than java for introductory courses. And it would be much easier to grade (if grading consisted of more than "did it output correctly") since introductory students aren't exactly known for their exceptional code organization and formatting skills.
Re:another language shoved down your throat (Score:5, Informative)
Computing science is not about programming, but programming is often used as a tool in computing science and they therefore (rightfully) have you take programming courses before going into the more theoretical material.
Re: (Score:2)
I don't know about your CS courses. Ours here pretty much expect you to KNOW programming if you want to have a snowball-in-hell chance to graduate.
Re:another language shoved down your throat (Score:5, Insightful)
now I guess python will be forced fed to people who don't want it
That seems like a silly objection. It is not practical for a teacher to let each kid choose their own language, nor are the kids knowledgeable enough to choose. I don't see any big organizations pushing Python the way that Sun was hyping Java back in the late 1990s.
At my kids' school, they start teaching programming in 4th grade, using Scratch [mit.edu], and move to Python in 6th grade. It seems to work well.
Re:another language shoved down your throat (Score:5, Insightful)
java was only "the most popular" because it was force fed to people who didn't want it.
I don't think you understand how schools and their curriculae work. Nobody is holding a gun to the collective and independently-operated heads of CS departments to demand which language they use for beginner courses.
Java was historically chosen because it was a safe option; used widely in industry, decent documentation and tools, it supports good programming practices, and it provides reasonably powerful options while being relatively beginner friendly. Java largely replaced C and C++, which are not beginner friendly.
Re:another language shoved down your throat (Score:5, Insightful)
C is very beginner friendly in my opinion. It was my first non-BASIC language. Learning C you learn how those bits and bytes work and how shit gets done. The paradigm is old but not obsolete.
But yes, Python is a great choice. My only gripe is the use of indentation instead of curly brackets to mark blocks.
Re: (Score:3, Insightful)
My only gripe is the use of indentation instead of curly brackets to mark blocks
I'll never understand that criticism. Don't you indent your code? Have you ever been fooled by incorrect indentation that didn't compile the way it looked? Brackets, begin..end, and semicolons are crutches for compiler writers not programmers.
Re:another language shoved down your throat (Score:5, Insightful)
Have you ever been fooled by incorrect indentation that didn't compile the way it looked?
Nope. My editor takes care of indentation for me, in every common language except Python, and when I have to deal with a batch of code written by someone else, I run it through indent(1) first. So, in fact, it's just the opposite: when the indentation doesn't match what I expect, I know there's an actual problem in the code!
With Python, on the other hand, I'm actually more likely to have an error in the indenting, because there's no easy way to see how many blocks I'm terminating when I outdent by an arbitrary amount. Which is a real PITA when you're refactoring.
Of course, things may be different if you're using crappy tools. But professionals shouldn't be using crappy tools.
Brackets, begin..end, and semicolons are crutches for compiler writers not programmers.
No, they're tools to make my job easier. Whatever the historical reason for them may be, they benefit the programmer! They make me more productive.
Now, I'll grant that Python is a remarkably good language despite its horrible flaw of relying on indentation. And many of its good features also make me more productive. But that doesn't mean that relying on the indentation isn't a horrible flaw.
Re:another language shoved down your throat (Score:5, Insightful)
And for that reason python is good for a first course, as it forces the students to indent. I am tired of lazy students that don't indent, and then complain why their code doesn't seem to follow the intended flow. It is hard to teach good habits and practices. And any help, specially from the programming languages, is welcome.
Re: (Score:3)
Re: (Score:3, Informative)
No, it is popular because, despite a good many flaws, it remains the best cross platform solution we have.
Re:another language shoved down your throat (Score:5, Insightful)
That's rubbish. Most of the major platforms have had Java ported to them. Including various obscure systems is ludicrous. If I want a program that I'm almost guaranteed will run without recompile on Linux, Windows, BSD and even many mainframes, then Java remains the best solution. I'm not saying, from a programming perspective, that it's all that great, but from a platform neutral perspective for most of the systems that a programmer will encounter, it remains the best.
Have fun running an x86-64 Linux binary natively on a Windows 8 machine. I can. however, write a Java program that I can almost guarantee will in fact run on x64 Linux or Windows.
Re: (Score:2)
having a generation of students that don't know how to use pointers seems, rather scary to me.
Just a quick googling reveals that Python has "list index out of range" errors. So. The difference is one of consequence, not of type. In C you get undefined behavior.
Yes, it would be good for the new generation to have some "to the metal" experience; but it's not that great a loss. If they have to go there, you can simply tell them that going out of range is much more of a PiTA. The new languages protect the
Re: (Score:2)
Just a quick googling reveals that Python has "list index out of range" errors. So. The difference is one of consequence, not of type. In C you get undefined behavior.
Technically, remembering my C books, I think it is defined - as being "undefined". So it's a feature, not a problem. :-)
Re:pointers (Score:5, Informative)
It doesn't have pointers, but it does have references - which are basically pointers without arithmetic. In fact, in Python, everything in a reference (even primitive types like int are reference types). This is sufficient to explain the core notion of indirection, and data structures built on that notion, like linked lists or binary trees.
Re: (Score:2)
So we'll have more programmers who don't get why buffer overflows are bad.
In other words, nothing will change.
Yay for job security!
Comment removed (Score:4, Insightful)
Re: (Score:2)
n^2*(number of browser versions)
Re: (Score:2)
A problem shared is a problem halved?
Re: (Score:3)
Pascal, named after one of the great thinkers of his era.
Python, named after people with silly walks.