Home | Reviews | GUIpedia | Forum | Fun500
SonicBrit | Quiting BASICWell thats it I've thrown in the towel, I'm giving up my love of basic to work exclusively in java | 2009-04-01 | 1:33 PM |
pharoah | Re:Quiting BASICI 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-01 | 1:43 PM |
ksr | Re:Quiting BASICI 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-01 | 3:04 PM |
pharoah | Re:Quiting BASICI 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-01 | 3:28 PM |
Todd | Re:Quiting BASICPharoah, 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-01 | 3:54 PM |
pharoah | Re:Quiting BASICOk... 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-01 | 4:02 PM |
SonicBrit | Re:Quiting BASICSorry guys that was my lame attempt at an April fools. I'm still using basic. | 2009-04-01 | 4:05 PM |
pharoah | Re:Quiting BASICLol :).
I didn't figure you'd be able to stop BASICing altogether. It tends to become addictive :). | 2009-04-01 | 4:06 PM |
Brandon | Re:Quiting BASICWow, that is sad, but I fell for it. Now I feel pretty stupid. | 2009-04-01 | 4:08 PM |
pharoah | Re:Quiting BASICIn 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-01 | 4:11 PM |
Todd | Re:Quiting BASICSo 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-01 | 4:30 PM |
ksr | Re:Quiting BASICHaha good one :P
Java still sucks. | 2009-04-01 | 5:44 PM |
Todd | Re:Quiting BASICJava? Try Assembler... :P | 2009-04-01 | 6:35 PM |
SonicBrit | Re:Quiting BASICSee 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-01 | 7:10 PM |
pharoah | Re:Quiting BASICThis is almost completely random
Todd - What will happen to Millenium OS? | 2009-04-01 | 7:14 PM |
aguma | Re:Quiting BASICIn 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-01 | 7:25 PM |
pharoah | Re:Quiting BASICI said [b]almost[/b] completely :P.
EDIT:
It occurs to me that pickle is an inherently funny word. | 2009-04-01 | 7:40 PM |
Todd | Re: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-01 | 7:42 PM |
pharoah | Re:Quiting BASICWow, 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-01 | 7:45 PM |
SonicBrit | Re:Quiting BASICjust 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-01 | 9:50 PM |
Todd | Re:Quiting BASICYeah 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-01 | 10:06 PM |
aguma | Re:Quiting BASICI 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-02 | 4:00 PM |
Blog
2021 Brandon Cornell