Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

What Programming language would be good for Jakkarra to learn?

Python
- 9 (16.7%)
C
- 4 (7.4%)
C#
- 4 (7.4%)
C++
- 13 (24.1%)
C99
- 1 (1.9%)
Lua
- 2 (3.7%)
Brainfuck
- 10 (18.5%)
Li.No.Leum
- 3 (5.6%)
Lolcode (hehe)
- 7 (13%)
Befunge
- 1 (1.9%)

Total Members Voted: 54


Pages: 1 2 3 [4]

Author Topic: Jakkarra has gained a level....  (Read 6800 times)

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Jakkarra has gained a level....
« Reply #45 on: July 15, 2009, 11:44:55 am »

printf("This is a line\nFollowed by a number, %d, that could be anything, even the value of a pointer!\nAnd here is a formatted number, the easy way: %.8d!\n8 digit hex? %.8x!\nAnd it works in BOTH C and C++!","The location of this string will be used as the first number, as C has no type checking. You DO NOT need to cast unsigned char to char or back",0x7634,14367);

Pre-post-edit:
It worked perfectly ran through both gcc and g++.

All you people using cout << "whatever" DO realize that you are giving up on your fine control of number formatting?
Logged
Eh?
Eh!

Sowelu

  • Bay Watcher
  • I am offishially a penguin.
    • View Profile
Re: Jakkarra has gained a level....
« Reply #46 on: July 15, 2009, 02:32:55 pm »

C#:
Console.Out.WriteLine("{0} has {1} apples.", "Bob", 29);
Oh wait, I want to reverse the order that those arguments appear.
Console.Out.WriteLine("{1} apples: {0}.", "Bob", 29);
Sure is a good thing I wasn't using C++, or I'd have to change the code in order to make what should be a purely data change!

Seriously, C# is like the only modern language that's even HEARD of localization.
Logged
Some things were made for one thing, for me / that one thing is the sea~
His servers are going to be powered by goat blood and moonlight.
Oh, a biomass/24 hour solar facility. How green!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Jakkarra has gained a level....
« Reply #47 on: July 15, 2009, 03:23:29 pm »

But how do you specify the diffrence between a 4 digit hex(0f3b, 0002, fff4), a generic integer(463472, 247, 0), writing to file, console, or string?
Character vs string?
Float, double, octal?

Wikipedia says that you CAN specify the order, it is simply OPTIONAL(And not included in some compilers)

Quote from: wikipedia
"%[parameter][flags][width][.precision][length]type"
parameter:
n$:
 n is the number of the parameter to display using this format specifier, allowing the parameters provided to be output multiple times, using varying format specifiers or in different orders. This is a POSIX extension and not in C99. Example: printf("%2$d %1$#x %1$d",16,17) produces "17 0x10 16"

Also look at printf, fprintf, and sprintf, all using the standard formatting.
Logged
Eh?
Eh!

Efun

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #48 on: July 16, 2009, 08:10:30 pm »

Python is literal, type it AND IT HAPPENS!!
Logged
Military dorfs are the busiest if their partner is also in the military, Military children are my forts future, also its hilariously tragic when a mother carrying her child into battle gets hit, and the baby dies....
I fixed that up for you.

zarmazarma

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #49 on: July 17, 2009, 12:58:06 am »

Don't lesson to these silly billy boys. You want to learn intercal. :).

Actually, if you really want to get into coding, I suggest you start with C

http://aelinik.free.fr/c/index.html

This is the best guide you will ever get for it in my opinion, I love it. C isn't hard to learn, it's like learning english in a sense... It'll eventually just work. After C, you could move on to C++, which is a very nice language. You could just skip to C++, but I like the idea of learning C first.

http://www.bloodshed.net/devcpp.html

This is the compiler I use, it also tells you what you did wrong, although it can be a bit cryptic. It's a very nice tool.
« Last Edit: July 17, 2009, 01:04:15 am by zarmazarma »
Logged

Muz

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #50 on: July 19, 2009, 09:09:39 pm »

Hmm... I change my stance after seeing some stuff at uni. Learn C. Then learn C++, because it's similar, with some improvements. If it's something you want on a resume, you have two programming languages :P

It's an old language, not as good as the others, but any programmer worth a damn knows C. My lecturer is a genius who got his PhD from UCLA and works with storing light as memory, and he doesn't know Javascript. Maybe not even Python.

So, C. Because it's the language everyone speaks.
Logged
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

zarmazarma

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #51 on: July 20, 2009, 12:04:38 am »

Hmm... I change my stance after seeing some stuff at uni. Learn C. Then learn C++, because it's similar, with some improvements. If it's something you want on a resume, you have two programming languages :P

It's an old language, not as good as the others, but any programmer worth a damn knows C. My lecturer is a genius who got his PhD from UCLA and works with storing light as memory, and he doesn't know Javascript. Maybe not even Python.

So, C. Because it's the language everyone speaks.

Damn straight  8).

C is very powerful when used right. Quelsolaar.com is a prime example.
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Jakkarra has gained a level....
« Reply #52 on: July 20, 2009, 12:22:47 am »

Augh! If you want to learn c++, learn that and not C. if you are after the creed or spped of C, learn assembly. If you want to just learn something that is easy and lets you do programming stuff, learn python or java.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

zarmazarma

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #53 on: July 20, 2009, 02:19:22 am »

Augh! If you want to learn c++, learn that and not C. if you are after the creed or spped of C, learn assembly. If you want to just learn something that is easy and lets you do programming stuff, learn python or java.

...

Learn C first. Than move to C++. :).
Logged

cowofdoom78963

  • Bay Watcher
  • check
    • View Profile
Re: Jakkarra has gained a level....
« Reply #54 on: July 20, 2009, 02:58:32 am »

or... Learn c++ like I did and then learn c.
Logged

Yanlin

  • Bay Watcher
  • Legendary comedian.
    • View Profile
Re: Jakkarra has gained a level....
« Reply #55 on: July 20, 2009, 06:10:43 am »

Learn ALL OF THEM!
Logged
WE NEED A SLOGAN!

Muz

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #56 on: July 20, 2009, 06:31:04 am »

Some people from the 80s generation use C, but not C++. And a lot of stuff also uses plain C. If you're trying to get along with other coders, learn to use C. You could master C++ and do stuff with it, but heck, if you never learn C in the first place, you'll probably never bother.
Logged
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

sonerohi

  • Bay Watcher
    • View Profile
Re: Jakkarra has gained a level....
« Reply #57 on: July 20, 2009, 02:40:59 pm »

Meh, just go with C++ then. It's not the best in the world, but everyone expects you to know it. It's like English :P

BUT ITS HARD!!!!

I want to program while I'm still in my highschool... Not when I go to college. (OK, I want to go to MIT, but that's out of the question for now)

 ??? You can learn in high school. I learned Java while in high school. C++ is easier, IMHO.

I learned C++ in the eight grade, and over the summer going into freshmen year...
Logged
I picked up the stone and carved my name into the wind.

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: Jakkarra has gained a level....
« Reply #58 on: July 26, 2009, 02:19:41 am »

Learn C++ and Python.
Then write your own language that combines the two.
After that, use Brainfuck to create a roguelike with a similar level of complexity to the major RLs. And put it on Roguebasin. Don't include a compiled version. Have people compile it from the sourcecode.
Finally, build a robot with a super-advanced AI created from all you know about programming languages.

When you have done everything on this list, you will have ascended to programming language godhood.
Enjoy your throne next to the Random Number God Arenji.
Pages: 1 2 3 [4]