Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 52 53 [54] 55 56 ... 91

Author Topic: Programming Help Thread (For Dummies)  (Read 100752 times)

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Programming Help Thread (For Dummies)
« Reply #795 on: October 03, 2012, 09:09:44 pm »

@Thendash: yes, a string can contain numbers. the digits 0 through 9 have positions in the Unicode character set. Most keys on a keyboard are represented within the Unicode set so just about anything that can be typed in can be represented within a string literal context. Even ☼ can be parsed through :D
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

Thendash

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #796 on: October 03, 2012, 10:37:40 pm »

I'm not asking if a string can contain numbers, I'm asking if the strings in his data set could contain numbers.
Logged
Thendash's Livestream

This game could honestly give out hand jobs for free and people would still bitch.

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Programming Help Thread (For Dummies)
« Reply #797 on: October 03, 2012, 11:00:13 pm »

oh :P then I was being thick headed not noticing to whom you were asking the question. Sorry :P
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

dennislp3

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #798 on: October 04, 2012, 12:59:59 am »

Rather than starting a new thread I thought I would ask here...

Is there a ~COMPLETE~ roguelike tutorial for C++?

Every single one I find is half finished...

is making a roguelike in C++ so soul crushing that even experienced programmers cant complete it? XD

the latest I have found is: http://www.kathekonta.com/rlguide/index.html

Any others that anyone can find that are complete?

I painstakingly backtracked the interwebz and was able to track down 4 parts of the fabled "Terror in the ASCII dungeon" tutorial but it stops there...part 5 was never done. =(
« Last Edit: October 04, 2012, 01:02:27 am by dennislp3 »
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #799 on: October 04, 2012, 02:40:17 am »

In C++, how would I go about getting different variable types from one file? For example, say the file's contents were like this:

derp
0.2
30

How do I get a string from the first line, a float from the next, and an int from the third?
Filestreams rock.

Something like this:
Code: [Select]
std::string astring;
float afloat;
int anint;
ofstream file;
file.open("file.txt.");
file>>astring>>afloat>>anint;
file.close;
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

DeadlyLintRoller

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #800 on: October 06, 2012, 06:01:11 pm »

Here I am, 9:45 on a Saturday night, working on class for a Master's in IT. Anyone have any Java Programming Questions? I am also experienced in PHP, Javascript and Drupal Development.

If you need a question, this one never got adequately resolved.

I'm trying to make a program that will check a yahoo email. However, when I do emailChecker.recieve(), it gives me an error message. I am using JavaMail. The code looks like this:

Spoiler: Code (click to show/hide)

And the error message looks like this:
Spoiler (click to show/hide)

Thanks in advance for the help.

I do not, that explains it. Any idea how to check a gmail account? (The tutorial I found was for yahoo mail, so I tried that).

Thanks!


Looks like that was settled, although, I likely would have struggled to get to the bottom of that one. Sorry fo taking a week to respond. I'm just completely buried with work, school and in the process of trying to buy a house...


Rather than starting a new thread I thought I would ask here...

Is there a ~COMPLETE~ roguelike tutorial for C++?

Every single one I find is half finished...

is making a roguelike in C++ so soul crushing that even experienced programmers cant complete it? XD

I imagine that people make roguelike games out of hobby/practice, but being developers, their time is in high demand so that project is the first thing to go when work gets busy. I'd like to make a hobby out of developing a game in java, but know I'll never have the time...

I've kind of half payed attention to this thread over the past year, has this spawned any open source community projects? Are they available on github?
Logged
I'm back!

dennislp3

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #801 on: October 06, 2012, 08:46:02 pm »

I am self teaching myself programming and intend to make it a major part of my life (as my current line of work is lame). I don't have any projects yet...but I am sure I will in time.
Logged

Urist McScoopbeard

  • Bay Watcher
  • Damnit Scoopz!
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #802 on: October 06, 2012, 08:54:07 pm »

So, I ponied up and am taking a computer science class this year and i'm learning java via blue pelican (textbook of sorts) but most of the code writing part is pretty conceptual unfufilling, so I thought'd i'd supplement it with some game development to apply what i've learned and will be learning. My question is what IDE should I be using and can you suggest any libraries?

I've taken a look a LWJGL for a 2d graphical library and I dlled eclipse (but it's having some issues with my jre/jdk; I program my school stuff with BlueJ) but i'm not really sure.

