Kuro5hin.org: technology and culture, from the trenches
create account | help/FAQ | contact | links | search | IRC | site news
[ Everything | Diaries | Technology | Science | Culture | Politics | Media | News | Internet | Op-Ed | Fiction | Meta | MLP ]
We need your support: buy an ad | premium membership

[P]
Programming Update: Algorithms Class at Coursera

By Riddick in Riddick's Diary
Sun Sep 01, 2013 at 09:03:53 PM EST
Tags: Programming, Algorithms, Coursera, Java, Blastard, education, technology, learning (all tags)

Well I have to admit I am over my head in that Algorithms class.

I tried to write and compile my first project, it is complaining that I need 1.6 of Java when I have 1.7 installed, LOL!

I found that my 'Basic' Understanding of Java is not good enough, they need an 'Intermediate' Understanding of Java that goes beyond my "Basic" understanding. Apparently this is the Ebook they wanted me to read and Crawford and K5 gave me suggestions of different books, which are good but not at the level them want, LOL!


C:Javatest>java Percolation.class
Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion'
has value '1.7', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.

I assure you I have the Oracle 1.7 version installed in "C:Javajdk1.7.0_25"

I have the Classes set to:

set path=%Path%;c:Javajdk1.7.0_25bin
set CLASSPATH=c:Javajdk1.7.0_25include;c:Javajdk1.7.0_25includealgs4;c:Javajdk1.7.0_ 25includestdlib

Darnit, Scoop eats slashes, but I assure you they are set correctly.

I download their JAR files and extracted them to the stdlib (Standard Java Library but they wanted me to download them anyway, LOL!) and algs4 (Their super secret data structures and methods and all other goodies) because putting the JAR files in the include directory did nothing. Of course I could have it reading the JAR files and conflicting with the directories? LOL!

I attempted the exercises twice, passed the first part and third part, failed the second part. I figured out that at one part (with the help of someone from the forum) that I had missed a root node because somehow it was a binary tree within a binary tree and I had used the wrong root. You make just one little mistake like that and the whole thing is wrong, no partial credit for trying.

Good thing I am not paying money for this class, LOL! I think I'm going to fail it. But at least I am learning from it, which is the whole point, and not giving up like Crawford did and write the professor a 100,000 word essay manifesto as to why he should pass me due to medical reasons. I admit I am over my head and need to do more Java learning first before I get into algorithms again.

I see now why data structures are so important, I see new ways of doing things faster. When I took Comp Sci 153 in 1987 with Turbo Pascal 3.0 a lot has changed and been added. I still got my 'Pascal with Data Structures" book from when I was in UM-Rolla at the time.

I see that since Crawford had not mastered algorithms and data structures that he will never get Warp Life working properly. He kept blaming Apple, iOS, XCode, etc, but if he got the data structures and algorithms incorrect, he would have the same bugs. I know that I cannot do Conway's Life until I do as well.

Most of the programming I did in the past, management had limited what I could use and do. For example I was prohibited to use anything management didn't understand. Which is why they wanted me to program in Visual BASIC because they didn't understand anything else. I could not use objects nor collections, no pointers, and of course data structures were out as well. I was programming in a straight jacket, no wonder I went insane. VB actually uses objects for forums and other stuff, but I didn't tell management that because they had this 'no objects' policy. I even used a Word Object to put data into Word documents, but if I told them it was an object, they'd tell me to delete it and take it out. ADO itself was an object to use data in MS-Access and MS-SQL Server.

It seemed that they had me use ADO records instead of data structures to load and modify data and sort, etc. I think most businesses that run a Microsoft Shop do it that way, because that is how Microsoft trains people to do it. Does Microsoft training and certification teach data structures and algorithms? I heard Microsoft is phasing their training and certification out? Is that the reason why, they taught bad coding techniques?

I did remember stuff like stacks and ques and linked lists. For some reason I forgot how binary trees worked, I remember Turbo Pascal 3.0 had problems with them back in 1987 and we had to find an updated version of Turbo Pascal to fix it.

Well the important thing is I gave it a good try. I might fail this course, but if I take another one later, I have a better chance at it. I am not giving up, even if I cannot compile code for their course yet until I figure out this 1.6 vs. 1.7 nonsense with their custom libraries. I might have to make a Windows 7 Virtual Machine and slap 1.6 on it just for this course. LOL!

Well I got a lot of reading to do. :)

BTW I found this Java website Programming by Doing which might be fun because there is no deadlines for programs and it covers what a typical Java class teaches. I didn't see any Intro to Java classes at Coursera I need to take one first before I attempt Algorithms again.

Sponsors

Voxel dot net
o Managed Hosting
o VoxCAST Content Delivery
o Raw Infrastructure

Login

Related Links
o Scoop
o Apparently this is the Ebook they wanted me to read
o BTW I found this Java website Programming by Doing
o Riddick's Diary


Display: Sort:
Programming Update: Algorithms Class at Coursera | 30 comments (30 topical, editorial, 0 hidden)
OK (none / 0) (#1)
by Riddick on Sun Sep 01, 2013 at 10:45:11 PM EST

Apparently since their book is written for Java 1.6, their example code won't work with 1.7, and of course nobody told me that. I had installed the Oracle JDK 1.7 months ago in Windows 7 and Lubuntu.

They suggest Windows because it is easier to program in. Here is why they got this script-kiddie Java installer for Windows and I am installing it now to see what happens. Princeton apparently has a backdoor into my Windows 7 PC. :)

