• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:27
CEST 11:27
KST 18:27
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy1GSL CK: More events planned pending crowdfunding0Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy
Tourneys
RSL Season 4 announced for March-April $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sea Duckling Open (Global, Bronze-Diamond) GSL CK: More events planned pending crowdfunding Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
Gypsy to Korea so ive been playing broodwar for a week straight. ASL21 General Discussion Pros React To: JaeDong vs Queen [BSL22] RO32 Group Stage
Tourneys
[Megathread] Daily Proleagues [BSL22] RO32 Group B - Sunday 21:00 CEST [BSL22] RO32 Group A - Saturday 21:00 CEST 🌍 Weekly Foreign Showmatches
Strategy
Muta micro map competition Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Nintendo Switch Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2047 users

The Big Programming Thread - Page 359

Forum Index > General Forum
Post a Reply
Prev 1 357 358 359 360 361 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.
tec27
Profile Blog Joined June 2004
United States3702 Posts
Last Edited: 2013-09-28 04:59:53
September 28 2013 04:59 GMT
#7161
On September 28 2013 13:24 icystorage wrote:
Pattern p = Pattern.compile("[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?");
Matcher m = p.matcher("-0.2847715");
if (m.find()) {
System.out.println(m.group(1));
}

why does it return null? is the regex wrong?


Because your matching group doesn't contain any characters. It will only match strings of digits (positive or negative) that start with e or E. If you add an exponent to your number, you'll see that it works fine.

You'd probably find it useful to use a regex debug tool for this sort of stuff, like RegExr
Can you jam with the console cowboys in cyberspace?
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
September 28 2013 05:03 GMT
#7162
hmm okay thanks. i wanted it to match floating values.
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
tec27
Profile Blog Joined June 2004
United States3702 Posts
September 28 2013 05:07 GMT
#7163
It is matching them, but you're requesting the value of group 1, which is just the ([eE][-+]?[0-9]+) part. If you want the entire match, you can get group 0 instead, or just call #matches() to get a bool back.
Can you jam with the console cowboys in cyberspace?
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
September 28 2013 05:09 GMT
#7164
i see it now. thank you tec! <3
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
September 28 2013 12:49 GMT
#7165
Morfildur, that 1D vs 2D array got me interested, so I googled a bit. Isn't it a bad approach to use 1D? You lose readability and better debugging in that case. On the other hand, what about calculations you need to do for the 1D array to act like 2D? That is surely overhead as well, so is it worth it in the end? I assume compilers are also smart enough to optimise anyway.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 28 2013 13:09 GMT
#7166
On September 28 2013 21:49 darkness wrote:
Morfildur, that 1D vs 2D array got me interested, so I googled a bit. Isn't it a bad approach to use 1D? You lose readability and better debugging in that case. On the other hand, what about calculations you need to do for the 1D array to act like 2D? That is surely overhead as well, so is it worth it in the end? I assume compilers are also smart enough to optimise anyway.


In 99% of the cases the overhead doesn't matter since you aren't programming time critical applications for a tiny microprocessor but applications that just have to be fast enough on an average PC. My simple PHP solution takes a few microseconds to calculate any sudoku riddle i could find and it's not optimized at all. It's easily fast enough for what it is supposed to do, which is what matters.

Solving Sudoku is not a difficult thing for a PC, so you can easily throw away all thoughts about optimizing and just go with what feels easiest.

For me a 1D array felt easier, though for the most part because PHP doesn't have true 2D arrays but only jagged arrays. I also only have to keep one variable on mind when looping through the grid instead of having to consider the cases where i reach the end of the row or have to go a step back at the start of a line, i can just increment/decrement my way through.

What is easier depends on your preference and in my opinion both a 1D and a 2D array have good arguments going for them, so there is no wrong choice. The same is true for deciding between a simple loop or a recursive solution, both are correct and fast enough. I just don't like recursion much, so i picked a loop instead.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
September 28 2013 13:16 GMT
#7167
What are some good colleges/universities for Computer Science/Game Development in the New Jersey area?

