Welcome, Guest. Please login or register.

Author Topic: creating a text adventure, but with what programming language?  (Read 16652 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #14 from previous page: January 05, 2011, 10:50:29 AM »
@nik

Can you make your signature a bit bigger? I can't read it from street level... :lol:
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #15 on: January 05, 2011, 11:33:26 AM »
Quote from: ejstans;603991
But Karlos, any Turing complete language can express another language. The original C++ compiler compiled into C code and yet it brought something new to the table, no? Hrm, right, there are plenty of C coders who disagree with that ("C can do OO just swell thank you, but OO is shite anyways")

Expressing C++ generics in C, without some hideous macro orgy (let's not forget, the preprocessor is not actually C) might test that theory in practise.

Anyway, my point was that JS already supports OO and Reflection, which are two paradigms that Objective-C supports as a language that you might want to exploit. As per your suggestion, "C with classes" brought a convenient OO syntax to C with support for classes, hierarchy and polymorphism. You can of course write object-oriented code in C, but the language syntax does not strictly support it or make it particularly convenient to write. The same claim can't be made for Obj-J; it doesn't bring any new paradigms to JS or make the existing ones easier to use (that could be subjective of course, some people don't like the prototype OO implementation of JS. Personally I'm sort of ambivalent about it). But you certainly don't need to do it to make host APIs easier to interface with.

Quote
Well then, let's try a different example! In the end, compiled languages usually come out in the form of cryptic assembly code, and certainly everyone can agree that being able to write in a high-level language is a welcome improvm....Oh right...This is the Amiga forum wherein this very thread there is talk of writing a text adventure in assembly...

Hmmm, what was my point again? :lol:

That pancakes rock :D
« Last Edit: January 05, 2011, 11:40:48 AM by Karlos »
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #16 on: January 05, 2011, 02:24:03 PM »
Quote from: bloodline;604027
What Objective-J gives you is the NeXTStep frameworks (called cappuccino), and all the benefits which that brings for use in your web browser. It is rather easy to rapidly build an app using it, that runs in your browser, I think that's cool :)


I don't doubt it, it's just that it is completely unnecessary to change JS syntax in any way to introduce access to this API or any other.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #17 on: January 06, 2011, 10:08:42 AM »
Quote from: bloodline;604045
Imagine you are a NeXTStep coder, or an iPhone coder or even an MacOSX coder...


First up against the wall come the revolution.

Quote
Now you want to write an app that anyone with a JavaScript browser can use... Bingo! Obj-j is here! All the classes you are used to, with the correct syntax


Objective-C syntax is never correct except when it is vanilla C ;)

Quote
and all those little features you've grown to love, all there at your fingertips ready to allow you full expression... Or you could use it as a teaching tool, a gateway from JavaScript to Obj-C as I plan to :)


An evil plan. I almost approve :lol:
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #18 on: January 06, 2011, 10:44:28 AM »
Anyhow, back to the original question: Pick any well-supported language that is good with strings and data collections.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: creating a text adventure, but with what programming language?
« Reply #19 on: January 06, 2011, 01:29:44 PM »
Quote from: bloodline;604301
Hmmm, so I'll put you down as "undecided" about joining the resistance then ;)

ROFL! Wait, resistance against what? Decent language syntax?

Quote
Well, I'm going to argue with you about that, as I've said before, it took a while for the syntax to "click" with me too :)

There's no need, I "get" the syntax used in Objective-C, I have even written Objective-C and I even appreciate some of the design aims and features of the language. I just find it horrible to look at and to write. It's as if Smalltalk was experimenting with a teleporter device and after a few successful trials, on it's first attempt at teleporting itself from one pod to the other, noticed a copy of the K&R bible had fallen in with it but couldn't get out in time...

Any promotion of Obj-J to me is like witnessing the metastasis of this hideous abomination into other language areas. Don't expect me to like it :D
int p; // A