link no longer works that upset me because I've been looking into winsock stuff...MarauderIIC wrote:Ginto, read beej's guide to network programming linked from here http://elysianshadows.com/phpBB3/viewto ... ?f=6&t=148
Programming Practice
Moderator: Coders of Rage
Re: Programming Practice
Re: Programming Practice
darn my lack of motivation, i might have actually liked this one... i guess I'll try but I'll probably lose interest in two minutes... /me runs of to try to code somethingKuramaYoko10 wrote:Ok... I dont know if I should bring this topic up again, but I like the idea of it, and I will post a very simple challenge which I remember doing when I was learning the basics of C (which I still am... kinda lol)
You are requested to print on screen X numbers of the fibonacci sequence (starting from 0), being X the variable that the user inputs.
The fibonacci sequence is an interesting sequence of numbers in which you get the previous number, add to your current number to get the result of the next number of the sequence ... here is how it starts:*more info at: http://en.wikipedia.org/wiki/Fibonacci_sequenceCode: Select all
0 1 1 2 3 5 8 13 ...
I have the code done, but I will try thinking on different ways of solving it, so it will be an exercise to me as well ... I will wait for some replys and then post my code here (and because i am not on my computer right now =P)
Edit: that wikipedia page looks a lot more mathmaticley heavy........
Re: Programming Practice
got it do you want me to PM the code or what???
Re: Programming Practice
That link needs to be updated go here.eatcomics wrote:link no longer works that upset me because I've been looking into winsock stuff...MarauderIIC wrote:Ginto, read beej's guide to network programming linked from here http://elysianshadows.com/phpBB3/viewto ... ?f=6&t=148
Re: Programming Practice
Thankeeandrew wrote:That link needs to be updated go here.eatcomics wrote:link no longer works that upset me because I've been looking into winsock stuff...MarauderIIC wrote:Ginto, read beej's guide to network programming linked from here http://elysianshadows.com/phpBB3/viewto ... ?f=6&t=148
- KuramaYoko10
- Chaos Rift Cool Newbie
- Posts: 55
- Joined: Fri Oct 31, 2008 8:02 pm
Re: Programming Practice
Sure eatcomics... pm me your code, and I will put mine here!
Now, I was looking up my projects folder and I found one that is really fun and might fit as a 'programming practice':
I will wait till people try to find a way to do this by themselves and then I will post my code here!
Have fun with this one =D
Now, I was looking up my projects folder and I found one that is really fun and might fit as a 'programming practice':
Click here to see the hidden message (It might contain spoilers)
I will wait till people try to find a way to do this by themselves and then I will post my code here!
Have fun with this one =D
Type a message here!!
[b][color=#BF0000]MarauderIIC[/color][/b] wrote:"Never" is never true in programming.
Re: Programming Practice
Hey ginto... could you send me the source for this one plz???? I would love you if you did.......Ginto8 wrote:Here's an idea for the up-and-coming network programmer:
Click here to see the hidden message (It might contain spoilers)
Also helps with some file I/O.
Edit: That post got me a gold egg just thought you would all like to know....
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: Programming Practice
to be honest I haven't made one myself yet... though I'll need to soon, if I want to actually finish my next project! Here's my list of ideas for it if you want to know:eatcomics wrote:Hey ginto... could you send me the source for this one plz???? I would love you if you did.......Ginto8 wrote:Here's an idea for the up-and-coming network programmer:
Click here to see the hidden message (It might contain spoilers)
Also helps with some file I/O.
Edit: That post got me a gold egg just thought you would all like to know....
Click here to see the hidden message (It might contain spoilers)
and if you want a (sorta) cross-platform networking solution, then you can use SDL_net instead of winsock
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Re: Programming Practice
cool I'll look into the SDL_net thing thanx
- BlueMonkey5
- Chaos Rift Cool Newbie
- Posts: 86
- Joined: Fri Feb 20, 2009 12:54 am
Re: Programming Practice
Can anyone tell me anything about DarkBasic? and is a good place to start for a total beginner?
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Programming Practice
No idea, blue.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
- BlueMonkey5
- Chaos Rift Cool Newbie
- Posts: 86
- Joined: Fri Feb 20, 2009 12:54 am
Re: Programming Practice
Wikipedia sais that the purpose of the language is to "create games using microsofts directX from a BASIC programming language". It's basically a customized language specifically geared to make games, that has the necessary libraries built right into it. So there's no need for API's i guess. It's kind of like a two in one thing from what I see but I don't know if it's worth while to learn, or if it's just better to start right away with a normal languge, like C++ with SDL or something. So maybe someone has a recomendation about that.
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: Programming Practice
Really the only thing that matters is how much difficulty you wish to deal with as a beginner. Obviously DarkBasic will be much easier to learn, and you may even be able to start making a simple game within the first week. C++ on the other hand will require a lot more patience to master and the beginner tutorials may seem less appealing to you (guess a number game, draw simple ascii art, whatever), but will definitely give you many more options in the long run.BlueMonkey5 wrote: It's kind of like a two in one thing from what I see but I don't know if it's worth while to learn, or if it's just better to start right away with a normal languge, like C++ with SDL or something. So maybe someone has a recomendation about that.
It's up to you to make this decision, and if you're Really unsure go ahead and jump right into C++ and see if you think you can handle it. If not go ahead with DarkBasic first, and work your way towards C++ later on. I tried and failed at learning C++ at least twice before I actually got serious and became determined to understand it. There's nothing wrong with failing the very first time you try something new (unless of course it has to do with sky-diving).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- BlueMonkey5
- Chaos Rift Cool Newbie
- Posts: 86
- Joined: Fri Feb 20, 2009 12:54 am
Re: Programming Practice
LOL... nice. yea that sounds really cool. it's actually a big comfort hearing that you failed the first two times (as twisted as that sounds), because I failed two times at programming too! so wow, that actually does inspire me some and gives me hope that i can give it another whack. thanks!
But here's a good question if anyone knows- is darkbasic similar to C++? so basically, if i start off learning darkbasic, will it be an easy switch to learn C++? if it is, it would be worth while to do that and then make the switch. if they are similar, alongside being useful, learning darkbasic would also be practice when switching to C++. it would be like learning something to help getting started with that. but if they're totally different, i would just start off with C, and maybe play around with darkbasic on the side to see what it's all about.
But here's a good question if anyone knows- is darkbasic similar to C++? so basically, if i start off learning darkbasic, will it be an easy switch to learn C++? if it is, it would be worth while to do that and then make the switch. if they are similar, alongside being useful, learning darkbasic would also be practice when switching to C++. it would be like learning something to help getting started with that. but if they're totally different, i would just start off with C, and maybe play around with darkbasic on the side to see what it's all about.
Re: Programming Practice
just keep at it, especially when you don't feel like doing it. You get a big boost of confidence that wayBlueMonkey5 wrote:LOL... nice. yea that sounds really cool. it's actually a big comfort hearing that you failed the first two times (as twisted as that sounds), because I failed two times at programming too! so wow, that actually does inspire me some and gives me hope that i can give it another whack. thanks!
But here's a good question if anyone knows- is darkbasic similar to C++? so basically, if i start off learning darkbasic, will it be an easy switch to learn C++? if it is, it would be worth while to do that and then make the switch. if they are similar, alongside being useful, learning darkbasic would also be practice when switching to C++. it would be like learning something to help getting started with that. but if they're totally different, i would just start off with C, and maybe play around with darkbasic on the side to see what it's all about.