@Dennis: Try a bank account simulator (more satisfying to program than you'd imagine)
« Last Edit: October 06, 2012, 08:58:29 pm by Urist McScoopbeard »
Logged
This conversation is getting disturbing fast, disturbingly erotic.

Thendash

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #803 on: October 06, 2012, 09:25:13 pm »

For java I always used eclipse but if you want something bare bones then notepad++ is always a good code editor.
Logged
Thendash's Livestream

This game could honestly give out hand jobs for free and people would still bitch.

Starver

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #804 on: October 06, 2012, 09:43:09 pm »



But, derail aside, an alternate interface to something else that you use cab always be handy, and something you're motivated to complete.  For example: Regularly check a radio station's programme listings for something of interest?  Write something that'll go and grab that information automatically and present it in a format you more prefer (or allow you to specify details to identify "Programmes of known interest" in a configuration file and bring them prominently to your attention)[3].



[3] Yes, that's something I've done, and am using, and it works a treat.  Albeit that occasionally the radio station changes their listing page formats and it needs a re-write of the parsing bit.  My next job (put off for a while now) is to farm out the 'parsing methods' information from the sometimes changing hard-coding it currently is to some configuration file that can be obeyed by a more static processing procedure, so that it's easier to just change/fine-tune the latter when the inevitable next changes occur.  If this is the sort of thing that interests you, at all, you might want to start with this design paradigm in mind and save yourself the pain of having to redo what was originally carefully crafted code but got 'spaghettified' as minor and major changes started to be required... Although you'd of course be starting at the "capture a page, save locally" stage, perhaps "automatically open locally saved file" as well, but as you learn what you can do with the language you'll gradually add features.  Still, planning ahead is always good.  And rarely something I manage to perfect, but don't let that put you off. ;)  And, of course, the specifics are just an example from my life, but similar forethought might still apply to whatever thing you find you could get around to doing.

[edited to reorder some thoughts...  Also, the song on the internet radio a colleague's machine is currently playing is exactly the song I associate with my college years.  What a coincidence, after just mentioning those times...]
« Last Edit: October 06, 2012, 09:49:27 pm by Starver »
Logged

DeadlyLintRoller

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #805 on: October 07, 2012, 11:42:17 am »

My question is what IDE should I be using?

tmux/vim is the best =)

...Well, only if you are awesome at the command line, have some good dotfiles, and are a good enough programmer to recognize those silly mistakes right away. Seriously debating switching from Aptana for php development.
Logged
I'm back!

Thendash

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #806 on: October 07, 2012, 02:07:52 pm »

Oh yeah, vim is the other one that I used. My professor would always teach us using eclipse, then he'd go and do everything in vim. I guess he just didn't want to teach everyone how to use the command prompt, and I suppose it would be a little difficult learning the language with it.
Logged
Thendash's Livestream

This game could honestly give out hand jobs for free and people would still bitch.

Urist McScoopbeard

  • Bay Watcher
  • Damnit Scoopz!
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #807 on: October 07, 2012, 03:19:18 pm »

well, I dlled several versions of eclipse and tried reinstalling jre7/jdk but eclipse is just being an asshole so I decided to get netbeans. I also decided to try out slick which is a nice simple 2d library, but I still need to work out some stuff with importing the library.

...and ya fuq yo command line.
Logged
This conversation is getting disturbing fast, disturbingly erotic.

lorb

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #808 on: October 08, 2012, 03:32:06 am »

There is gvim for those who really can't do without a GUI but still want the best editor.
Logged
Please be gracious in judging my english. (I am not a native speaker/writer.)
"This tile is supported by that wall."

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #809 on: October 08, 2012, 03:58:25 am »

My question is what IDE should I be using?
Tip #1: Don't learn Java.
But if you do, IntelliJ is quite a good IDE.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))
Pages: 1 ... 52 53 [54] 55 56 ... 91