Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > Development
User Name
Password
Or, use your gamerDNA username: (more...)
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-12-2007, 12:03 AM   #61 (permalink)
niteflyx
Fuckin' 07er
 
niteflyx's Avatar
 
Join Date: May 2007
Location: Philly
Posts: 340
+0 Internets
Quote:
Originally Posted by Dinthug View Post
while(guessAnswer < rightAnswer){

change that to while(guessAnswer != right Answer)

that's the only thing you messed up on, then you just need to print that the answer is correct below the while loop (since the answer will equal the guess and end the loop)
Well, within that loop put the two if statements that would output the appropriate response ("Too high!" "Too low!")
__________________
niteflyx is offline   Reply With Quote
Old 10-12-2007, 01:14 PM   #62 (permalink)
Tenks
Registered User
 
Join Date: Nov 2003
Posts: 517
I hate to be too negative but honestly Kuriin can't be learning anything by having all of FOH answer these very basic, simple problems for him.

If programming is a career you are going for I would reconsider. If it is just a mandatory class you have to take, well good luck.
Tenks is offline   Reply With Quote
Old 10-12-2007, 01:36 PM   #63 (permalink)
niteflyx
Fuckin' 07er
 
niteflyx's Avatar
 
Join Date: May 2007
Location: Philly
Posts: 340
+0 Internets
Quote:
Originally Posted by Tenks View Post
I hate to be too negative but honestly Kuriin can't be learning anything by having all of FOH answer these very basic, simple problems for him.

If programming is a career you are going for I would reconsider. If it is just a mandatory class you have to take, well good luck.
Yes, these are all very simple problems, answering questions like 'how do while loops work' are one thing, but posting entire programs and say how do I do this.. you won't learn that way, and yes you do get stuck, but that's how you learn to recognize mistakes in the future.

Going to agree with Tenks on the career assessment.
__________________
niteflyx is offline   Reply With Quote
Old 10-15-2007, 10:56 PM   #64 (permalink)
Dinthug
Registered User
 
Join Date: Jul 2002
Posts: 455
Exactly what I was saying... If you really need to ask these questions, you really aren't trying hard enough. Trust me, I've been there. Read your textbook, everything is there. Leave the desperation "please help me" threads for your final projects or you won't learn anything.
Dinthug is offline   Reply With Quote
Old 10-23-2007, 08:11 AM   #65 (permalink)
Kuriin
Registered User
 
Kuriin's Avatar
 
Join Date: Aug 2006
Location: Raleigh, NC
Posts: 2,173
Hay guys, update. Thanks for the people who've helped me. I'm still going in the class and we have our midterm today. The hardest lab thus far to date is nesting a while loop (I had to use a do while, but later used a regular while loop). The next lab is calling methods, but I've looked through the book and it doesn't look as bad as the previous lab.

I've been doing each and every lab over and over until I can get them done in less than 4 minutes with no syntax, logical, or run-time errors.


PS, that previous program I posted (the LONG and complete one) was just me posting a finalized program to show that I finally managed to get it. There were no errors in the program, was just happy, haha.

edit: The hardest thing that I've gone through (well two things) is 1) Fulfilling an algorithm in my head before programing and 2) Indenting correctly so it's readable. When I stop and take a moment before I code to think "What is this going to do?" I typically have no issues, lol.
__________________
Live like you'll die tomorrow,
Dream like you'll live forever

Last edited by Kuriin : 10-23-2007 at 08:15 AM.
Kuriin is offline   Reply With Quote
Old 10-26-2007, 06:59 AM   #66 (permalink)
Fog
Registered User
 
Join Date: Feb 2006
Posts: 1,657
+5 Internets
Is this really how they teach introductory computer science classes in college? Who could learn programming from scratch when the first program they see is something like

public class MyName
{
public static void main(String [] args)
{
System.out.println("My name is Stephen");

}
}

and they don't have a hope of understanding what the hell is going on in four fifths of the code? This seems insane to me. I'm not surprised that the end result appears to be such a struggle to understand.
Fog is offline   Reply With Quote
Old 10-26-2007, 07:10 AM   #67 (permalink)
slitz
euro scum
 
slitz's Avatar
 
Join Date: Aug 2002
Location: Sweden
Posts: 819
-9 Internets
Quote:
Originally Posted by Fog View Post
Stuff
Well since the above is needed, it's kinda hard to not include it in a Java class. Remove the "System...." line and you got the absolute minimum syntax for a runnable Java program.
But normally Java isn't the first programming language you learn however, so those steps aren't that hard when you actually start learning Java.
slitz is offline   Reply With Quote
Old 10-26-2007, 07:19 AM   #68 (permalink)
Fog
Registered User
 
Join Date: Feb 2006
Posts: 1,657
+5 Internets
Quote:
Originally Posted by slitz View Post
Well since the above is needed, it's kinda hard to not include it in a Java class. Remove the "System...." line and you got the absolute minimum syntax for a runnable Java program.
But normally Java isn't the first programming language you learn however, so those steps aren't that hard when you actually start learning Java.
Right, and as a result I guess I just find it surprising that people start by learning Java. Perhaps I'm old-fashioned, but it just seems like if you start with this big framework of stuff which you don't really understand, it makes it easy to rationalize "well maybe I'm not really supposed to understand this thing, or this other thing either; I'll just try to learn how to use them and leave the understanding for later." There's no reason you shouldn't be able to understand everything when you're working with computers.
Fog is offline   Reply With Quote
Old 10-26-2007, 07:22 AM   #69 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,758
Quote:
Originally Posted by slitz View Post
Well since the above is needed, it's kinda hard to not include it in a Java class. Remove the "System...." line and you got the absolute minimum syntax for a runnable Java program.
But normally Java isn't the first programming language you learn however, so those steps aren't that hard when you actually start learning Java.
The three university programs I'm familiar with all start with Java as their intro languages. It's not that uncommon to use it as a first language now days.
Hachima is offline   Reply With Quote
Old 10-26-2007, 07:27 AM   #70 (permalink)
slitz
euro scum
 
slitz's Avatar
 
Join Date: Aug 2002
Location: Sweden
Posts: 819
-9 Internets
Quote:
Originally Posted by Fog View Post
stuff
No I totally agree. I think it's bullshit to start out with a OOP language in fact since there is just too much additional concepts to learn + the general programming logics. A lot better (well in my opinion) to go for a functional programming language (APL, Erlang, Haskell, Lisp etc) to learn the logics and when done move to a OOP language like C++/Java/C# so you can actually focus on what's important about these languages (design).
Quote:
Originally Posted by Hachima View Post
The three university programs I'm familiar with all start with Java as their intro languages. It's not that uncommon to use it as a first language now days.
That sounds rather odd (I do believe you though, just find it odd). It basically means that you don't know much about Java then even after 5-6 courses which could be quite misleading for employers.

Last edited by slitz : 10-26-2007 at 07:32 AM.
slitz is offline   Reply With Quote
Old 10-26-2007, 11:00 AM   #71 (permalink)
Tenks
Registered User
 
Join Date: Nov 2003
Posts: 517
Its true, my university starts students off with Java as well.

I work with mostly interns/co-op students at my job [to be fair I'm also an intern.] I can attest that 90% of people who say they have Java knowledge (ie: they have 3-4 college classes) could not program their way out of a brown paper bag. Maybe it is not that bad, but I would estimate 7/10 interns that come in do not understand even basic Java. Let alone know how to go about solving a complex problem.

I was one of the lucky ones. I came from a pretty wealthy school district and was doing HTML in 8th/Fresh grade, VB6 in Soph/Junior and C++ in Senior. Laying down fundamental programming concepts is what these schools need to do instead of jumping head first into programming syntax. Syntax is easy to learn, problem solving is what real programming is.
Tenks is offline   Reply With Quote
Old 10-26-2007, 12:41 PM   #72 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,758
No way would I suggest 5-6 courses before even covering OOP. Thats an intro class topic. I think one problem with with a lot of CS programs is that they may teach computer programming but they don't teach software development. You may learn a lot of theory but you don't learn as much about real life, enterprise level projects.

For example there was a post in this forum about a project that came from a 4th year Ohio state class. It was to create a DB system for an online book store. This was something I did as a 2nd semester student though (not even first year)

We used ORM diagrams to define our DB schema. We used MVC pattern to seperate the gui/business and data access layers of our application(Sun calls it Model 2). We had requirements documents, use cases and nunit testing in place among other things.

This is the type of stuff that a lot of CS programs just briefly cover, and a lot of companies have a problem with having to train new graduates to get them up to speed.

This was just the second quarter of the CS program, so after finishing the program the whole development process was just second nature.
Hachima is offline   Reply With Quote
Old 10-26-2007, 03:21 PM   #73 (permalink)
slitz
euro scum
 
slitz's Avatar
 
Join Date: Aug 2002
Location: Sweden
Posts: 819
-9 Internets
Quote:
Originally Posted by Hachima View Post
No way would I suggest 5-6 courses before even covering OOP. Thats an intro class topic.
I didn't mean you should take 5-6 java courses before OOP, I mean you could in theory take 5-6 java courses without touching real OOP princples (I'm not only talking about Objects, methods and inheritence).
Say for instance you take courses that learn you Swing, Java 2D/3D, networking, JDBC and JME. These are basically just courses learning you the API and you really don't need any knowledge what so ever of the more advanced topics on OOP in java, and yet you can show off with a paper that includes 5-6 java courses. Learning the API is probably better doing alone as well instead of having a teacher trying to point you at the correct classes / methods in the libraries.
That's what I meant, I didn't mean one should take 5-6 courses before learning OOP, I meant one should have a basic understanding on programming logics (well IMO) before venturing into OOP.
Quote:
Originally Posted by Hachima View Post
For example there was a post in this forum about a project that came from a 4th year Ohio state class. It was to create a DB system for an online book store. This was something I did as a 2nd semester student though (not even first year)
We actually did this in haskell on our first semester, which I wouldn't recommend anyone doing 8) (well not online bookstore, just a local book DB)
slitz is offline   Reply With Quote
Old 10-26-2007, 08:17 PM   #74 (permalink)
Fog
Registered User
 
Join Date: Feb 2006
Posts: 1,657
+5 Internets
I don't think that OOP is an intro class topic. Before you learn OOP, you ought to be familiar with functional programming, because otherwise you won't understand why OOP exists. It'll just seem like needless added complexity, and you'll end up butchering OOP and writing fake-OOP functional programs where classes are nothing more than wrappers. (Which is to say, I've seen lots of code like that, and I bet this is how it comes about.)
Fog is offline   Reply With Quote
Old 10-27-2007, 01:31 AM   #75 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
Quote:
Originally Posted by Fog View Post
I don't think that OOP is an intro class topic. Before you learn OOP, you ought to be familiar with functional programming, because otherwise you won't understand why OOP exists. It'll just seem like needless added complexity, and you'll end up butchering OOP and writing fake-OOP functional programs where classes are nothing more than wrappers. (Which is to say, I've seen lots of code like that, and I bet this is how it comes about.)
This is an excellent point. I can remember sitting in a Freshman year OO concepts class and thinking-"Man this polymorphism shit is totally useless!"

I think the difficulty lies in the fact that an application a beginner would write is almost always in and of itself simplistic-and the entire basis of OO programming is the ability to take a large and complex problem and organize it into managable and reusable code. I mean how many times were you writing out prototypes for your "hello world" program and cursing the prof for all of this pesky "busy work"? That was me every day.
Zippygoose is online now   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6