• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:21
CEST 04:21
KST 11:21
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL, and the Limitations of Standard Play1Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview8
Community News
[TLMC] Summer 2026 Ladder Map Rotation05.0.16 patch for SC2 goes live (8 worker start)76ZeroSpace at Steam NextFest - Last free demo33Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 202611
StarCraft 2
General
Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) Daily SC2 Player Grid - feedback wanted The Death of Cheese: From a Professional Cheeser Mizenhauer's Douyu Cup Preview
Tourneys
Maestros of The Game 2 announcement and schedule ! Douyu Cup 2026: $20,000 Legends Event (June 26-28) RSL Revival: Season 6 - Qualifiers and Main Event INu's Battles#17 <BO.9> Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 531 Experimental Artillery Mutation # 530 One For All Mutation # 529 Opportunities Unleashed
Brood War
General
ASL 22 Proposed Map Pool Best thing happen to StarCraft since Remastered? Fact based Zerg Upgrade Tier List BGH Auto Balance -> http://bghmmr.eu/ Quality of life changes in BW that you will like ?
Tourneys
[Megathread] Daily Proleagues [ASL21] Grand Finals The Casual Games of the Week Thread [BSL22] GosuLeague Casts - Tue & Thu 22:00 CEST
Strategy
Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration?
Other Games
General Games
ZeroSpace at Steam NextFest - Last free demo Nintendo Switch Thread Path of Exile Stormgate/Frost Giant Megathread Beyond All Reason
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Cricket [SPORT]
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Listen To The Coaches!
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10094 users

The Big Programming Thread - Page 64

Forum Index > General Forum
Post a Reply
Prev 1 62 63 64 65 66 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 17:34 GMT
#1261
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-07-10 17:39:12
July 10 2011 17:38 GMT
#1262
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
heishe
Profile Blog Joined June 2009
Germany2284 Posts
July 10 2011 17:44 GMT
#1263
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.

If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
japro
Profile Joined August 2010
172 Posts
July 10 2011 17:46 GMT
#1264
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).
ComaDose
Profile Blog Joined December 2009
Canada10357 Posts
Last Edited: 2011-07-10 17:52:49
July 10 2011 17:50 GMT
#1265
On July 11 2011 02:34 RedJustice wrote:
+ Show Spoiler +
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?

Hey man sorry to hear that.
I can't help you with what languages are used in gaming.
But as far as learning the how to program:
A lot of it is understanding the logic of how a computer thinks.
Then googling the syntax.
So if your looking ahead to get an advantage writing programs in general will help you lots.
So to start getting better i would say run with java which you have a bit of experience with.
Try and make simple but GOOD programs, good means completely proper object oriented etc.
Learn and practice managing your instances and basically challenge yourself.
When you learn about what languages you will have to know focus on the differences and limitations of that languages from what you already know.
TLDR: Learn what a computer can do and how to use those things to accomplish something as opposed to syntax.

EDIT: The answer above mine is good too and we say a lot of the same things... Definatly C++ over java tho he was right about that.
BW pros training sc2 is like kiss making a dub step album.
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
Last Edited: 2011-07-10 18:02:58
July 10 2011 18:00 GMT
#1266
On July 11 2011 02:44 heishe wrote:
Show nested quote +
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


+ Show Spoiler +
As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.




