News for hackers. Stuff that matters.
Re:Universities finally realize that Java is a bad intro pro... by atarian on Monday April 24, 2017 @12:53PM (#14185839)
Because you only need a browser. When you're just a beginner, setting up an environment can be extremely painful.
Re:Universities finally realize that Java is a bad intro pro... by jnbiche on Monday April 24, 2017 @01:06PM (#14185985)
If you're going in CS or software development and don't learn the command line quickly, you'll be at a distinct disadvantage to many of your peers.

Besides, everyone in a CS program these days gets a shell account, right? I mean, login from home using whatever SSH client is hip on Windows these days and then it's just a matter of doing:

    javac YOURFILE
    java YOURFILE
(making sure that your class path is set up to your cwd). You don't even have to use vi/vim, nano is available on most any linux/unix distro.

No complex environment to set up at all, although even setting up a Java IDE is not that hard (my friend's HS students do it with little problem).

Re:Universities finally realize that Java is a bad intro pro... by toxican on Monday April 24, 2017 @01:14PM (#14186061)
? It's a university. If they can't convey "advanced" concepts such as setting up a dev environment, they shouldn't be teaching programming.
Re:Universities finally realize that Java is a bad intro pro... by Ductapemaster on Monday April 24, 2017 @12:57PM (#14185898)
While that's true, you learn a lot from going through those troubles. I disagree that we need to make it "easy" for students to get into programming by glossing over very important details like environment configuration. Someday they'll have to do it at their job - why not prepare them for it?
Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @01:01PM (#14185951)
While the Java ecosystem is terribly and unnecessarily painful, working in a browser isn't exactly trivial either. Personally, I think Go wins the "easy setup" award--download the toolchain, `mkdir -p ~/go/src/project`, edit your files with your favorite text editor (they all have Go plugins), and `go build/test/install/etc`. No ANT/Maven/Gradle/etc files, no CLASSPATH, no IDE, no runtime or runtime dependencies, etc.
Re:Universities finally realize that Java is a bad intro pro... by jnbiche on Monday April 24, 2017 @01:11PM (#14186025)
Go would be another good learning language, I agree. But you still have GOROOT/GOPATH to worry about, I think it's about the same as Java in terms of complexity.

Besides, you don't need an IDE for Java, it's just that most people use one. I personally use gradle and vim when progamming Java.

Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @04:26PM (#14187963)
> Go would be another good learning language, I agree. But you still have GOROOT/GOPATH to worry about

GOROOT and GOPATH are set automatically by default, you don't need to mess with these unless you want to.

> I think it's about the same as Java in terms of complexity.

Even if GOPATH/etc weren't set automatically, you still need to learn Maven and Gradle and friends. I've been programming for a decade or so, and every time I try to play with Java I have such a hard time getting projects set up. I don't know if the tooling is really so complex or if the happy path is just poorly documented (perhaps because everyone assumes you're using an IDE?). A few things I had trouble with: - Getting the Gradle server set up so I didn't have to wait for the JVM to boot every time I wanted to compile anything - Configuring Gradle to compile a native dependency like OpenGL - Configuring Gradle to produce a fat jar - Configuring Gradle for unit testing

By comparison, with Go does all of that out of the box (`go build` doesn't have a VM to warm up, and Go's tooling supports native dependencies, static compilation, and testing by default).

I don't think this is a big problem if you already understand Java's ecosystem or if you have someone to hold your hand until you get a project set up, but I had a terrible time finding the right documentation.

> Besides, you don't need an IDE for Java, it's just that most people use one. I personally use gradle and vim when progamming Java.

Last I checked (a year or so ago), there were no reasonable vim plugins for Java. Certainly nothing as mature as vim-go.

Re:Universities finally realize that Java is a bad intro pro... by RandomInteger4 on Monday April 24, 2017 @01:10PM (#14186010)
As a beginner in java, you really just need java, javac and a text editor. The problem is less the ecosystem and more just the language isn't a good starting point for a beginning programmer in a formal education setting.
Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @04:31PM (#14188015)
Until you depend on anything, like a unit testing library. Manually managing CLASSPATH isn't fun. I think Java is a fine way to learn OOP (it was my introductory computing language), although I'm now of the opinion that OOP is a big distraction.
Re:Universities finally realize that Java is a bad intro pro... by gech on Monday April 24, 2017 @01:25PM (#14186148)
>mkdir -p ~/go/src/project

Where is the mkdir icon on my windows desktop?

Re:Universities finally realize that Java is a bad intro pro... by EliRivers on Monday April 24, 2017 @02:35PM (#14186788)
Windows is a brutal operating system to be learning on; I'd hope universities have something a bit easier for their incoming CS students.

I bet they don't, though :/

Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @04:33PM (#14188031)
I'm not sure what point you're making. It's easy enough to translate my unix shorthand for directory creation into windows instructions...
Re:Universities finally realize that Java is a bad intro pro... by btschaegg on Wednesday April 26, 2017 @03:11AM (#14201066)
Windows even has mkdir. I'm not sure if this particular line would work though (-p is the default behavior on Windows; I don't think it would understand the switch).
Re:Universities finally realize that Java is a bad intro pro... by smsm42 on Monday April 24, 2017 @02:32PM (#14186763)
"No IDE" is not exactly a plus in my book. Surely, you can write code in vim (or notepad) but doing any proper work requires proper tools, and good IDE is among the first ones you'd need.
Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @04:36PM (#14188066)
I have no problem with `vim-go`. Go works without an IDE because the language has a simple project model which lends itself to good, modular tooling. You can still use an IDE with Go if you like, but no one is twisting your arm.
Re:Universities finally realize that Java is a bad intro pro... by smsm42 on Monday April 24, 2017 @06:44PM (#14189113)
Nearly everything works without an IDE. There are added services making working easier in IDE though. Saying "no IDE is needed because the modular system is so good" usually either a delusion or kind of misguided roughshod pride ("in my time, we just made bits by banging rocks together, you kids are so spoiled") that sacrifices productivity for no real reason.
Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Monday April 24, 2017 @07:48PM (#14189543)
You're plainly misinformed. According to the most recent Go developer survey, only 12% of respondents use an IDE; the rest use text editors (in fact, more people use vim specifically than all IDEs combined). Developing Go without an IDE is quite feasible. The particularities of IDEs which make them more productive than text editors are artifacts of the poor project system found in most languages. If you fix the problem at its root, you're free to reap the efficiencies of a proper editor instead of the mediocre one that comes bundled with your IDE.

Of course your conclusion that IDEs are more somehow productive than text editors is completely baseless (or perhaps only based on experience with Java and the like).

Re:Universities finally realize that Java is a bad intro pro... by smsm42 on Tuesday April 25, 2017 @04:03AM (#14191594)
> According to the most recent Go developer survey, only 12% of respondents use an IDE;

There are two possible reasons for this I can see:

1. Go is so awesome that unlike any other language I've used in my multi-decade carrier, it can not be improved with an IDE. It's just an ideal and any attempted improvement would just spoil it.

2. There's no decent IDEs for Go and Go developers are forced to do with what they've got.

My experience shows the former is much more probable than the latter.

> Developing Go without an IDE is quite feasible

Of course, people programmed when ed was an IDE, and before that. It's humanly possible. Is it better? I highly doubt it.

> The particularities of IDEs which make them more productive than text editors are artifacts of the poor project system found in most languages

I'm sorry but this statement sounds both misinformed and fanboyish. There are tons of benefits to IDE which have nothing to do with "poor project system" - from module management to task management to refactoring to keeping integrated information about the project to code assist, etc., etc. I could spend an hour writing them. Claiming that Go "fixed" need for IDE sounds, excuse me for being blunt, laughable. It's like when iPhone was first released, I heard some fanboy claim that iPhone interface is so intuitive one doesn't need copy-paste (first version didn't have it). Of course, next update added copy-paste and iPhone users (including the said fanboy) are happily using it ever since.

> or perhaps only based on experience with Java and the like

Yes, it is based on almost 30 years of experience with programming in multitude of languages and environments, and this experience is why I find claims that Go is so awesome it needs no IDE so laughable. I'm sorry to look self-aggrandizing here, but you asked about it so I have to say it I guess.

Re:Universities finally realize that Java is a bad intro pro... by weberc2 on Tuesday April 25, 2017 @10:16AM (#14193688)
> I'm sorry but this statement sounds both misinformed and fanboyish.

Fanboyish? Quite a statement from someone arguing that IDEs are necessary--my position is that they're optional. Misinformed? The features you list aren't particular to an IDE--they're available in any pluggable editor, which is a repackaging of my point. I don't mind a rude rebuke, but you're not even vaguely correct. Forgive me for basing my decisions off experience and not your misinformed speculation. ;)

Re:Universities finally realize that Java is a bad intro pro... by anthonybsd on Monday April 24, 2017 @01:06PM (#14185981)
As others have pointed out there are plenty of sites that allow you to run Python in the browser. Whereas something like the aforementioned alert('Hello World'); can actually be blocked by something as innocuous as pop up blocker. If anything console.log() is probably a better bet since it'll at least require students to understand what their environment consists of.
Re:Universities finally realize that Java is a bad intro pro... by ghaff on Monday April 24, 2017 @01:00PM (#14185931)
I've gone through a couple online courses and some percentage of people obviously really struggled to get setup. It's probably significantly less of an issue at schools where "Intro to Programming" mostly assumes that you already have at least the basics of hacking around with a computer down. But it's probably hard for most people here to appreciate how daunting "never seen a command line before" is for many beginners.
Re:Universities finally realize that Java is a bad intro pro... by wlesieutre on Monday April 24, 2017 @01:01PM (#14185949)
Especially once you get into managing dependencies. Virtual environments (whatever this year's flavor is, venv I think?) are a mess. I was trying to get VS Code to execute a python project in its virtual environment but gave up and just went back to running it in a terminal. There's probably a way to do it, but I poked at it for a while and didn't figure it out.

Javascript might have its hassles, but even when you get to dealing with npm it's still more of a self contained thing.

Re:Universities finally realize that Java is a bad intro pro... by hackermailman on Monday April 24, 2017 @01:10PM (#14186019)
I replaced all that with guix environment https://github.com/pjotrp/guix-notes it works well for Ruby too https://dthompson.us/ruby-on-guix.html
Re:Universities finally realize that Java is a bad intro pro... by ferdterguson on Tuesday April 25, 2017 @09:09AM (#14193109)
I had the same struggles. Eventually I just went to pycharm, which is great and has full support for any environment you want.
Re:Universities finally realize that Java is a bad intro pro... by wlesieutre on Tuesday April 25, 2017 @09:53AM (#14193493)
If I were programming as a profession I'd consider it, but $200/year is more than I'm willing to spend on an IDE for a hobby. Especially since I'm writing more C/C++ than Python lately.
Re:Universities finally realize that Java is a bad intro pro... by smsm42 on Monday April 24, 2017 @02:31PM (#14186752)
This can be solved in so many ways, from writing good instructions to giving people pre-made environments to having one install session at the beginning of the course (if you can't get Java/Python running in 1hr something on the system is horribly wrong) to using one of those online education platforms that allow to run tons of stuff from the browser.

But if you're introducing people to programming, letting them know command line exists may also be not that bad of an idea :)

Re:Universities finally realize that Java is a bad intro pro... by lazyjones on Monday April 24, 2017 @12:59PM (#14185914)
It's 2017. We have other options available in a browser:

https://trinket.io/python

Re:Universities finally realize that Java is a bad intro pro... by cpburns2009 on Monday April 24, 2017 @01:19PM (#14186096)
Setting up a Java environment is about as simple as you can get: you use the JDK installer, and maybe the installer for a Java IDE.
Re:Universities finally realize that Java is a bad intro pro... by misingnoglic on Monday April 24, 2017 @12:57PM (#14185893)
With python you just need a browser too: www.repl.it/python