Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:Python (Score 1) 145

Appeal to popularity, at least I don't have that logical fail.

The original point was that people choose Python because that's all they know, not because they have evaluated the various languages and chosen the best. That's why appeal to popularity is not great, it was an explanation of the popularity.

Comment Re:About that... (Score 1) 145

But I've also spent countless hours of my life -- time I'm never getting back -- refactoring software only to satisfy the type checker because I built the object hiearrchy on the wrong side of a 50:50 decision...

In OOP most objects should inherit from the default object. You shouldn't be building a hierarchy unless you have a good reason. OOP is about objects, not hierarchies (that's what C++ got wrong).

Comment Re:Python (Score 1) 145

Disclaimer: If I need to write a script, I still use perl. I've poked around in python, but don't really see an advantage to it for myself.

I'll bet your Perl scripts still work after four or five years, don't have to worry about updates breaking things (Although updates breaking things is a solid source of job security, so maybe it can be considered a good thing).

Comment Re: Python (Score 1) 145

Wrong: I choose Python because it works and give me results faster in development time. For numerical stuff.

What you are saying is that Python has libraries. Which means that you didn't choose it because you like the language, you chose it because other people chose to write stuff in it. So you're just a copycat (which is how we programmers are).

Comment Re: Python (Score 1) 145

My colleague argues that kids do not need to know how a computer works.

That's not a helpful argument though, because kids also don't need to know how to program.

You really need to look at what you are trying to teach, and how well the kids are learning it. If a significant number of students are having trouble, then you need to change things. I've seen kids who are not traditionally "smart" (and also very young kids) do amazing things with LOGO. In the modern era, Scratch.mit.edu seems to work really well for kids, and most all of them are able to figure it out. So if you want a "no child left behind" something like Scratch is the approach to teach the mindset, then follow up with Python specific syntax once they have the mindset.

Finally, if you aren't teaching how computers work, what are you teaching exactly? Makes it sound like you are just a babysitter using Python as a toy to distract the poor kids, or teaching them to live in a "Searle Chinese room" which is torture.

Comment Re:who's using C ? (Score 2) 145

Java? Don't know Java (intimately), but any language that can't be written with a text editor seems like a waste of brain cycles.

The advantage of Java (and c#) is that it can be used by large teams without messing things up too badly. A large project written in Javascript ends up with almost intractable type errors (which is why Typescript has become more popular), and a large program written in Python has almost intractable type errors and maddening versioning issues.

With a large team, C++ will inevitably have someone incompetent adding a bunch of memory errors (or adding friend classes or something; overwriting an operator with weird side effects that no one expected). With Java, that doesn't happen.

Slashdot Top Deals

This universe shipped by weight, not by volume. Some expansion of the contents may have occurred during shipment.

Working...