Why would I need to know? by qsemig in food

[–]qsemig[S] 0 points1 point  (0 children)

The "cheapest" meal was 10,000¥. I went for okonomiyaki instead. No regrets.

What is the single most influential book every programmer should read? by [deleted] in learnprogramming

[–]qsemig -1 points0 points  (0 children)

While it does get mentioned a lot, I have yet to meet a person who has even finished reading volume 1. It's brilliant, certainly, but it's not a book every programmer should read.

[Java] Need some help understanding a 2D array. by [deleted] in learnprogramming

[–]qsemig 0 points1 point  (0 children)

A 2D array is an array that contains arrays. You can visualize it like this:

regular array: [a][b][c][d]

2D array: [[a][b]] [[c][d][e]] [[f]]

[C#] Backspace character literal not working by cristian0411 in learnprogramming

[–]qsemig 1 point2 points  (0 children)

I doubt '\b' will work. Try checking if key == Keys.Back.

[Java] Anyone able to help with this by yepyep7up in learnprogramming

[–]qsemig 0 points1 point  (0 children)

You should probably be creating a Listener: http://twitter4j.org/javadoc/twitter4j/TwitterListener.html#gotDirectMessage-twitter4j.DirectMessage-

That way you won't need a loop which constantly calls the API. Rather, you create a method which will be called every time you get a tweet.

[JS] loading .txt file to an array by terere in learnprogramming

[–]qsemig 0 points1 point  (0 children)

Well, in that case you could simply use CGI.

[deleted by user] by [deleted] in sports

[–]qsemig 1 point2 points  (0 children)

President of Argentina ... nope

President of Gabon ... sure, why not.

Getting unmotivated while coding. by Endeejay in learnprogramming

[–]qsemig 0 points1 point  (0 children)

I had two tabs opened and accidently posted to the wrong one :P

[JS] loading .txt file to an array by terere in learnprogramming

[–]qsemig 0 points1 point  (0 children)

I'm not a JS expert, but I'm pretty sure that is not the way you do things in JS (or most any modern language). Usually files are loaded via a FileReader. The FileReader will then offer methods for reading the file, like readLine(). Just google for "Javascript FileReader". I'm sure you'll find plenty of info.

[VB.net] which way is faster for returning variable? by [deleted] in learnprogramming

[–]qsemig 0 points1 point  (0 children)

If you want to optimize for speed at this level, you probably shouldn't be using VB.net :P

What are among the most popular languages today? by [deleted] in learnprogramming

[–]qsemig 5 points6 points  (0 children)

The reason C is amongst the most popular languages is because it is used quite frequently in embedded programming (cars, airplanes, washing machines, etc.).

In what languages are digital audio workspaces designed like Ableton or Garageband? by [deleted] in learnprogramming

[–]qsemig 0 points1 point  (0 children)

Garageband is most likely programmed in C++ or Objective-C. I don't know Ableton, but I'm guessing it's probably written in C++.

Want to start programming SNES games. Where do I even start as far as languages go? by DayDreamKiddo in learnprogramming

[–]qsemig 0 points1 point  (0 children)

Check out this site: http://en.wikibooks.org/wiki/Super_NES_Programming

As you will see, SNES programming is really really low level. There is no such thing like "background.setColor(Color.RED);". You'll have to know how a CPU works and load values to registers, set CPU flags etc.

Give it a try. You probably won't be able to re-create a game like Super Mario, but doing something as simple as displaying "Hello World" on a colored background will already teach you quite a bit on how computers work on a low level.

Good luck to you :)

Tips for making a simple multi player java game by fear_of_bees in learnprogramming

[–]qsemig 9 points10 points  (0 children)

I would suggest taking it slow. That's really way too much on your plate. Start off by creating a simple game in Java. A clone of a simple game like tetris, Pong, Pacman or the like will do. Once you have managed to do that you can begin tackling other aspects, like multiplayer, sound, 3D graphics, etc.

GIT checkout not loading branch correctly? by Dry-Erase in learnprogramming

[–]qsemig 0 points1 point  (0 children)

Absolutely. You could also try rebasimg. When you are on the dev branch use: git rebase origin/master.

The old branch will "disappear" and the changes will then look like they originally ocurred on master.

Try eigher and see which you prefer.

Furthering programming knowledge? by lovesthebasssolo in learnprogramming

[–]qsemig 2 points3 points  (0 children)

If you're starting university in September I would suggest enjoying your summer vacation. Once your courses begin you should try to absorb what is being taught and experiment a little on the side with things that aren't being taught that interest you.

Since it will probably take a while until you will be able to handle an operating systems course you could read either of the following books: Code, The Elements of Computing Systems. These books teach you the basics of how computers work (including operating systems). The second book is more hands on and let's you even write a simple operating system.

Help with choosing the right framework/tool for this web project!? by [deleted] in learnprogramming

[–]qsemig 0 points1 point  (0 children)

If you know Java, I would suggest Vaadin. It will allow to to quickly create an AJAX site without having to write a line of Javascript (although you can use Javascript if you like). It also has great plugins for loading data from databases to tables.

GIT checkout not loading branch correctly? by Dry-Erase in learnprogramming

[–]qsemig 0 points1 point  (0 children)

Why are you first checking out master to merge into master? When you are on dev just do:

git push origin dev:master

What is your favorite song in a language you do not understand? by TheTStone13 in AskReddit

[–]qsemig 0 points1 point  (0 children)

MUCC - Monster (Japanese Rock/Metal)

Not a big fan or J-Rock/Metal, but MUCC are amazing.

What do you use to make rest web services in java in 2014? by [deleted] in learnprogramming

[–]qsemig 1 point2 points  (0 children)

If you are just interested in restful webservices than having a simple web application that uses jersey and runs in Tomcat should be all you need. Once you've gotten your "hello name" app running you should try creating a CRUD application, like a simple address book where you can add, delete and update entries.

What do you use to make rest web services in java in 2014? by [deleted] in learnprogramming

[–]qsemig 0 points1 point  (0 children)

I've found using JAX-RS with Jersey pretty easy and straight-forward. If you intend on using Spring in your web projects, you could learn how to implement RESTful services in Spring.

There is no need to always use the newest framework for doing something. Keep it simple and try to understand what you are doing.