Here are their libraries the script-kiddie Windows installer installs them for you.

Here is the main class page I'll stick around and watch the lectures for the next five weeks of this six week class. I'll do my best at it, but I understand I need more java experience first.

If one of you Kurons wants to take it in the future with me, let me know.

I'm looking to see if they have an Intro to Java course and take that first after this one ends. It helps to keep going over it until one learns it better.

Crawford was way over his head with the Apache Sol project, it has advanced data structures and algorithms and you need to have passed a class like this (Crawford flunked out of it) or read the book over and over again until you understand how they work. Java is tricky to work with, and apparently he didn't even bother to use the code libraries his coworkers had checked into Git and was writing crap data structures and algorithms instead. No wonder his boss got mad. In order to pass this class you have to use data structures they already have in the library files you download, they take off points if you try to make your own data structures.

This is the BS I am talking about, no Intro to Java class in English, only French, WTF! BTW some of the other classmates are having problems because they put foreign language characters in their file names and source code, and the autograder is giving them 0% and getting errors in grading. Apparently most of the foreign students use French (Some from Canada, others from Africa, where they speak French) and apparently they took this course in French. HAY COURSERA GET OFF YOUR ASS AND MAKE AN INTRO TO JAVA CLASS IN ENGLISH! Is that really that hard to do so? I want to be able to learn enough to take this Princeton Algorithms class without being over my head, K-thanx'bye!

Ahhh classpath (none / 1) (#2)
by Booji Boy on Sun Sep 01, 2013 at 11:05:23 PM EST

Hello world in java is harder than any abstraction you will learn in algorithms class.

Not everyone was able to finish it (none / 0) (#3)
by Riddick on Sun Sep 01, 2013 at 11:06:56 PM EST

Look at the Github attempts at most I saw one guy get up to the fifth example and failed.

Oddly enough you are not supposed to post your class code to the Internet, but these guys failed to understand that. Still it should give novices a good example of what they should be doing.

I have to give people credit if they can get past the Java compile errors, with those libraries, they should do really good. You'll notice most of the Github entries gave up at the first or second programming project.

I don't feel so bad seeing these guys fail it.

tl; dr; use python (none / 1) (#5)
by k31 on Sun Sep 01, 2013 at 11:22:51 PM EST

I haven't taken a good look at the course, just watched the week 1 intro videos.

It is not really graded, they just give you exercises so you can pace yourself.

So you can use python, or something less silly than java.

I haven't done a single exercise yet because of limited time but I am getting interested and will post a diary if I actually do any work any time soon... might have to re-arrange stuff but don't worry about pass or fail, or even JAVA, just try some code and practice and learn something, that is how it is designed.

And remember, I say most of this out of ignorance, but the course seems to not really depend on JAVA nor be seriously graded.


Your dollar is you only Word, the wrath of it your only fear. He who has an EAR to hear....

/me finishing last week of Coding the Matrix class (1.00 / 2) (#8)
by Edmund Blackadder on Mon Sep 02, 2013 at 12:12:31 AM EST



---
MAY I SUCK YOUR PENIS? - Nimey
Hi! I fail at basic sig technology! En plus, je suis pédé! - smegko
Some strange things there... (none / 1) (#10)
by claes on Mon Sep 02, 2013 at 09:10:39 AM EST

First, the command line invocation should be

java myclass

or

java mypackage.myclass

No .class required.

If you've got things packaged up in a jar file,
and the jar file manifest has the main class (this is the usual case, netbeans does this
automatically for you), then

java -jar myprogram.jar

Why the heck is it looking in the registry.  Your install may be goofed up -- On windows it usually puts itself in C:Program Files or C:Program Files (x86).  I'm not the java-on-windows guy at work, but you can get in a world of hurt if it isn't installed correctly.

You shouldn't need any classpath stuff pointing to the jave installation at all.

One way to figure out what's going on (from the command line)

java -version

Also

java -verbose myclass

Also using NetBeans makes things really easy if you're not already.  

write once (none / 1) (#30)
by Del Griffith on Tue Sep 03, 2013 at 06:09:22 AM EST

Debug everywhere...

C# is so much better.

But the neckbeards like to suck Sun/Oracle ass.

-------
I...I like me. My wife likes me. My customers like me. Because I'm the real article. What you see is what you get. - Me


Programming Update: Algorithms Class at Coursera | 30 comments (30 topical, 0 editorial, 0 hidden)
Display: Sort:

kuro5hin.org

[XML]
All trademarks and copyrights on this page are owned by their respective companies. The Rest © 2000 - Present Kuro5hin.org Inc.
See our legalese page for copyright policies. Please also read our Privacy Policy.
Kuro5hin.org is powered by Free Software, including Apache, Perl, and Linux, The Scoop Engine that runs this site is freely available, under the terms of the GPL.
Need some help? Email help@kuro5hin.org.
My heart's the long stairs.

Powered by Scoop create account | help/FAQ | mission | links | search | IRC | YOU choose the stories!