Home | Reviews | GUIpedia | Forum | Fun500


SonicBritQuiting BASIC
Well thats it I've thrown in the towel, I'm giving up my love of basic to work exclusively in java
2009-04-011:33 PM

pharoahRe:Quiting BASIC
I know a lot of languages, but Java isn't one of them because I've never been able to get started with even a working Hello World program. One that I wrote told me I needed to place a class in a separate file to get it to work. Any tips on learning Java?
2009-04-011:43 PM

ksrRe:Quiting BASIC
I have a 'Learn Java in 24 hours' book, but I don't think I've ever opened it :P Something about Java just seems bloated and Microsoft-y to me.
2009-04-013:04 PM

pharoahRe:Quiting BASIC
I feel the same way, but I know it can't be terrible (though I've noticed very little is actually distributed as Java Bytecode anymore). Books haven't helped me, usually what works is to just start hacking together some code (how I learned C, PHP, Perl, FORTH, Phthon, QB, FB, etc...)
2009-04-013:28 PM

ToddRe:Quiting BASIC
Pharoah, Java is easier than it looks. The key thing about Java is that everything is object-oriented. Here's a sample Hello World program for you to play around with: [code] // Importing is like INCLUDE but "." represents a directory separator... import java.util.Scanner; // All programs act as classes with a "main" method // YOU MUST NAME THE CLASS EXACTLY AFTER THE FILENAME OR IT WILL NOT WORK! (excluding the ".java") public class HelloWorld { // This is fairly uniform for every Java program... public static void main (String[] args) { System.out.println("Hello World!"); // Input is tricky so a Scanner object reads data from the input stream Scanner s = new Scanner(System.in); System.out.print("What's your name? "); // Creates a string called "name" taken from the scanner's next method call to get a string from input... String name = s.next(); System.out.println("Hello "+name); } } [/code] Call it "HelloWorld.java", download the JDK, enter "javac HelloWorld.java", then enter "java HelloWorld", and you'll be good to go!
2009-04-013:54 PM

pharoahRe:Quiting BASIC
Ok... It annoys me that I can't name the file anything I want but that makes a bit of sense now :). EDIT: Question, what is the purpose of the (string[] args)? It doesn't seem that Main takes a string.
2009-04-014:02 PM

SonicBritRe:Quiting BASIC
Sorry guys that was my lame attempt at an April fools. I'm still using basic.
2009-04-014:05 PM

pharoahRe:Quiting BASIC
Lol :). I didn't figure you'd be able to stop BASICing altogether. It tends to become addictive :).
2009-04-014:06 PM

BrandonRe:Quiting BASIC
Wow, that is sad, but I fell for it. Now I feel pretty stupid.
2009-04-014:08 PM

pharoahRe:Quiting BASIC
In case anyone is interested and knows a bit of C I found this tutorial http://www-plan.cs.colorado.edu/doerr/teaching/csci3308/javaforc/javaswitch.html It's easier for procedural programmers like BASIC folks because C doesn't have all that fancy object oriented stuff (that was why I learned it), but C does have weird low level memory management that Java doesn't make you live with.
2009-04-014:11 PM

ToddRe:Quiting BASIC
So did I. I don't do much BASIC but I still play around with FB and just do little things in it from time to time. And Pharoah, the "String[] args" is the array of strings which hold the program arguments (i.e. parameters).
2009-04-014:30 PM

ksrRe:Quiting BASIC
Haha good one :P Java still sucks.
2009-04-015:44 PM

ToddRe:Quiting BASIC
Java? Try Assembler... :P
2009-04-016:35 PM

SonicBritRe:Quiting BASIC
See I can do assembler, although it sucks when trying to read other peoples code though because its so verbose and they might be doing some tricky math etc..
2009-04-017:10 PM

pharoahRe:Quiting BASIC
This is almost completely random Todd - What will happen to Millenium OS?
2009-04-017:14 PM

agumaRe:Quiting BASIC
In other news, a giant pickle fell out of the sky and squashed millions of dumb people! Thousands were killed, but most just looked up in the sky and thought "That's weird...wait, I forgot to make my intern go to my meeting...better do that now while this weird thing is falling out of the sky." :P I was bored.
2009-04-017:25 PM

pharoahRe:Quiting BASIC
I said [b]almost[/b] completely :P. EDIT: It occurs to me that pickle is an inherently funny word.
2009-04-017:40 PM

ToddRe:Quiting BASIC
[b]Pharoah wrote:[/b] [quote]This is almost completely random Todd - What will happen to Millenium OS?[/quote] I'm not sure. I should upload all my code and see if anyone will continue it. Personally I'd like to make my own GUI from scratch but I'm just really busy at the moment. There are only a few more weeks left of classes so professors are kicking it into overdrive! :P
2009-04-017:42 PM

pharoahRe:Quiting BASIC
Wow, already? Where do you go to college? I'll be applying this summer to a lot of schools, I hope I can get in somewhere with good CS.
2009-04-017:45 PM

SonicBritRe:Quiting BASIC
just don't go to an online one, I did because I didn't want to interfere with my work, was worthless I really regret doing it. (sadly have this huge bill I'm still paying oh well)
2009-04-019:50 PM

ToddRe:Quiting BASIC
Yeah online ones are either too easy (and not well accredited) or too fast. I go to Bloomsburg but I currently applied for transfer to Lehigh.
2009-04-0110:06 PM

agumaRe:Quiting BASIC
I wasn't kidding. [img size=370]http://theguiblog.com/images/fbfiles/images/newspaper.jpg[/img] (Too bad it's not April fools day anymore)
2009-04-024:00 PM

Blog


2021 Brandon Cornell