Nono, I don't think you understand what I mean about learning slowly. It's not that I expect to just 'get it', or learn it theoretically. (Maybe I have a screwed perspective cause I'm at a very prestigious school with a lot of people smarter than me.)

For example, I tried to use arrays for a long time, and I just could not wrap my head around starting at 0. People would tell me over and over, and something would just not click in my head. It seems so simple-- the first piece of data is in slot 0--but I just couldn't understand/use it. I would constantly mess up everything when I used arrays. Then a friend took me to the grocery store to the frozen food isle and explained each little section as a place to put a kind of vegetable, and made this huge long analogy that I could actually follow. I know it seems so dumb, like why can I just not start counting at 0, but something in my brain just would not... understand. It's hard to explain.

It's just that for each new thing I learn about (if/else, objects, classes, lists), it takes a lot of searching for the right explanation for me before something clicks in my head and I am able to use it right. My brain just doesn't understand. /fail explanation.

If you have any recommendations of sites or books that explain C++ with pictures especially, that would probably be a huge help! I draw all of my code out visually to help me understand how it works, so I think it is one of the best methods for me.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
July 10 2011 18:12 GMT
#1267
On July 11 2011 02:46 japro wrote:
Show nested quote +
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Bortlett
Profile Joined October 2010
United States302 Posts
Last Edited: 2011-07-10 18:18:42
July 10 2011 18:17 GMT
#1268
On July 11 2011 03:00 RedJustice wrote:
Show nested quote +
On July 11 2011 02:44 heishe wrote:
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


+ Show Spoiler +
As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.




Nono, I don't think you understand what I mean about learning slowly. It's not that I expect to just 'get it', or learn it theoretically. (Maybe I have a screwed perspective cause I'm at a very prestigious school with a lot of people smarter than me.)

For example, I tried to use arrays for a long time, and I just could not wrap my head around starting at 0. People would tell me over and over, and something would just not click in my head. It seems so simple-- the first piece of data is in slot 0--but I just couldn't understand/use it. I would constantly mess up everything when I used arrays. Then a friend took me to the grocery store to the frozen food isle and explained each little section as a place to put a kind of vegetable, and made this huge long analogy that I could actually follow. I know it seems so dumb, like why can I just not start counting at 0, but something in my brain just would not... understand. It's hard to explain.

It's just that for each new thing I learn about (if/else, objects, classes, lists), it takes a lot of searching for the right explanation for me before something clicks in my head and I am able to use it right. My brain just doesn't understand. /fail explanation.

If you have any recommendations of sites or books that explain C++ with pictures especially, that would probably be a huge help! I draw all of my code out visually to help me understand how it works, so I think it is one of the best methods for me.


First of all, don't feel stupid if understanding some programming concepts is more difficult for you. Not everybody learns the same, and if somebody tried to teach me anything artistic, I would fail miserably.

You might want to take a look at Alice: http://www.alice.org/

I haven't used it myself, but it's a much more visual way of learning to program. I know they used it in my CS department in college in a non-major course (and I know of at least one other university that does). It might be total crap and a waste of time, but maybe it will help . If you do play around with it, post what you think, I'm curious :D.

Other than that, I don't really recommend spending a lot of time with C++ unless you're actually going to be writing code or need to understand nuts and bolts aspects of the projects you're working on (memory management, graphics code, etc.). I work with C++ every day and hate it lol.

C# has very similar syntax to C++ but you don't have to deal with a lot of the annoying stuff. You can get simple windows applications up and running very quickly, which you won't be able to do out of the box with C++. Because you're learning similar syntax, if you do need to read C++ code, you could do it very easily, assuming you're not dealing with a lot of pointer manipulation code.

Unfortunately, I don't have many good book explanations for you, but I hope this helps in some way. Does your university/college offer a non-major CS course?
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 18:26 GMT
#1269
On July 11 2011 03:12 Qzy wrote:
Show nested quote +
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


i'd guess the implementation is platform dependant, but most JVMs will hopefully map this to an according command in your cpu instead of manually iterating some random numbers or stuff, so you can just assume it to be O(1), as you can do for basically all numerical operations like * / + etc. In the end, multiplication of course takes longer than addition, and addition takes longer than a bitwise XOR, but since "most" cpus have dedicated circuits for these jobs, it's fast as shit and you can't influence it anyways.

@RedJustice: Do you want to learn programming in a specific language or do you want to learn software design / formal modeling in general?
Gold isn't everything in life... you need wood, too!
japro
Profile Joined August 2010
172 Posts
July 10 2011 18:34 GMT
#1270
On July 11 2011 03:12 Qzy wrote:
Show nested quote +
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


Well, time complexity is usually defined depending on input size and a basic type like an integer can be assumed to have constant size regardless of it's value. For the CPU it's only relevant that it has to compute the modulus of a 32bit integer, the actual value is usually not relevant.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
July 10 2011 18:37 GMT
#1271
Okay thanks for answering my complexity question!
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 18:44 GMT
#1272
On July 11 2011 03:34 japro wrote:
Show nested quote +
On July 11 2011 03:12 Qzy wrote:
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


Well, time complexity is usually defined depending on input size and a basic type like an integer can be assumed to have constant size regardless of it's value. For the CPU it's only relevant that it has to compute the modulus of a 32bit integer, the actual value is usually not relevant.


actually, if you really want to optimize speed to the last tiny bit, you can assert, based on how many zeros are leading your input values and what operation is chosen, how long the cpu circuit will take to be finished, and then schedule your pipeline or adapt your cycle speed accordingly .. so this *could* make a difference indeed. But it's so minimal, unless your doing nothing except calculating modulus, you won't notice anything, if such an optimization is present at all.
Gold isn't everything in life... you need wood, too!
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 18:44 GMT
#1273
I would like to learn a specific language that has concepts that apply very broadly. That way even if I have not used the language they happen to be using, I can still understand what people are talking about.

Specifically I want to learn this in case I am working in a smaller indie or startup type of company, where people often fill many roles. I do not expect I would ever be doing any serious coding, but I think it would be an asset to at least have an understanding of what is going on.

My university does not offer non-major classes for anything. I took the second level programming class last year, which was mostly Java and python, and did very poorly grade-wise, though I learned a lot. I have also taken Theoretical Mathematics in Comp Sci, and same story. I do not want to take too many more higher level classes because I do not have much room in my schedule, and I do not want to hurt my GPA much. (Also, being on the brink of failing all semester is not very fun. t.t) I thought learning on my own might be better just because I can work at my own pace and not have the stress of grades and deadlines.

Thanks for the Alice link! I have seen it once before bet never used it, so I will see how it is. It seems very visual and interactive (which is good for me!).

Also, I tried to read about the differences between C# and C++ but it was too many terms I don't know! I know they look pretty similar, but what are the major differences that affect how you use it and what you can do with it? (if someone could please summarize in easy to understand words <3)
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2011-07-10 18:54:11
July 10 2011 18:52 GMT
#1274
C# and C++ are huge languages. If you have trouble dealing with new concepts, you'd be well advised to steer clear, in my opinion.

If you wanted to learn a simple language with broadly-applicable concepts that will be generally useful to you for a long time, I suggest Javascript or C, which both fit that bill.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 19:03 GMT
#1275
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.
Bortlett
Profile Joined October 2010
United States302 Posts
Last Edited: 2011-07-10 19:13:12
July 10 2011 19:08 GMT
#1276
On July 11 2011 03:44 RedJustice wrote:
Also, I tried to read about the differences between C# and C++ but it was too many terms I don't know! I know they look pretty similar, but what are the major differences that affect how you use it and what you can do with it? (if someone could please summarize in easy to understand words <3)


C# is good for a number of reasons. First of all, you can get an application running up and very quickly. It's really easy to use Forms or WPF to get windows, dialog boxes, menus - all the stuff you expect in your standard windows application. In C++ you generally have to use MFC (which is awful) or an external library, which is going to be a lot more work.

C# abstracts away a lot of junk you have to deal with when you write C++ code, such as memory management. All this means is less annoying crap you have to worry about .

Not sure if you're using Visual Studio or not, but C# projects are way easier to work with than C++ projects. I think it's better with 2010, but I'm still on 2008 so this might be less of an issue. Either way, in C++ you have to deal with .h/.cpp files (which can get messy on large projects!), but in C# you just have .cs files which are easier to manage.

C# provides some cool stuff for programmers (lambda expressions, foreach, iterators, algorithms). Many of these features exist in C++ in the STL, boost, or some other library but it's MUCH harder to use and you need to know templates for a lot of it. Templates in C++ suck royally, but are far easier to use in C#. This probably doesn't mean anything to you now, but it will as you get more experience under your belt.

Microsoft also has created XNA for indie development. XNA basically provides a game loop and APIs needed to write games in C#. In C++, you're going to have to use an engine, and this will be daunting for somebody not experienced with C++. You can get XNA here: http://www.microsoft.com/download/en/details.aspx?id=23714

EDIT: C# is becoming more standard also. Not for writing the game itself, but it's becoming more popular for tools development. It's part of the .NET framework (which is a bunch of languages developed by Microsoft) which means it's used outside of the industry as well.

If that was too technical for you or you have other questions, please post and I or somebody else will be happy to help clarify .
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 19:11 GMT
#1277
On July 11 2011 04:03 RedJustice wrote:
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.


try suing notch for not employing females, minecraft is java-based haha

so basically, you simply want to learn c++ and maybe sume lua scripting?
Gold isn't everything in life... you need wood, too!
AkaHenchway
Profile Joined October 2010
United States41 Posts
July 10 2011 19:16 GMT
#1278
Hey guys having some trouble again (Java). I have looked aroud for some help but every explanation im given is way above my head.....write a program taht prompts the user to enter the number of students and each students name and score, and finally displays the name of the student with the highest score is what I am supposed to be doing.
+ Show Spoiler +

import java.util.Scanner;

public class highscore{

public static void main(String[] args){

Scanner input = new Scanner(System.in);

int i = 0;

System.out.print("How many student's are there? ");

int count = input.nextInt();

do{

if (i > count)

break;



System.out.print("Students name: ");

String n = input.nextLine();

System.out.print("Student Score: ");

int score = input.nextInt();

i++;}



while (i != 0);

System.out.println("No students left");


}

}



Basically I am unsure of how to put my 2 questions that I want to continuously ask over and over again into a loop. As it currently sits it rune/displays but has both quesitons I want to ask on the same line....Also unsure of how I will save the names inputted by the user as well as their scores since I will be recalling names and numbers further in the program.....I was suggested to create a student class and create a student object inside my loop, but frankly I need it explained out a little better.
Fuck the Bullshit
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 19:22 GMT
#1279
Hmmm well for the C++ vs C#, it seems (please correct me if I'm wrong anywhere, just want to make sure I understand right)--

They are similar enough I could understand the other alright if I knew one.
C++ seems to be used the most in professional fields.
C# is easier to use/work with.

If C# is easier to work with, and would still give me a pretty good idea of C++, I think I would like to learn C# first, and then maybe I can use C++ later so I have less new things to worry about.

Also... lua scripting... looks similar to python in wikipedia. Is that an ok generalization? Why would it be good to know for me?
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2011-07-10 19:28:24
July 10 2011 19:26 GMT
#1280
On July 11 2011 04:03 RedJustice wrote:
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.


I said Javascript, not Java; the two languages have no relation. I would never have recommended Java in the first place, as it's also a big language, but if you are already comfortable in Java, you might find C# less hard to pick up.

In the case of the gaming industry, there's a big difference between something "professionally standard" and something useful to someone who is not programming games for 8 hours a day. I definitely hold that if you are not actually pursuing a career in programming, then you would probably be better served learning a smaller useful language fairly well rather than becoming sort-of-proficient in C++.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Prev 1 62 63 64 65 66 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 3h 39m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ViBE225
RuFF_SC2 100
SpeCial 62
Ketroc 59
FoxeR 30
StarCraft: Brood War
Hyuk 390
NaDa 64
Noble 20
Terrorterran 15
Dota 2
NeuroSwarm115
LuMiX1
League of Legends
Doublelift10999
JimRising 619
Super Smash Bros
AZ_Axe191
Heroes of the Storm
Khaldor146
Other Games
summit1g14261
UpATreeSC288
JuggernautJason52
Mew2King37
Organizations
Other Games
gamesdonequick1354
BasetradeTV220
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 94
• davetesta24
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki12
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21174
League of Legends
• Jankos281
Upcoming Events
Douyu Cup 2020
3h 39m
BSL22 NKC (BSL vs China)
11h 39m
Mihu vs TBD
Online Event
12h 39m
RSL Revival
23h 39m
WardiTV Weekly
1d 8h
RSL Revival
2 days
RSL Revival
2 days
Bombastic Starleague
2 days
Kung Fu Cup
3 days
OSC
3 days
[ Show More ]
CrankTV Team League
4 days
Bombastic Starleague
4 days
Replay Cast
4 days
The PondCast
5 days
HomeStory Cup
5 days
Replay Cast
5 days
HomeStory Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 21: Qualifier 1
Maestros of the Game 2
Heroes Pulsing #2

Ongoing

IPSL Spring 2026
Acropolis #4
CSCL: Masked Kings S4
YSL S3
BSL 22 Non-Korean Championship
CSL Season 21: Qualifier 2
SCTL 2026 Spring
Douyu Cup 2026
Murky Cup 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026

Upcoming

CSL 2026 Summer (S21)
ASL Season 22:Wild Card Qualifier
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
BCC 2026
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E1
Heroes Pulsing #3
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.