Any good questions I can ask said colleges/universities about their CS/Game Development program? I'm kind of at a loss here.

At the moment I'm a Junior in HS and am investigating Rutgers, Ramapo, Bloomfield, Fairleigh Dickinson, Lincoln Technical Institute, and am looking to try and find some more to help narrow down my search to 'the right fit'. Any comments/experiences of these colleges/universities would also help me. I'm just starting my journey into searching for the right college(I've been to 2 college fairs). I'm grateful for any additional information.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
HaRuHi
Profile Blog Joined November 2010
1220 Posts
September 28 2013 13:55 GMT
#7168
colleges/universities for Computer Science/Game Development


Not the same.
In my area there are specialised schools for Game Development. They teach the very basic CS skills, but other than that they mostly focus on how to make pretty papers and sell your ideas to a publisher / lead a team.

If you want to be programmer in Game Development it does not actually matter much where you go, most CS departments run at least in the master degree some modules for 3d graphics, you are also free to choose your own bachelor work. To me computer science geared towards game developement specificly is humbug, as with any decent CS education you will easily be able to gain the knowledge required.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 28 2013 15:04 GMT
#7169
On September 28 2013 22:16 3FFA wrote:
What are some good colleges/universities for Computer Science/Game Development in the New Jersey area?

Any good questions I can ask said colleges/universities about their CS/Game Development program? I'm kind of at a loss here.

At the moment I'm a Junior in HS and am investigating Rutgers, Ramapo, Bloomfield, Fairleigh Dickinson, Lincoln Technical Institute, and am looking to try and find some more to help narrow down my search to 'the right fit'. Any comments/experiences of these colleges/universities would also help me. I'm just starting my journey into searching for the right college(I've been to 2 college fairs). I'm grateful for any additional information.

This is all I know about gaming schools.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
phar
Profile Joined August 2011
United States1080 Posts
September 28 2013 17:45 GMT
#7170
lol nice. Also add this one for after you get out:



I hope the indie game industry keeps taking off and making that xtranormal video obsolete. But, make sure you know what the job market looks before you go in, so you know what you're getting yourself in to.
Who after all is today speaking about the destruction of the Armenians?
Kambing
Profile Joined May 2010
United States1176 Posts
September 28 2013 17:47 GMT
#7171
On September 29 2013 00:04 obesechicken13 wrote:
Show nested quote +
On September 28 2013 22:16 3FFA wrote:
What are some good colleges/universities for Computer Science/Game Development in the New Jersey area?

Any good questions I can ask said colleges/universities about their CS/Game Development program? I'm kind of at a loss here.

At the moment I'm a Junior in HS and am investigating Rutgers, Ramapo, Bloomfield, Fairleigh Dickinson, Lincoln Technical Institute, and am looking to try and find some more to help narrow down my search to 'the right fit'. Any comments/experiences of these colleges/universities would also help me. I'm just starting my journey into searching for the right college(I've been to 2 college fairs). I'm grateful for any additional information.

This is all I know about gaming schools.
http://www.youtube.com/watch?v=nmdGZk-fF98


Distinguish between game schools (e.g., Full Sail) vs. universities and colleges with game degree programs. Very, very generally speaking, university and college game degree programs are more "trustworthy" than game schools which is what the video critiques.

That being said, be careful about picking game degree programs. Depending on the college, the program can be a weaker version of a traditional degree offering. My personal advice: if you are interested in focusing on computer science (vs. art or design), then go for a traditional computer science degree. That way you have the flexibility of a complete education to fall back on if you decide to not pursue the game industry or it doesn't work out.
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
September 28 2013 18:28 GMT
#7172
I had a question about resumes for recruiters/interviews in the industry...

Is it better to have a more "graphical" resume versus the standard resume format?

Standard:
+ Show Spoiler +
[image loading]


Mine:
+ Show Spoiler +
[image loading]


I plan on applying to software engineering jobs everywhere using this resume - (google, facebook, amazon, apple, etc...)

Just wanted some opinions. Thanks!
Yoshi-
Profile Joined October 2008
Germany10227 Posts
September 28 2013 18:36 GMT
#7173
You should remove the points that just hilarious and you aren't really doing yourself a favor, it is just absolute arbitrary and your order is quite odd (why is average better than good?)
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
September 28 2013 18:37 GMT
#7174
On September 28 2013 22:09 Morfildur wrote:
Show nested quote +
On September 28 2013 21:49 darkness wrote:
Morfildur, that 1D vs 2D array got me interested, so I googled a bit. Isn't it a bad approach to use 1D? You lose readability and better debugging in that case. On the other hand, what about calculations you need to do for the 1D array to act like 2D? That is surely overhead as well, so is it worth it in the end? I assume compilers are also smart enough to optimise anyway.


In 99% of the cases the overhead doesn't matter since you aren't programming time critical applications for a tiny microprocessor but applications that just have to be fast enough on an average PC. My simple PHP solution takes a few microseconds to calculate any sudoku riddle i could find and it's not optimized at all. It's easily fast enough for what it is supposed to do, which is what matters.

Solving Sudoku is not a difficult thing for a PC, so you can easily throw away all thoughts about optimizing and just go with what feels easiest.

For me a 1D array felt easier, though for the most part because PHP doesn't have true 2D arrays but only jagged arrays. I also only have to keep one variable on mind when looping through the grid instead of having to consider the cases where i reach the end of the row or have to go a step back at the start of a line, i can just increment/decrement my way through.

What is easier depends on your preference and in my opinion both a 1D and a 2D array have good arguments going for them, so there is no wrong choice. The same is true for deciding between a simple loop or a recursive solution, both are correct and fast enough. I just don't like recursion much, so i picked a loop instead.

Not that it was really designed to, but it doesn't solve all Sudoku puzzles. For example, it fails to solve the first two problems described here:

http://magictour.free.fr/top95

| 4 . . | . . . | 8 . 5 |
| . 3 . | . . . | . . . |
| . . . | 7 . . | . . . |
-------------------------
| . 2 . | . . . | . 6 . |
| . . . | . 8 . | 4 . . |
| . . . | . 1 . | . . . |
-------------------------
| . . . | 6 . 3 | . 7 . |
| 5 . . | 2 . . | . . . |
| 1 . 4 | . . . | . . . |


| 5 2 . | . . 6 | . . . |
| . . . | . . . | 7 . 1 |
| 3 . . | . . . | . . . |
--------------------------
| . . . | 4 . . | 8 . . |
| 6 . . | . . . | . 5 . |
| . . . | . . . | . . . |
--------------------------
| . 4 1 | 8 . . | . . . |
| . . . | . 3 .| . 2 . |
| . . 8 | 7 . . | . . . |


Peter Norvig wrote an interesting article about solving Sudoku here, with all the code provided in Python:

http://norvig.com/sudoku.html

First he describes a Sudoku board and some functions for parsing a grid, which might be useful to the original problem posed by Darkness.

Next he talks about constraint propagation and just a brute-force search for trying to solve the puzzle, neither of which are feasible for solving all puzzles.

Then he describes a depth-first search algorithm with backtracking which he uses to solve all the example puzzles he could find. Finally, he discusses the performance of the algorithm and how it runs on a few million randomly-generated puzzles, with about 99.95% taking less than 0.1 seconds, and the longest at 1439 seconds (this one has no solution).

I know this isn't what Morfildur was trying to show or what darkness was asking exactly, but the article's a nice read and it's interesting if you're curious about search algorithms. It also provides another idea for how to define the Sudoku board which is what darkness was asking originally, using a hashmap and board positions.

As well, to add to the talk of performance, here the performance comes more from choice of algorithm than implementation details. For example, many choices of search either can't solve many of the problems, or they're very inefficient and will basically run forever, but by choosing the right algorithm, many of those problems can be solved very quickly. There's a good example of this under the "Search" section of the article, where Norvig describes why the brute-force approach isn't viable.

If anyone decides to write a Sudoku-solver, here a few links to some example puzzles:
http://projecteuler.net/project/sudoku.txt
http://magictour.free.fr/top95
http://norvig.com/hardest.txt
http://usatoday30.usatoday.com/news/offbeat/2006-11-06-sudoku_x.htm
http://www.mirror.co.uk/news/weird-news/worlds-hardest-sudoku-can-you-242294
you gotta dance
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
September 29 2013 00:06 GMT
#7175
So I had a lecture this Friday and my lecturer was explaining wrapper classes besides the well-known ones like Integer, Boolean, etc.

He was trying to explain that it's easy to mess up the order of passed arguments to a method. E.g. you've declared


public int calculate(int energy, int mass) {}


However, you may call the method wrong like calculate(mass, energy) instead of calculate(energy, mass).

So as far as I remember, he has written code similar to this to solve that problem by using wrappers.

Main class:
+ Show Spoiler +

public class Calculate {
public static int calculate(Energy e, Mass m) {
return m.getMass() * e.getEnergy() * 2;
}

public static void main(String[] args) {
Energy e = new Energy(10);
Mass m = new Mass(30);

System.out.println(calculate(e, m));
}
}


Energy (wrapper class):
+ Show Spoiler +

public class Energy {
private int energy;

Energy(int energy) {
this.energy = energy;
}

public int getEnergy() {
return energy;
}
}


Mass (wrapper class):
+ Show Spoiler +

public class Mass {
private int mass;

Mass(int mass) {
this.mass = mass;
}

public int getMass() {
return mass;
}
}


Obviously, you would get an error now if you mess up the order. However, isn't there a problem with overusing wrappers? You may end up with tons of class files. And is this approach useful to do for the sake of methods and what not? Yeah, I know it's required to use wrappers for Collections but I'm asking if it's good to implement wrappers for any other general use.


Kambing
Profile Joined May 2010
United States1176 Posts
Last Edited: 2013-09-29 00:32:54
September 29 2013 00:32 GMT
#7176
On September 29 2013 09:06 darkness wrote:
So I had a lecture this Friday and my lecturer was explaining wrapper classes besides the well-known ones like Integer, Boolean, etc.

He was trying to explain that it's easy to mess up the order of passed arguments to a method. E.g. you've declared


public int calculate(int energy, int mass) {}


However, you may call the method wrong like calculate(mass, energy) instead of calculate(energy, mass).

So as far as I remember, he has written code similar to this to solve that problem by using wrappers.

Main class:
+ Show Spoiler +

public class Calculate {
public static int calculate(Energy e, Mass m) {
return m.getMass() * e.getEnergy() * 2;
}

public static void main(String[] args) {
Energy e = new Energy(10);
Mass m = new Mass(30);

System.out.println(calculate(e, m));
}
}


Energy (wrapper class):
+ Show Spoiler +

public class Energy {
private int energy;

Energy(int energy) {
this.energy = energy;
}

public int getEnergy() {
return energy;
}
}


Mass (wrapper class):
+ Show Spoiler +

public class Mass {
private int mass;

Mass(int mass) {
this.mass = mass;
}

public int getMass() {
return mass;
}
}


Obviously, you would get an error now if you mess up the order. However, isn't there a problem with overusing wrappers? You may end up with tons of class files. And is this approach useful to do for the sake of methods and what not? Yeah, I know it's required to use wrappers for Collections but I'm asking if it's good to implement wrappers for any other general use.


I would phrase his lecture another way. The problem with the calculate function is that the types of energy and mass are not precise enough. Because both of their types are int, we're (implicitly) stating that energy and mass values are interchangeable when they are clearly not.

The way to fix this problem is to give energy and mass more precise types. The way in Java you introduce new types is to create new classes that correspond to these new types. So the wrapper class Energy and Mass are implementations of more precise types for energy and mass values within your program that are not interchangeable. It turns out that you need no additional methods on Energy or Mass objects, so they act as a simple wrapper over the int type.

In the absence of any kind of optimization, the cost of a wrapper is potentially significant. You are replacing a bare int with an object (whose contents are its type tag along with the int itself). Creation of a Mass object induces a heap allocation which is much more expensive that allocating an int (on the stack). Finally, accesses to the underlying integer also induce a method call. Therefore, the creation of many Mass objects or repeated access to Mass objects may become a performance bottleneck.

That being said, the compiler/JIT should inline calls to getMass which removes the overhead of accessing Mass objects. Unfortunately, the type tag and heap allocation cannot be optimized away, so these remain performance concerns in practice.

Whether such wrappers for the sake of better types is "worth it" depends on your program, i.e., its an engineering decision. You have to weigh the cost of potentially mixing up these types and the cost of the associated bugs with the actual performance hit that you induce by introducing better types. While the things I said above sound pretty grim, the performance cost may be insignificant compared to the rest of your program.
misirlou
Profile Joined June 2010
Portugal3291 Posts
September 29 2013 00:59 GMT
#7177
On September 29 2013 09:06 darkness wrote:
So I had a lecture this Friday and my lecturer was explaining wrapper classes besides the well-known ones like Integer, Boolean, etc.

He was trying to explain that it's easy to mess up the order of passed arguments to a method. E.g. you've declared


public int calculate(int energy, int mass) {}


However, you may call the method wrong like calculate(mass, energy) instead of calculate(energy, mass).

So as far as I remember, he has written code similar to this to solve that problem by using wrappers.

Main class:
+ Show Spoiler +

public class Calculate {
public static int calculate(Energy e, Mass m) {
return m.getMass() * e.getEnergy() * 2;
}

public static void main(String[] args) {
Energy e = new Energy(10);
Mass m = new Mass(30);

System.out.println(calculate(e, m));
}
}


Energy (wrapper class):
+ Show Spoiler +

public class Energy {
private int energy;

Energy(int energy) {
this.energy = energy;
}

public int getEnergy() {
return energy;
}
}


Mass (wrapper class):
+ Show Spoiler +

public class Mass {
private int mass;

Mass(int mass) {
this.mass = mass;
}

public int getMass() {
return mass;
}
}


Obviously, you would get an error now if you mess up the order. However, isn't there a problem with overusing wrappers? You may end up with tons of class files. And is this approach useful to do for the sake of methods and what not? Yeah, I know it's required to use wrappers for Collections but I'm asking if it's good to implement wrappers for any other general use.




Depending on the language, you don't need class files for each class. You can write multiple classes in C++ in one file, im unsure about Java but there I think you need the 1 file per class and that does get a little big. Nevertheless, there is a perfomance cost (very very tiny one but it does exist) to implementing those. An alternative would be using C/C++ 's typedef, although they dont give out compiler warnings if you mess up the order (since you define both as int and they can be casted) but it would be more visible in some IDE's (like eclipse) if you hover over the vars and functions and you check their types. If you really want a wrapper class (and aren't stuck on java) I suggest overloading operators in there ( = being most obvious)
3FFA
Profile Blog Joined February 2010
United States3931 Posts
September 29 2013 01:45 GMT
#7178
On September 29 2013 02:47 Kambing wrote:
Show nested quote +
On September 29 2013 00:04 obesechicken13 wrote:
On September 28 2013 22:16 3FFA wrote:
What are some good colleges/universities for Computer Science/Game Development in the New Jersey area?

Any good questions I can ask said colleges/universities about their CS/Game Development program? I'm kind of at a loss here.

At the moment I'm a Junior in HS and am investigating Rutgers, Ramapo, Bloomfield, Fairleigh Dickinson, Lincoln Technical Institute, and am looking to try and find some more to help narrow down my search to 'the right fit'. Any comments/experiences of these colleges/universities would also help me. I'm just starting my journey into searching for the right college(I've been to 2 college fairs). I'm grateful for any additional information.

This is all I know about gaming schools.
http://www.youtube.com/watch?v=nmdGZk-fF98


Distinguish between game schools (e.g., Full Sail) vs. universities and colleges with game degree programs. Very, very generally speaking, university and college game degree programs are more "trustworthy" than game schools which is what the video critiques.

That being said, be careful about picking game degree programs. Depending on the college, the program can be a weaker version of a traditional degree offering. My personal advice: if you are interested in focusing on computer science (vs. art or design), then go for a traditional computer science degree. That way you have the flexibility of a complete education to fall back on if you decide to not pursue the game industry or it doesn't work out.

Ok thanks! What questions should I ask to learn whether it is a traditional degree offering? I'm not exactly someone that went through a traditional degree in computer science so I have no idea as to how I tell a traditional CS degree from a shallow CS degree.

Also, is going to a Community College to get an Associate's degree and then transferring over to a 4 year college for the next 2 years to get the Bachelors a good idea that will save me/my parents money or will it most likely just leave me with 5-6 years instead of 4?
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Kambing
Profile Joined May 2010
United States1176 Posts
Last Edited: 2013-09-29 02:00:41
September 29 2013 01:58 GMT
#7179
On September 29 2013 10:45 3FFA wrote:
Show nested quote +
On September 29 2013 02:47 Kambing wrote:
On September 29 2013 00:04 obesechicken13 wrote:
On September 28 2013 22:16 3FFA wrote:
What are some good colleges/universities for Computer Science/Game Development in the New Jersey area?

Any good questions I can ask said colleges/universities about their CS/Game Development program? I'm kind of at a loss here.

At the moment I'm a Junior in HS and am investigating Rutgers, Ramapo, Bloomfield, Fairleigh Dickinson, Lincoln Technical Institute, and am looking to try and find some more to help narrow down my search to 'the right fit'. Any comments/experiences of these colleges/universities would also help me. I'm just starting my journey into searching for the right college(I've been to 2 college fairs). I'm grateful for any additional information.

This is all I know about gaming schools.
http://www.youtube.com/watch?v=nmdGZk-fF98


Distinguish between game schools (e.g., Full Sail) vs. universities and colleges with game degree programs. Very, very generally speaking, university and college game degree programs are more "trustworthy" than game schools which is what the video critiques.

That being said, be careful about picking game degree programs. Depending on the college, the program can be a weaker version of a traditional degree offering. My personal advice: if you are interested in focusing on computer science (vs. art or design), then go for a traditional computer science degree. That way you have the flexibility of a complete education to fall back on if you decide to not pursue the game industry or it doesn't work out.

Ok thanks! What questions should I ask to learn whether it is a traditional degree offering? I'm not exactly someone that went through a traditional degree in computer science so I have no idea as to how I tell a traditional CS degree from a shallow CS degree.

Also, is going to a Community College to get an Associate's degree and then transferring over to a 4 year college for the next 2 years to get the Bachelors a good idea that will save me/my parents money or will it most likely just leave me with 5-6 years instead of 4?


A standard computer science degree (vs. a more vocational-focused degree) will roughly look like:

(1) Introductory programming
(2) Discrete mathematics, theory of computation, and algorithms
(3) Systems and architecture
(4) Specialization courses such as operating systems, compilers, networks, databases, etc.

You should be able to peruse a department's website for their degree requirements and see if it matches roughly with this skeleton. Degree programs that skimp on one or more of these topics will leave you less prepared for the job market and narrow the scope of jobs that you can take out of the gate.

Going to a community college is fine if your financial situation demands it. How it plays out depends entirely on the community college and the target 4-year institution and boils down to what credits the latter accepts from the former. That's something that the 4-year institution's CS department should be able to answer if you have the list of classes that you have taken from the community college.
ZweiGaming
Profile Joined November 2010
Canada348 Posts
Last Edited: 2013-09-29 02:40:27
September 29 2013 02:38 GMT
#7180
I've got a question related to Java coding. I'm quite new to coding, it only has been 3 classes i've had up to now and no lie, I find it quite hard. For one of my code, I'm supposed to get this result: + Show Spoiler +
[image loading]


My current code gives me this: + Show Spoiler +
[image loading]


I'm missing the part where each date can have more than a single Customer_ID + quantity. I was wondering how to execute that in Java coding?

To give you an idea, here's a part of my coding (in which I believe something is missing).

+ Show Spoiler +

query = "SELECT"
+ " SALES_ORDER_DATE,"
+ " OUTPUT_DESCRIPTION,"
+ " CUSTOMER_ID,"
+ " SUM(QUANTITY) AS QUANTITY"
+ " FROM SALES_ORDER"
+ " INNER JOIN SALES_ORDER_LINE_ITEM"
+ " ON SALES_ORDER.SALES_ORDER_ID = SALES_ORDER_LINE_ITEM.SALES_ORDER_ID"
+ " INNER JOIN BOM"
+ " ON SALES_ORDER_LINE_ITEM.PRODUCT_ID = BOM.OUTPUT_PRODUCT_ID"
+ " AND SALES_ORDER.SALES_ORDER_DATE = BOM.EFFECTIVE_DATE"
+ " GROUP BY"
+ " SALES_ORDER_DATE,"
+ " OUTPUT_DESCRIPTION,"
+ " CUSTOMER_ID"
+ " ORDER BY SALES_ORDER_DATE";
result = stmt.executeQuery(query);


int dateIndex = 0;
Hashtable<String, Integer> quantities = new Hashtable<String, Integer>();


while (result.next() && dateIndex < dates.size()) {
String date = result.getString("SALES_ORDER_DATE");
String client = result.getString("CUSTOMER_ID");

while (dates.elementAt(dateIndex).compareTo(date) < 0) {
out.print("<tr><td>" + dates.elementAt(dateIndex) + "</td>");
for (String iÉtiquette : étiquettes) {
out.print("<td align='right'>");
if (quantities.get(iÉtiquette) != null) {
out.print(client + " : " + quantities.get(iÉtiquette));
quantities.remove(iÉtiquette);
} else {
out.print("&nbsp;");
}
out.print("</td>");
}
out.print("</tr>");
dateIndex++;
}

String produit = result.getString("OUTPUT_DESCRIPTION");
int quantity = result.getInt("QUANTITY");

quantities.put(produit, quantity);

}

while (dateIndex < dates.size() && quantities.size() != 0) {
out.print("<tr><td>" + dates.elementAt(dateIndex) + "</td>");
for (String iÉtiquette : étiquettes) {
out.print("<td align='right'>");
if (quantities.get(iÉtiquette) != null) {
out.print(quantities.get(iÉtiquette));
quantities.remove(iÉtiquette);
} else {
out.print("&nbsp;");
}
out.print("</td>");
}
out.print("</tr>");
dateIndex++;
}
Prev 1 357 358 359 360 361 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 33m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 108
Nina 79
ProTech10
StarCraft: Brood War
Zeus 2822
Sea 2672
Bisu 759
firebathero 551
Jaedong 398
Hyuk 279
actioN 159
Stork 96
Killer 90
sorry 60
[ Show more ]
Leta 56
Free 55
Shinee 47
Aegong 44
Sharp 40
ToSsGirL 39
Backho 17
NotJumperer 17
[sc1f]eonzerg 14
Bale 13
GoRush 10
Rush 10
JulyZerg 8
ajuk12(nOOB) 8
Dota 2
XaKoH 442
NeuroSwarm87
Counter-Strike
olofmeister2498
shoxiejesuss617
Other Games
singsing1066
Liquid`RaSZi675
ceh9631
Happy192
crisheroes170
Mew2King64
Organizations
Counter-Strike
PGL11618
Other Games
gamesdonequick671
BasetradeTV18
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• LUISG 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2209
Upcoming Events
The PondCast
33m
CranKy Ducklings
14h 33m
WardiTV Team League
1d 1h
Replay Cast
1d 14h
CranKy Ducklings
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
n0maD vs perroflaco
TerrOr vs ZZZero
MadiNho vs WolFix
DragOn vs LancerX
Sparkling Tuna Cup
3 days
WardiTV Team League
3 days
[ Show More ]
OSC
3 days
BSL
3 days
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
Replay Cast
3 days
Replay Cast
3 days
Wardi Open
4 days
GSL
5 days
Replay Cast
5 days
Kung Fu Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
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
CCT Season 3 Global Finals
IEM Rio 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.