This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
which programming language's syntax do you like the best?
Started by tesla1889, 01 March 2013 - 03:08 AMPosted 01 March 2013 - 04:08 AM
which programming language's syntax do you feel is the most useful and that you like the best?
Posted 01 March 2013 - 04:14 AM
Brainfuck!
Jk, C++ of course.
Jk, C++ of course.
Posted 01 March 2013 - 04:14 AM
For simplicity, Lua is the best IMO. I can't stand the indenting system in Python.
For extensibility, PHP by far. It basically supports any way of typing something.
Personal favourite, Objective-C or C++.
For extensibility, PHP by far. It basically supports any way of typing something.
Personal favourite, Objective-C or C++.
Posted 01 March 2013 - 05:56 AM
I prefer Java; I just wish it allowed code snippets that weren't contained in classes.
Posted 01 March 2013 - 08:19 AM
I prefer Java; I just wish it allowed code snippets that weren't contained in classes.
C++ does :D/>
Posted 01 March 2013 - 08:27 AM
Lua, of course, simple.
Java I dislike, because the type of variables add much complicated things.
Java I dislike, because the type of variables add much complicated things.
Posted 01 March 2013 - 08:41 AM
Lua and C# both have sexy syntaxes.
Posted 01 March 2013 - 09:08 AM
Lua, of course, simple.
Java I dislike, because the type of variables add much complicated things.
But at the same time, it allows for the programme to be much faster, as you are able to edit the memory. Oh lol, you were talking about Java. My fault :P/>
Posted 01 March 2013 - 11:01 AM
Moonscript's syntax is nice, though python has a lot of odd quirks about it. C, C++, C#, and Java all annoy me to an extent. with how a lot of the syntax is based around symbols instead of words, and Visual Basic is just god damn horrible.
And yeah, lua is cool too, but I always get that "why can I not do this" feeling every now and again.
And yeah, lua is cool too, but I always get that "why can I not do this" feeling every now and again.
Posted 01 March 2013 - 12:26 PM
java has a nice structured syntax
Posted 01 March 2013 - 07:46 PM
Objective-C.
1. It's based on C.
2. It was made by people on acid in the 80's
3. [Square Brackets]! :D/> :D/>
1. It's based on C.
2. It was made by people on acid in the 80's
3. [Square Brackets]! :D/> :D/>
Posted 01 March 2013 - 07:59 PM
Obj-C ftw! Or Java… nah Obj-C FTW! C++ is alright too, as long as you remember 'if you have a problem, you have missed a * or & somewhere'…
Woo go square brackets!3. [Square Brackets]! :D/> :D/>
Posted 02 March 2013 - 04:46 AM
I prefer Lua's syntax. It is the simplest.
Posted 02 March 2013 - 09:29 AM
Lua is nice and simple, perfect for ComputerCraft. But not more than that. Java sucks, C# & C++ too. I kind of like Game Maker Language but you can't really call that a language I guess. I'd say HTML as my favorite language xD
Posted 02 March 2013 - 09:42 AM
Lua is nice and simple, perfect for ComputerCraft. But not more than that. Java sucks, C# & C++ too. I kind of like Game Maker Language but you can't really call that a language I guess. I'd say HTML as my favorite language xD
HTML isn't really a programming language, it's just a text markup language :D/>
It's based off of XML.
Posted 02 March 2013 - 02:36 PM
java and c++
from there it just goes down hill
from there it just goes down hill
Posted 02 March 2013 - 02:40 PM
java and c++
from there it just goes down hill
agreed. i do like the ability to redefine objects in Lua though.
Posted 03 March 2013 - 12:12 AM
The syntax I like the best is the language I need to use at the time. I like Lua's simplicity and I like C-like syntax.
Lua is incredibly versatile and can do pretty much anything you want to do.
Squirrel looks kinda nice though.
Lua is incredibly versatile and can do pretty much anything you want to do.
Squirrel looks kinda nice though.
Posted 03 March 2013 - 06:22 AM
i want to learn squirrel because L4D2 and portal 2 were programmed in that languageThe syntax I like the best is the language I need to use at the time. I like Lua's simplicity and I like C-like syntax.
Lua is incredibly versatile and can do pretty much anything you want to do.
Squirrel looks kinda nice though.
Posted 03 March 2013 - 10:05 PM
Brainfuck!
–snip–
sorry for procrastinating.
i knew as i was posting this that someone would say that.
i actually have programmed in brainfuck before, and i must say, it is an eyeopening experience
Posted 04 March 2013 - 12:09 AM
I like a lot of languages:
Top List:
Top List:
- VisualBasic And LUA
- JS And HTML(I know they are not real languages but I like them)
- JAVA
- PHP
Posted 04 March 2013 - 01:00 AM
JS is a programming language (and a scripting language), HTML isn't.
I like C#, it has a nice balance between static typing and not having to write down ReallyReallyLongObjectOrientedTypeIdentifiers (just put "var", problem solved) while still allowing you to do it if you want to.
(Most of) the .NET framework is pretty neat and logical, and it seems a lot less cluttered than Java's standard library - the Kingdom of Nouns problem is still there, but there are considerably fewer NeatThingDecoratorStrategyFactoryBuilderFactoryStrategyAdornerFactoryFactoryFactory classes and you rarely need to instantiate 3-4 different objects for the simplest operations.*
*coughjavacough*
And, of course, Lua. It's a bitch to debug compared to most other languages. Its lack of simple syntactical sugar like i++, n+=3 and so on is actually pretty annoying. Despite all of that, it's a joy to program in sometimes. :D/>
I like C#, it has a nice balance between static typing and not having to write down ReallyReallyLongObjectOrientedTypeIdentifiers (just put "var", problem solved) while still allowing you to do it if you want to.
(Most of) the .NET framework is pretty neat and logical, and it seems a lot less cluttered than Java's standard library - the Kingdom of Nouns problem is still there, but there are considerably fewer NeatThingDecoratorStrategyFactoryBuilderFactoryStrategyAdornerFactoryFactoryFactory classes and you rarely need to instantiate 3-4 different objects for the simplest operations.*
*coughjavacough*
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = dBuilder.parse(derp);
And, of course, Lua. It's a bitch to debug compared to most other languages. Its lack of simple syntactical sugar like i++, n+=3 and so on is actually pretty annoying. Despite all of that, it's a joy to program in sometimes. :D/>
Posted 04 March 2013 - 06:28 PM
I like a lot of languages:
Top List:
- VisualBasic And LUA
- JS And HTML(I know they are not real languages but I like them)
- JAVA
- PHP
you like… *shudders* …VisualBasic???
–snip–
NeatThingDecoratorStrategyFactoryBuilderFactoryStrategyAdornerFactoryFactoryFactory classes
–snip–
that pretty much sums up everything wrong with Java and C++
Posted 04 March 2013 - 06:53 PM
I would pretty much have to agree with you completely. C# has a nice balance and Lua is good for simplicity.JS is a programming language (and a scripting language), HTML isn't.
I like C#, it has a nice balance between static typing and not having to write down ReallyReallyLongObjectOrientedTypeIdentifiers (just put "var", problem solved) while still allowing you to do it if you want to.
(Most of) the .NET framework is pretty neat and logical, and it seems a lot less cluttered than Java's standard library - the Kingdom of Nouns problem is still there, but there are considerably fewer NeatThingDecoratorStrategyFactoryBuilderFactoryStrategyAdornerFactoryFactoryFactory classes and you rarely need to instantiate 3-4 different objects for the simplest operations.*
*coughjavacough*DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(derp);
And, of course, Lua. It's a bitch to debug compared to most other languages. Its lack of simple syntactical sugar like i++, n+=3 and so on is actually pretty annoying. Despite all of that, it's a joy to program in sometimes. :D/>
Posted 04 March 2013 - 07:08 PM
–snip snip––snip–
NeatThingDecoratorStrategyFactoryBuilderFactoryStrategyAdornerFactoryFactoryFactory classes
–snip–
that pretty much sums up everything wrong with Java and C++
No, Objective-C supremacy!
I mean, who doesn't want that to become:
[[[[[[[[[[[NSNeat Thing]Decorator] Strategy] Factory] Builder] Factory] Strategy] Adorner] Factory] Factory] Factory]
Posted 04 March 2013 - 07:12 PM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
Posted 04 March 2013 - 07:22 PM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
I mean WTF?
They must have been drunk while making that…
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
Posted 04 March 2013 - 07:26 PM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/>/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
I mean WTF?
They must have been drunk while making that…HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
I'm actually considering making a LOLCode interpreter in CC.
Posted 04 March 2013 - 07:30 PM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/>/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
I mean WTF?
They must have been drunk while making that…HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
I'm actually considering making a LOLCode interpreter in CC.
Oh, mark my words, I will hunt you down and kill you. Even if you do live in a fictional town.
Just a side note, how do you go about making an interpreter, do you have an example/tutorial?
Posted 04 March 2013 - 07:33 PM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/>/>/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
I mean WTF?
They must have been drunk while making that…HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
I'm actually considering making a LOLCode interpreter in CC.
Oh, mark my words, I will hunt you down and kill you. Even if you do live in a fictional town.
Just a side note, how do you go about making an interpreter, do you have an example/tutorial?
To be honest, I've never tried, but here's an outline in pseudo code.
Iterate through the lines of a file.
Use the string API to search each line for lolcode statements.
Separate the statement and arguments.
Call a Lua function based on the statement and arguments.
Posted 04 March 2013 - 07:52 PM
So how about that VisualBasic ;)/>
Posted 04 March 2013 - 07:54 PM
Visual Basic has the worst syntax.So how about that VisualBasic ;)/>
Posted 04 March 2013 - 07:58 PM
It does. I think that the creator of VisualBasic was a troll personally :P/>Visual Basic has the worst syntax.So how about that VisualBasic ;)/>
Posted 04 March 2013 - 08:00 PM
I had a damn script kiddie tell me VB was better than C#. I sat there silently.It does. I think that the creator of VisualBasic was a troll personally :P/>Visual Basic has the worst syntax.So how about that VisualBasic ;)/>
Posted 04 March 2013 - 08:05 PM
The nerve of people :D/> VB is way too limited for my liking.I had a damn script kiddie tell me VB was better than C#. I sat there silently.It does. I think that the creator of VisualBasic was a troll personally :P/>Visual Basic has the worst syntax.So how about that VisualBasic ;)/>
Posted 04 March 2013 - 08:13 PM
I did a bit of java programming and now I hate Java
:D/>
:D/>
Posted 04 March 2013 - 08:22 PM
I did a bit of java programming and now I hate Java
:D/>
Everyone hates Java. Especially Apple for some reason.
Posted 04 March 2013 - 08:32 PM
nonono. the worst syntax is not VB. i wish it were, but it is not.
bancstar is waaaaaaaay on up there
i dont hate java
bancstar is waaaaaaaay on up there
–snip–
Everyone hates Java. Especially Apple for some reason.
i dont hate java
Posted 04 March 2013 - 08:32 PM
This is true… Although LOLCode is bad, bancstar is much, much worsenonono. the worst syntax is not VB. i wish it were, but it is not.
bancstar is waaaaaaaay on up there
Posted 04 March 2013 - 08:45 PM
nonono. the worst syntax is not VB. i wish it were, but it is not.
bancstar is waaaaaaaay on up there–snip–
Everyone hates Java. Especially Apple for some reason.
i dont hate java
In time, you will.
The real reason Notch left Minecraft is because he realised he just made a game in the worlds (2nd) worst programming language. True story, bro.
Posted 04 March 2013 - 08:48 PM
Notch left Minecraft to work on bigger and better things. Do not supply users with false or misleading information. Wrong story, "bro".nonono. the worst syntax is not VB. i wish it were, but it is not.
bancstar is waaaaaaaay on up there–snip–
Everyone hates Java. Especially Apple for some reason.
i dont hate java
In time, you will.
The real reason Notch left Minecraft is because he realised he just made a game in the worlds (2nd) worst programming language. True story, bro.
Technically he didn't leave. He "retired" from Mojang's Developement team :P/>
Posted 04 March 2013 - 08:49 PM
i doubt it. i like portability. and JVM aint half bad.–snip–
In time, you will.
–snip–
the massive amounts of files can be a pain, but whatevs
Posted 04 March 2013 - 08:51 PM
So how about that Objective-C ;)/>
Posted 04 March 2013 - 10:43 PM
So how about that Objective-C ;)/>
@implementation Controller
- (void)awakeFromNib {
GravityScore *grav = [[GravityScore alloc] initWithUsername:@"GravityScore"];
[grav setObjCLoveLevel:9001];
[grav setDelegate:self];
}
- (BOOL)grav:(GravityScore *)grav requestAuthorisationToLoveObjC:(Auth *)auth {
return YES;
// :D/>
}
@end
Posted 04 March 2013 - 10:51 PM
So how about that Objective-C ;)/>@implementation Controller - (void)awakeFromNib { GravityScore *grav = [[GravityScore alloc] initWithUsername:@"GravityScore"]; [grav setObjCLoveLevel:9001]; [grav setDelegate:self]; } - (BOOL)grav:(GravityScore *)grav requestAuthorisationToLoveObjC:(Auth *)auth { return YES; // :D/>/> } @end
Pre' much.
Posted 04 March 2013 - 10:52 PM
Notch left Minecraft to work on bigger and better things. Do not supply users with false or misleading information. Wrong story, "bro".nonono. the worst syntax is not VB. i wish it were, but it is not.
bancstar is waaaaaaaay on up there–snip–
Everyone hates Java. Especially Apple for some reason.
i dont hate java
In time, you will.
The real reason Notch left Minecraft is because he realised he just made a game in the worlds (2nd) worst programming language. True story, bro.
Technically he didn't leave. He "retired" from Mojang's Developement team :P/>
Twas a joke…
Posted 05 March 2013 - 12:29 AM
Lua,HTML,PHP,SQL
Posted 05 March 2013 - 04:17 AM
Everyone has their own personal opinions on Java; let's stop fighting about it because:
1. The moderators will get involved.
2. It doesn't matter.
1. The moderators will get involved.
2. It doesn't matter.
Posted 05 March 2013 - 04:59 AM
Let's just say everyone has his or her preferences when it comes to… well, yeah… everything. Just stop arguing about which language is better; a language isn't necessarily bad if you don't like it.
I am fully aware HTML is not a programming language; that's exactly why I said it was my favorite :P/>
Lua is nice and simple, perfect for ComputerCraft. But not more than that. Java sucks, C# & C++ too. I kind of like Game Maker Language but you can't really call that a language I guess. I'd say HTML as my favorite language xD
HTML isn't really a programming language, it's just a text markup language :D/>
It's based off of XML.
I am fully aware HTML is not a programming language; that's exactly why I said it was my favorite :P/>
Posted 05 March 2013 - 08:38 AM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
Fanboy level: OVER 9000!
Posted 05 March 2013 - 09:17 AM
So how about that YAML? Pretty snazzy :P/> (Not really even a language)
Remember kids, YAML Ain't Markup Language!
Remember kids, YAML Ain't Markup Language!
God let your soul rest in peace….It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
Fanboy level: OVER 9000!
Posted 05 March 2013 - 09:42 AM
So how about that YAML? Pretty snazzy :P/> (Not really even a language)
Remember kids, YAML Ain't Markup Language!God let your soul rest in peace….It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
Fanboy level: OVER 9000!
:P/>
Posted 08 March 2013 - 03:07 AM
I wouldn't say I "like" VB, but I've done a lot of very useful work in it and it's not as bad as I used to think it was. It's pretty easy to get a job done in it, and the main reason I use it is because VBA has superb Excel integration. I can do wonderful things with spreadsheets in a VBA program, so I'm prepared to forgive the minor shortrcomings of the language for that reason alone.The nerve of people :D/> VB is way too limited for my liking.I had a damn script kiddie tell me VB was better than C#. I sat there silently.It does. I think that the creator of VisualBasic was a troll personally :P/>Visual Basic has the worst syntax.So how about that VisualBasic ;)/>
Posted 08 March 2013 - 06:41 AM
I'm going to say the neutral thing and go with Python.
I don't like Objective-C (especially), or Java, or C#.
No end statement! :D/>
I don't like Objective-C (especially), or Java, or C#.
def pythonIsAwesome():
if pythonIsAwesome == true:
print "Python is awesome!"
No end statement! :D/>
Posted 08 March 2013 - 07:11 AM
I like C# the best. It's a nice balance between the word-based languages like lua and the complexity of C++.
It has first class functions in the form of delegates; it can do functional programming on top of OO (by using lambda expressions); despite popular theory it does have pointers; it emphasises type safety; it's not as strict as C++; it has a really nice gaming library (XNA); it was used to make Fez and Magicka; It can interface with DirectX; it handles errors really well; it allows you to create object-like constructs (structs) on the stack instead of the heap to boost performance;
I'll stop there or I'll be here all day.
As for other major languages, I'd like to learn a bit more C and C++. Generally I don't get on with C++ because of compile times and it's dependency on declaring functions before they are used (most modern languages aren't dependant on the order functions are declared, they can figure it out themselves).
VB is bearable, but I'd like to avoid it if possible, it's never nice having a whitespace dependant language.
So far lua is my favourite scripting language, but I'd like to learn perl and squirrel.
I can live with javascript, but I don't like it that much, it's fiddly.
Now for my absolute hates:
Python is irritating.
GML is an abomination.
Java's just… java (bleh)
(me and Java do not get on, hence I've never written any peripherals)
It has first class functions in the form of delegates; it can do functional programming on top of OO (by using lambda expressions); despite popular theory it does have pointers; it emphasises type safety; it's not as strict as C++; it has a really nice gaming library (XNA); it was used to make Fez and Magicka; It can interface with DirectX; it handles errors really well; it allows you to create object-like constructs (structs) on the stack instead of the heap to boost performance;
I'll stop there or I'll be here all day.
As for other major languages, I'd like to learn a bit more C and C++. Generally I don't get on with C++ because of compile times and it's dependency on declaring functions before they are used (most modern languages aren't dependant on the order functions are declared, they can figure it out themselves).
VB is bearable, but I'd like to avoid it if possible, it's never nice having a whitespace dependant language.
So far lua is my favourite scripting language, but I'd like to learn perl and squirrel.
I can live with javascript, but I don't like it that much, it's fiddly.
Now for my absolute hates:
Python is irritating.
GML is an abomination.
Java's just… java (bleh)
(me and Java do not get on, hence I've never written any peripherals)
Posted 08 March 2013 - 07:29 AM
It is quite obvious that LOLCode has the sexiest/best syntax (*cough cough* Not it doesn't)
:wacko:/>/> My OCD wants to kill me for seeing that… Again, if its made by Apple, it looks shiny.
I mean WTF?
They must have been drunk while making that…HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
I'm actually considering making a LOLCode interpreter in CC.
I want to back this project so much lol
Posted 08 March 2013 - 10:44 PM
Perl 6 is looking like a totally awesome language.
Posted 09 March 2013 - 01:52 AM
[media]http://www.youtube.com/watch?v=1S1fISh-pag[/media]
Posted 12 March 2013 - 12:47 PM
I Java and lua the most, lua is easy and fun for Cc of course and Java challenges me.
I also am learning Visual Basic, it seems you can do some cool stuff with it, but it doesnt really attract me.
Later on I want to dive in PHP and CSS and then HTML wich is no programming language. Also C languages seems very interesting
I also am learning Visual Basic, it seems you can do some cool stuff with it, but it doesnt really attract me.
Later on I want to dive in PHP and CSS and then HTML wich is no programming language. Also C languages seems very interesting
Posted 12 March 2013 - 03:10 PM
I'd say English.
Jokes.
I guess it would be PHP and Lua.
Jokes.
I guess it would be PHP and Lua.
Posted 13 March 2013 - 01:00 AM
I Java and lua the most, lua is easy and fun for Cc of course and Java challenges me.
I also am learning Visual Basic, it seems you can do some cool stuff with it, but it doesnt really attract me.
Later on I want to dive in PHP and CSS and then HTML wich is no programming language. Also C languages seems very interesting
You should try C#, it does everything VB does, but it has it's own game engine (called XNA) and it's more similar to C and Java.
Posted 13 March 2013 - 01:02 AM
They are going to stop developing XNA. But Unity 3D is really nice. Supports JavaScript, C# and Boo.
Posted 13 March 2013 - 02:35 AM
I'm going to say the neutral thing and go with Python.
I don't like Objective-C (especially), or Java, or C#.def pythonIsAwesome(): if pythonIsAwesome == true: print "Python is awesome!"
No end statement! :D/>
You realise that you are comparing a function with a boolean, right?
Posted 13 March 2013 - 05:40 AM
Eh. I've always heard about and experienced some bad (usually performance related) things about Unity.They are going to stop developing XNA. But Unity 3D is really nice. Supports JavaScript, C# and Boo.
Posted 18 June 2013 - 05:13 PM
Python
C
(Maybe javascript?)
C
(Maybe javascript?)
Posted 18 June 2013 - 05:17 PM
Lua. Lua is so easy yet so efficient.
Posted 18 June 2013 - 06:18 PM
malbolge… … … I hate it so much! <:)/>
My favorite ones are:
lua, CSS (so simple :3), PHP(so logical :3)
My favorite ones are:
lua, CSS (so simple :3), PHP(so logical :3)
Posted 18 June 2013 - 09:30 PM
Lua!
I hate any language that is object oriented!
I hate any language that is object oriented!
Posted 19 June 2013 - 06:30 AM
I LOVE object-orientated! Why do you hate it?
My favorite is Lua because of its easiness and java.
My favorite is Lua because of its easiness and java.
Posted 19 June 2013 - 07:23 AM
Lua, C++, Java, C and QBasic(as my first language)
Why does Obj-C look so ugly to my eyes?
Why does Obj-C look so ugly to my eyes?
Posted 19 June 2013 - 12:18 PM
Lua can be OOP too….Lua!
I hate any language that is object oriented!
I prefer Java :P/>
Posted 20 June 2013 - 05:55 AM
Why has nobody said BrainFuck? Did I write that VM for nothing!!??
You obviously haven't looked under the hood lol
As far as VMs go, JLua is one of the most verbose, resource wasting horrors I've ever seen.
It just is ugly, no two ways about it. I don't think I've ever met someone who actually uses it.
I concur. Probably why Notch likes it lol
Malbolge is designed to be horrifying.
Also, CSS isn't a programming language, it's declarative, not procedural.
Lua. Lua is so easy yet so efficient.
You obviously haven't looked under the hood lol
As far as VMs go, JLua is one of the most verbose, resource wasting horrors I've ever seen.
Why does Obj-C look so ugly to my eyes?
It just is ugly, no two ways about it. I don't think I've ever met someone who actually uses it.
Eh. I've always heard about and experienced some bad (usually performance related) things about Unity.They are going to stop developing XNA. But Unity 3D is really nice. Supports JavaScript, C# and Boo.
I concur. Probably why Notch likes it lol
malbolge… … … I hate it so much! < :)/>
My favorite ones are:
lua, CSS (so simple :3), PHP(so logical :3)
Malbolge is designed to be horrifying.
Also, CSS isn't a programming language, it's declarative, not procedural.
Posted 20 June 2013 - 05:59 AM
Use it. Love it. Prefer it. Square brackets ftw!It just is ugly, no two ways about it. I don't think I've ever met someone who actually uses it.Why does Obj-C look so ugly to my eyes?
Posted 20 June 2013 - 06:03 AM
Use it. Love it. Prefer it. Square brackets ftw!It just is ugly, no two ways about it. I don't think I've ever met someone who actually uses it.Why does Obj-C look so ugly to my eyes?
Yep, because this certainly isn't convoluted:
-(BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile;
Posted 20 June 2013 - 06:24 AM
Not at all convoluted to me, quite nice and easy to read. And actually when reading back through code it makes it much nicer to read and understand what a particular parameter is for (assuming you use good naming conventions of course).Yep, because this certainly isn't convoluted:-(BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile;
Posted 20 June 2013 - 06:56 AM
Not that I have experiece with that many languages, but I realy like Pythons syntax.
Though it tends to get hate for its 'strict indentation' I find it awesome :>
You can even kill it completely!
http://cruor.openshell.no/paste/level%20to%20xp%20-%20Golfed2.py
I kinda want to learn perl though :o/>
Though it tends to get hate for its 'strict indentation' I find it awesome :>
You can even kill it completely!
http://cruor.openshell.no/paste/level%20to%20xp%20-%20Golfed2.py
I kinda want to learn perl though :o/>
Posted 20 June 2013 - 07:01 AM
Thats the main reason I don't like it. Had to do it for a whole semester, was painful.Though it tends to get hate for its 'strict indentation' I find it awesome :>
Posted 20 June 2013 - 08:12 PM
It feels kind of modern to me.
Posted 21 June 2013 - 05:25 PM
Java's cool because of how customizable and flexible it is (IMO), with extensions and classes in general but Lua is awesome because of how simple it is and how little code is required to do stuff…
Posted 21 June 2013 - 08:08 PM
why? OOP was one of the best programming concepts i can think of!!!Lua!
I hate any language that is object oriented!
Posted 21 June 2013 - 08:21 PM
Java's cool because of how customizable and flexible it is (IMO), with extensions and classes in general but Lua is awesome because of how simple it is and how little code is required to do stuff…
The whole extension and class thing isn't a Java thing, it's Object Orientation in general.
Posted 21 June 2013 - 08:21 PM
He probably hates it because he doesn't understand it.why? OOP was one of the best programming concepts i can think of!!!Lua!
I hate any language that is object oriented!
Posted 01 January 2014 - 06:38 PM
Well, Lua and GML (Game Maker Language) are both VERY simple, and easy to use, but for me, the most visually appealing is GML. :P/> Also, if GML is not a language, well, i'd have to go with Java then.
Posted 02 January 2014 - 05:22 AM
C++ is one of the most annoying IMHO
i love C and FORTH syntax.
actually, if Lua used bracket notation instead of 'end's and had a switch statement, it'd be my favorite.
cout << "<- wtf kind of syntax is this???\n";
i love C and FORTH syntax.
actually, if Lua used bracket notation instead of 'end's and had a switch statement, it'd be my favorite.
Posted 02 January 2014 - 06:57 AM
xD i had the same kind of response when i started learning C++ :P/>C++ is one of the most annoying IMHOcout << "<- wtf kind of syntax is this???\n";
i love C and FORTH syntax.
actually, if Lua used bracket notation instead of 'end's and had a switch statement, it'd be my favorite.
(Seriously? std::cout? What "intelligent" being thought of that? ;)/> )
Posted 02 January 2014 - 07:25 AM
You want object orientated C but hate the C++ syntax (which is a logical thing to do), Objective-C. One neat thing is that Objective C is a strict superset of C, which is to say that C is also valid Objective-C, the same does not apply to C being valid C++.
I personally love C syntax and various derivitives (java or C# or whatever). Python is sweet, lua I dont like so much, actually as a whole I really dislike lua.
I personally love C syntax and various derivitives (java or C# or whatever). Python is sweet, lua I dont like so much, actually as a whole I really dislike lua.
Posted 02 January 2014 - 07:58 AM
If you dislike Lua, then why are you here? :D/> Lua's the best!
Posted 02 January 2014 - 02:07 PM
Because I don't have any other choice when it comes to computers in minecraft. Computers in minecraft wins over my dislike of lua.If you dislike Lua, then why are you here? :D/> Lua's the best!
Posted 02 January 2014 - 09:57 PM
Clojure's syntax is really nice.
Posted 02 January 2014 - 11:52 PM
You want object orientated C but hate the C++ syntax (which is a logical thing to do), Objective-C. One neat thing is that Objective C is a strict superset of C, which is to say that C is also valid Objective-C, the same does not apply to C being valid C++.
if there's a language that bothers me almost as much as C++, it's Objective-C, for the same reason. wtf is up with all the plus and minus signs?
Posted 03 January 2014 - 12:20 AM
Which ones in particular?if there's a language that bothers me almost as much as C++, it's Objective-C, for the same reason. wtf is up with all the plus and minus signs?
var++ // post-increment, is in quite a lot of languages, so clearly you don't mean this
++var // pre-increment, in quite a lot of languages, so clearly you don't mean this
var-- // post-decrement, ditto
--var // pre-decrement, ditto
+(void) methodName; // class method, can be accessed at anytime by referencing the class (think 'static' from Java)
-(void) methodName; // instance method, can be accessed only through an instance of the class i.e. an object
Those are the only ones that come to my head, so if its something else, please do tell.
Edited on 02 January 2014 - 11:34 PM
Posted 03 January 2014 - 01:05 AM
if there's a language that bothers me almost as much as C++, it's Objective-C, for the same reason. wtf is up with all the plus and minus signs?You want object orientated C but hate the C++ syntax (which is a logical thing to do), Objective-C. One neat thing is that Objective C is a strict superset of C, which is to say that C is also valid Objective-C, the same does not apply to C being valid C++.
Objective-C can take a while to get your head around, especially the concept of Object Oriented programming, but once you do everything becomes much easier.
One of the things that I like the most about Objective-C is the fact that (in most cases) you can a function as a variable (well, it appears that way). This allows you to things such as change the result when setting and getting the value.
Going on from what theoriginalbit said, the + and - did confuse me a bit at first. I'll give an example.
//An example of the useage of the + symbol
//The method in Human.h would look like this:
+(NSString *)binomialName;
//The method implimentation in Human.m would something like this:
+(NSString *)binomialName{
return @"Homo sapien";
}
//You could then use that method as so, note that this is calling it directly on the class, not an instance:
NSLog(@"Binomial Name: %@", [Human binomialName]);
//Which would output "Homo sapien"
//An example of the useage of the - symbol
//You can do this without having to write your own getters and settings, I've just done it for example
@property (assign) NSString *firstName;
//The getter in Human.h would look like this:
-(NSString *)firstName;
//The setter in Human.h would look like this:
-(void)setFirstName:(NSString *)firstName;
//The getter in Human.m would something like this:
-(NSString *)firstName{
return self.firstName;
}
//The setter in Human.m would something like this:
-(void)setFirstName:(NSString *)firstName{
self.firstName = firstName;
}
//You could then use that method as so, note that this is calling it directly on the class, not an instance:
Human *johnSmith = [[Human alloc] initWithFirstName: @"John"]];
NSLog(@"First Name: %@", [johnSmith firstName]);
//Which would output "John"
There's bound to be a typo or two in there somewhere, but you get the idea.
Feel free to PM me if you'd like anymore help.
Edited on 03 January 2014 - 12:33 AM
Posted 03 January 2014 - 01:20 AM
One of the things that took the longest for me to get my head around is that you never invoke a method. You send a message to an object, it can either do something with that, for example invoke the method, or it can just completely, and without error, ignore the message.Objective-C can take a while to get your head around, especially the concept of Object Oriented programming, but once you do everything becomes much easier.
you can use Function/Method Pointers in most languages, especially those built on C, just in OO languages it is frowned upon as it breaks the design pattern.One of the things that I like the most about Objective-C is the fact that (in most cases) you can a function as a variable (well, it appears that way). This allows you to things such as change the result when setting and getting the value.
Edited on 03 January 2014 - 12:22 AM
Posted 03 January 2014 - 12:57 PM
I like Object-C the best, but ill have to go with Lua, just since i've spent so much time on it lately, and I like it's simplicity.
Posted 03 January 2014 - 08:38 PM
Bad example, teaching people the long way of getters/setters.Going on from what theoriginalbit said, the + and - did confuse me a bit at first. I'll give an example.
-code snip-
Code with better getter/setter
Human.h
@interface Human : NSObject
// Class methods
+ (NSString*) binomialName;
// Instance methods
- (NSString*) fullName;
// Instance variables (a.k.a ivar)
@property (nonatomic, retain) NSString* firstName;
@property (nonatomic, retain) NSString* lastName;
// NOTE: a method signature must be defined here if you want it accessible from outside the class/object.
// any method whose signature does not appear here can only be accessed from internally (think private from Java)
@end
Human.m
@implementation Human
@synthesize firstName, lastName; // generate the getters and setters for the ivars
+ (NSString*) binomialName {
return @"Homo sapien";
}
- (NSString*) fullName {
return [NSString stringWithFormat:@"%@, %@", lastName, firstName];
}
@end
Methods available on the class
init
binomialName
Methods available on the object
firstName // getter for firstName ivar
setFirstName // setter for firstName ivar
lastName // getter for lastName ivar
setLastName // setter for lastName ivar
fullName
Posted 03 January 2014 - 09:57 PM
Bad example, teaching people the long way of getters/setters.Going on from what theoriginalbit said, the + and - did confuse me a bit at first. I'll give an example.
-code snip-Code with better getter/setter
Human.h@interface Human : NSObject // Class methods + (NSString*) binomialName; // Instance methods - (NSString*) fullName; // Instance variables (a.k.a ivar) @property (nonatomic, retain) NSString* firstName; @property (nonatomic, retain) NSString* lastName; // NOTE: a method signature must be defined here if you want it accessible from outside the class/object. // any method whose signature does not appear here can only be accessed from internally (think private from Java) @end
Human.m@implementation Human @synthesize firstName, lastName; // generate the getters and setters for the ivars + (NSString*) binomialName { return @"Homo sapien"; } - (NSString*) fullName { return [NSString stringWithFormat:@"%@, %@", lastName, firstName]; } @end
Methods available on the classinit
binomialName
Methods available on the objectfirstName // getter for firstName ivar
setFirstName // setter for firstName ivar
lastName // getter for lastName ivar
setLastName // setter for lastName ivar
fullName
True, it was more to show the difference between the different types of methods and it was the only thing I could think of.
Posted 03 January 2014 - 10:32 PM
C-Like syntax seems meh to me. Obj-C is a step up, but still. Btw, oeed what you were saying about functions just being variables is in like all of the functional programming languages :P/>.
Inside Joke For BIT
Therefore Functional > OO :P/>Edited on 03 January 2014 - 09:32 PM
Posted 03 January 2014 - 10:41 PM
Well I came up with a way :P/>True, it was more to show the difference between the different types of methods and it was the only thing I could think of.
Now read my reply to him, Functional != OO. OO is not better than Functional, nor is Functional better than OO. They each have appropriate times to be used, where they have their strengths.Btw, oeed what you were saying about functions just being variables is in like all of the functional programming languages :P/>.Inside Joke For BIT
Therefore Functional > OO :P/>
Edited on 03 January 2014 - 09:46 PM
Posted 03 January 2014 - 10:49 PM
For the record I was just doing it because he requested entertainment lol.Well I came up with a way :P/>True, it was more to show the difference between the different types of methods and it was the only thing I could think of.Now read my reply to him, Functional != OO. OO is not better than Functional, nor is Functional better than OO. They each have appropriate times to be used, where they have their strengths.Btw, oeed what you were saying about functions just being variables is in like all of the functional programming languages :P/>.Inside Joke For BIT
Therefore Functional > OO :P/>
Posted 03 January 2014 - 10:55 PM
Brainfuck and P". Best there is.
edit: Cause I misspelt P"
edit: Cause I misspelt P"
Edited on 03 January 2014 - 09:55 PM
Posted 04 January 2014 - 03:38 AM
C-Like syntax seems meh to me. Obj-C is a step up, but still. Btw, oeed what you were saying about functions just being variables is in like all of the functional programming languages :P/>/&gt;/&gt;.Inside Joke For BIT
Therefore Functional &gt; OO :P/>/&gt;/&gt;
Well, in Objective-C at least you can't (not that I'm aware of) set a variable's value to a function. But in Objective-C doing something like this:
object.name = @"Hello";
Calls this:
[object setName: @"Hello"];
//Which would look like this in Lua:
object.setName("Hello")
Edited on 04 January 2014 - 02:38 AM
Posted 04 January 2014 - 06:56 AM
I haven't done any work in it, but Squirrel looks *very* nice. It appears to be… basically Lua, minus a few nonsensical quirks + proper OOP, exceptions and other things that generally make things easier.
Posted 04 January 2014 - 07:50 AM
Personally, I don't have a "favorite" language overall, but I do have favorite languages in different categories.
Simplicity - Lua
Cross-platform - Java
Joke - Visual Basic .NET
LISP-based - Logo
I still want to learn more about: Brainfuck, C, C++, C#, Objective-C, Perl, Python, Ruby, Squirrel.
I know basic syntax for a lot of these but not much else.
Simplicity - Lua
Cross-platform - Java
Joke - Visual Basic .NET
LISP-based - Logo
I still want to learn more about: Brainfuck, C, C++, C#, Objective-C, Perl, Python, Ruby, Squirrel.
I know basic syntax for a lot of these but not much else.
Posted 31 March 2014 - 08:08 PM
Definitely assembly. Just fell in love with it
Posted 31 March 2014 - 08:21 PM
Java, I really like it because I can do mods!!! ;)/>
Posted 31 March 2014 - 08:43 PM
Nercoing is not okay kids. Since we're past the looking glass now, my favorite is Lua and any 'C' based language. Though I really like all of them. :P/>Definitely assembly. Just fell in love with it
Posted 31 March 2014 - 09:35 PM
O.oDefinitely assembly. Just fell in love with it
You weren't drunk/high/mad whilst saying that were you?
Edited on 31 March 2014 - 07:36 PM
Posted 31 March 2014 - 10:35 PM
O.oDefinitely assembly. Just fell in love with it
You weren't drunk/high/mad whilst saying that were you?
xD
But the simple syntax and functions gives soooo much freedom
Edited on 31 March 2014 - 08:35 PM
Posted 01 April 2014 - 08:15 PM
Posted 01 April 2014 - 08:34 PM
Tbh, I quite like assembly. Direct hardware control, its surprisingly easy to write but make sure to comment and document everything or you will never be able to edit it again :P/>
Posted 03 April 2014 - 08:22 PM
For actual software, Java. For simple scripts and simple stuff, Lua.
Posted 06 April 2014 - 01:52 PM
I like lua, but Java is better for big projects. You can try to make things OOP in lua, but it won't be organized, and lua is simply not good in OOP.
Posted 15 April 2014 - 06:40 PM
Working on it :P/>You can try to make things OOP in lua, but it won't be organized, and lua is simply not good in OOP.
But, that is a good point - Lua is not really an OOP language, and most people fail to realize that it is up-to-par with speed in other languages. A reason for this is because of how minimalistic it is. If you want to unlock Lua's OOP and other things, prepare for a slightly lower execution time. I will still be working on my version of OOP implementation, however
On topic, my favorite langauge syntax is Lua, as it's the one that got me started. I'm not saying I like Lua as a language, it's still missing a lot of things, but the syntax is one I have come to like.
Posted 17 April 2014 - 05:25 PM
Purely from a syntax perspective.. Action Script 3 and C# are the best..
I mostly work with Java, PHP and JS.. i like C style syntax by far over basic style and very much dislike any language that uses white space as part of the syntax
I mostly work with Java, PHP and JS.. i like C style syntax by far over basic style and very much dislike any language that uses white space as part of the syntax
Edited on 17 April 2014 - 03:29 PM
Posted 17 April 2014 - 11:44 PM
Working on it :P/>
But, that is a good point - Lua is not really an OOP language, and most people fail to realize that it is up-to-par with speed in other languages. A reason for this is because of how minimalistic it is. If you want to unlock Lua's OOP and other things, prepare for a slightly lower execution time. I will still be working on my version of OOP implementation, however
On topic, my favorite langauge syntax is Lua, as it's the one that got me started. I'm not saying I like Lua as a language, it's still missing a lot of things, but the syntax is one I have come to like.
Part of the problem is Lua's compiler. The compiler is designed to compile quickly (so people can do things like command line calculators and REPL) but sacrifices code optimisation. It also does not support complex datatype construction, it just exposes arrays and tables as is when it could be doing magic behind the scenes to allow people to actually define classes and have them implemented via Lua's arrays, treating the arrays like how C/C++ uses blocks of allocated bytes for creating structs/classes.
On another note regarding Lua's speed, JLua is not as fast as Lua when taken as is, but I believe the JLua JIT compilation eventually makes the code run faster than Lua. There is however a C implementation of Lua that is JIT compiled, which is almost certainly faster still.
Just a few thoughts to mull over. When you know how Lua works under the hood it makes it easier to see where the OO potential lies.
and very much dislike any language that uses white space as part of the syntax
What about when whitespace is the syntax: [link]
Edited on 17 April 2014 - 09:45 PM
Posted 21 April 2014 - 02:53 AM
I like java and lua and z80 asm (ok asm does not really have a syntax but o well)
Ps brain $!&@ is good :)/>
Ps brain $!&@ is good :)/>
Posted 21 April 2014 - 02:58 AM
Posted 21 April 2014 - 05:22 PM
I like c#,js,uscript and Unreal engine's Kismet (yes its not really a programming language) Lua is ok but it could have a better way of oop than just *sigh* tables. Btw Lua can handle memory usage quite well, sadly i havent seen anyone here using collectgarbage() (dunno if it is possible here)
Posted 21 April 2014 - 09:02 PM
I like lua, but Java is better for big projects. You can try to make things OOP in lua, but it won't be organized, and lua is simply not good in OOP.
I totally agree :)/>
Posted 21 April 2014 - 10:13 PM
Python is my favorite language, not sure if it's my favorite syntax though (I haven't tried out very many languages).
And if you don't like python, just let me remind you,
you will never have another "end expected" or "<eof> expected" error ever again ;)/>
And if you don't like python, just let me remind you,
If 1 == 1:
print "Yeah!"
## Note the lack of an end
you will never have another "end expected" or "<eof> expected" error ever again ;)/>
Posted 21 April 2014 - 10:17 PM
But the indenting -_-/>
Posted 22 April 2014 - 12:44 PM
enforces readability. Actually thats something I'm unsure of myself, I religiously indent code as you should. I do like python, but I am not a huge fan of languages enforcing conventions as a part of the language itself.But the indenting -_-/>
Posted 22 April 2014 - 03:03 PM
But the indenting -_-/>
That just means you'll never have problems with newbs coming to you saying "I need help, it says I'm missing an end or something!" and all 800 lines are on the same indention. Also, if you already indent your code (which you should, it's a good practice) then it's not much of a transition. All you're doing is removing the "then" and "end" and adding a colon.
Edited on 22 April 2014 - 01:07 PM
Posted 22 April 2014 - 04:33 PM
Lua is by far my favorite scripting language. JavaScript OOP is just a headache. If JS did OOP the way Lua did, it would be awesome.
My favorite esoteric language is by far Funge. It's pretty close to Forth, which is on the list of languages that would be my favorite if I ever tried them, and it has (and often requires the use of ) self modifying code. I've been designing a funge corewars for a while, and it's almost playable.
I just saw Chef mentioned on this thread, it looks cool but it doesn't have self modifying code (as all good esoteric and real programming languages do).
I've been meaning to try LISP/Clojure/etc. for a while, it looks awesome.
I like C, but C++ is a headache. I took one look at Objective-C and decided I'd never willingly try it. I'd almost classify it as esoteric.
Java is too verbose. You need a million files to do the simplest things.
I'm really sorry, but assembly is and always will be the worlds best programming language. It's by far the fastest and the most powerful. Unfortunately, many are afraid of it because it's been corrupted so its easier for C compilers to generate it. Even I'm afraid of x86 assembly (although I'll probably learn it eventually). Only 4 general purpose registers??? Fortunately, there are still processors for which assembly is fun, such as the Parallax Propeller. All instructions are exactly 1 long, meaning that self modifying code is actually possible and even useful.
My favorite esoteric language is by far Funge. It's pretty close to Forth, which is on the list of languages that would be my favorite if I ever tried them, and it has (and often requires the use of ) self modifying code. I've been designing a funge corewars for a while, and it's almost playable.
I just saw Chef mentioned on this thread, it looks cool but it doesn't have self modifying code (as all good esoteric and real programming languages do).
I've been meaning to try LISP/Clojure/etc. for a while, it looks awesome.
I like C, but C++ is a headache. I took one look at Objective-C and decided I'd never willingly try it. I'd almost classify it as esoteric.
Java is too verbose. You need a million files to do the simplest things.
I'm really sorry, but assembly is and always will be the worlds best programming language. It's by far the fastest and the most powerful. Unfortunately, many are afraid of it because it's been corrupted so its easier for C compilers to generate it. Even I'm afraid of x86 assembly (although I'll probably learn it eventually). Only 4 general purpose registers??? Fortunately, there are still processors for which assembly is fun, such as the Parallax Propeller. All instructions are exactly 1 long, meaning that self modifying code is actually possible and even useful.
Posted 24 April 2014 - 07:46 PM
I like HTML, CSS and javascript… Lua is the easiest… i'm still trying to understand java and Obj-C(For app dev)
Posted 25 April 2014 - 10:51 AM
By which you mean Lua is not an object orientated language and OOP is only really made viable via the flexibility of tables whereas Javascript is a language with actual support for object orientated code and done in an entirely normal way?Lua is by far my favorite scripting language. JavaScript OOP is just a headache. If JS did OOP the way Lua did, it would be awesome.
You like C but hate C++ and Objective-C which again are languages with native OOP (of the 2 I prefer Objective C, C++ is just dirty, Objective-C is a strict superset of C, ie C code is still 100% valid in an Objective-C compiler, the same does not apply to C++). I see a pattern here :P/> I wouldn't classify Objective-C as estoric considering its heavy usage for OSX and iOS development.
I am yet to come across a platform where assembly has been corrupted for ease of C compilers. x86 for example stems all the way back to the Intel 8008 in 1972, the same year C even appeared let alone became popular. Assembly is meant to be the human representation of the machines instructions, higher level constructions are entirely ignored, you don't bend the machine to the compiler, you bend the compiler to the machine. Must say, Parallax Propeller is fun enough without assembly. Self modifying code is possible with multi word instructions btw. My first introduction to assembly was the DCPU-16 for 0x10c (note, introduction), I recall there being an exploit which was 2 lines of asm which when assembled was 4 or 5 bytes long, would send the CPU into an endless loop and over-write the entire contents of RAM via self modifying code, that was always fun… I was actually interested in making a DCPU16 with a prop and an external SRAM, use a few cogs for VGA and keyboard and memory controller and hopefully have 1 left over for actually interpreting the DCPU instructions, although now I am considering utilising my TM4C1294XL and slaving the propeller for graphics only.
Markups.I like HTML, CSS
Edited on 25 April 2014 - 08:52 AM
Posted 25 April 2014 - 03:38 PM
Wasnt this about the syntax?snip
Edited on 25 April 2014 - 01:39 PM
Posted 26 April 2014 - 12:25 AM
Python, Because its just cool
Posted 27 April 2014 - 01:49 AM
I'm working on the first real thing I've ever done in C++ now, and I'm beginning to fully comprehend what a complete mess it is. I probably am just having an extra bad experience, though, because I'm trying to put variable sized objects with TWO variable sized arrays that can't just be pointers to arrays using my own malloc (to allow garbage collection, the first array is pointers to other objects, the next is non-pointer data). I've got it figured out now, but it uses lots of type punning. I don't understand why C++ can't be a strict superset of C - random things that work in C don't work in C++, and it's really annoying. My gcc only does C98 because I still have osx10.6 and haven't put gentoo on my computer yet for lack of time, and I can't initialize a static global array of struct{function*,metadata}'s without manually assigning everything at runtime, which is extremely ugly (and the array is nowhere as big as it's going to be!).By which you mean Lua is not an object orientated language and OOP is only really made viable via the flexibility of tables whereas Javascript is a language with actual support for object orientated code and done in an entirely normal way?
You like C but hate C++ and Objective-C which again are languages with native OOP (of the 2 I prefer Objective C, C++ is just dirty, Objective-C is a strict superset of C, ie C code is still 100% valid in an Objective-C compiler, the same does not apply to C++). I see a pattern here :P/> I wouldn't classify Objective-C as estoric considering its heavy usage for OSX and iOS development.
I am yet to come across a platform where assembly has been corrupted for ease of C compilers. x86 for example stems all the way back to the Intel 8008 in 1972, the same year C even appeared let alone became popular. Assembly is meant to be the human representation of the machines instructions, higher level constructions are entirely ignored, you don't bend the machine to the compiler, you bend the compiler to the machine. Must say, Parallax Propeller is fun enough without assembly. Self modifying code is possible with multi word instructions btw. My first introduction to assembly was the DCPU-16 for 0x10c (note, introduction), I recall there being an exploit which was 2 lines of asm which when assembled was 4 or 5 bytes long, would send the CPU into an endless loop and over-write the entire contents of RAM via self modifying code, that was always fun… I was actually interested in making a DCPU16 with a prop and an external SRAM, use a few cogs for VGA and keyboard and memory controller and hopefully have 1 left over for actually interpreting the DCPU instructions, although now I am considering utilising my TM4C1294XL and slaving the propeller for graphics only.
The main reasons I don't like objective-C are because of the smalltalk syntax for method calls (what's wrong with object.method()?) and the + and -'s for static or normal methods. All those brackets drive me crazy. However, it might not be as bad as it seems - I might try it next time I write a program that needs OOP just to see what it's like, but that might not be for a while because I prefer not to use OOP if it's not necessary, like when I have mostly singletons and a few structs that need methods but can just be functions that take the struct* as their first parameter.
About your DCPU-16 (a processor I know almost nothing about besides it's from 0x10c) emulator, you could use two propellers, one master and one graphics slave. Or you could wait until the Propeller 2 comes out (which has been almost done for years now). It will have 16 cogs, 512K ram, and 100MIPS/cog. It'll be fast enough not to need 4 cogs just for hi-res vga and you'll have room in ram for things other than bitmaps or tilemaps, so you'll be able to use it for things other than a graphics slave.
About self modifying code, what exactly do you mean by needing "multi word instructions"? Is this on the propeller or the DCPU-16? All instructions on the propeller are exactly 1 word (or, rather, 1 long, because Parallax uses "word" to refer to shorts and not processor words). Self modifying code is just multiple instructions, not one big instruction. It looks like you haven't really done much with propeller assembly, you should most definitely try it. PASM is truly a beautiful thing. BTW, do you have a Parallax forums account? I'm happy to hear that other people on this forum besides me use the propeller.
EDIT:
Yes, but you'll be constantly plagued with errors from missing colons after ifs and whiles and such, to the point that you'll want to go back to using languages that require end's (or use SPIN for the Parallax Propeller, which uses indentation for blocks but doesn't need colons).Python is my favorite language, not sure if it's my favorite syntax though (I haven't tried out very many languages).
And if you don't like python, just let me remind you,If 1 == 1: print "Yeah!" ## Note the lack of an end
you will never have another "end expected" or "<eof> expected" error ever again ;)/>
Edited on 26 April 2014 - 11:54 PM
Posted 01 May 2014 - 05:14 AM
Alright guys… sooo… i have to say… i really like javascript… but.. ruby is pretty sweet… its like lua and javascript had a baby… :P/>
Posted 01 May 2014 - 06:20 PM
Alright guys… sooo… i have to say… i really like javascript… but.. ruby is pretty sweet… its like lua and javascript had a baby… :P/>
So who's the father? :lol:/>
Posted 02 May 2014 - 12:25 AM
lol… lua of course…Alright guys… sooo… i have to say… i really like javascript… but.. ruby is pretty sweet… its like lua and javascript had a baby… :P/>
So who's the father? :lol:/>
Posted 09 May 2014 - 11:28 PM
I love java syntax and I wish there was like a computercraft mod that uses java programming, there are some issues with that that make it hard to be able to create. I prefer java because it allows you to make your code very compact and gives you hundreds of new possibilities. I'd say it's very flexible, you can use it in many ways, for example you can extend in your java class or create a variable for the extension instead. After I've learnt java all other programming languages just looked so out-dated, in my opinion java has a lot more efficient and compact, possibly more featured object-oriented programming than any other language I've come across.
Edit: Java is a programming language, whilst lua and such are scripting languages. There's a difference to that too.
Regards
Augustas
Edit: Java is a programming language, whilst lua and such are scripting languages. There's a difference to that too.
Regards
Augustas
Edited on 09 May 2014 - 09:31 PM
Posted 13 May 2014 - 03:47 AM
I like JavaScript, and unlike everyone else on here I don't like Lua. At all.
JavaScript OOP is generally a bad idea. ECMAScript 6 brings some improvements, but it's still not great.
Lua OOP is even worse.
Java is a programming language, as is JavaScript, Lua, PHP, C++, etc. Java is a compiled language, as apposed to being interpreted like JS/Lua.
JavaScript OOP is generally a bad idea. ECMAScript 6 brings some improvements, but it's still not great.
Lua OOP is even worse.
Java is a programming language, as is JavaScript, Lua, PHP, C++, etc. Java is a compiled language, as apposed to being interpreted like JS/Lua.
Posted 14 May 2014 - 07:43 PM
I really like Pythons syntax and the 1 thing I love is that python lets you use the semi-colon even though its not needed
Posted 14 May 2014 - 07:43 PM
A lot of languages do. Lua actually does.I really like Pythons syntax and the 1 thing I love is that python lets you use the semi-colon even though its not needed
Posted 14 May 2014 - 07:49 PM
shoo dont stalk me all the way to here!A lot of languages do. Lua actually does.I really like Pythons syntax and the 1 thing I love is that python lets you use the semi-colon even though its not needed
Posted 15 May 2014 - 12:11 AM
In terms of bad syntaxes, I agreed to make a theme for a friend for some online store platform (called shopify or something) thinking it would just be HTML/CSS, but apparently they use their own language that is apparently HTML/CSS with a bunch of ugly things that use curly braces and percent signs. I absolutely hate the syntax, but I'm still gonna make the theme.
Edited on 14 May 2014 - 10:11 PM
Posted 15 May 2014 - 02:02 AM
In terms of bad syntaxes, I agreed to make a theme for a friend for some online store platform (called shopify or something) thinking it would just be HTML/CSS, but apparently they use their own language that is apparently HTML/CSS with a bunch of ugly things that use curly braces and percent signs. I absolutely hate the syntax, but I'm still gonna make the theme.
Let me guess… It's probably a ruby static site generator such as Jekyll or Nanoc. Jekyll has some of the ugliest code I have ever seen. It looks like this for those who are wondering:
---
layout: default
---
<div id="post">
{{ content }}
</div>
<div id="related">
<h2>Related Posts</h2>
<ul class="posts">
{% for post in site.related_posts limit:3 %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
You see that for loop? Yuuuuuck. So awful.
Posted 15 May 2014 - 04:21 AM
Actually, yeah, it's exactly like that, down to that very for loop. They say something like "Liquid (the name of their "language") is a simple, beautiful way of creating great customer experiences." That is the last thing I would say about it. Super ugly. I'd much prefer to just use static HTMl pages.
Posted 29 May 2014 - 05:59 PM
IMO, Lua is the most universal language ever! I can do literally anything with it. Two simple rules:
1. Always divide your task into several functions.
2. If you begin thinking that your task is impossible in Lua, try to divide it into functions even more!
For some very fast things I can use C (not C++, because I hate it) to write some functions and control that functions from Lua. Or I can implement some Lua features (like that genius 'and' and 'or' logic) in C.
Also, sometimes (but just sometimes) I use Lua object-orientiered features to structurise the things even more. I don't like other OOP languages, because of their weird and complicated syntax. If I need objects, I implement it myself.
1. Always divide your task into several functions.
2. If you begin thinking that your task is impossible in Lua, try to divide it into functions even more!
For some very fast things I can use C (not C++, because I hate it) to write some functions and control that functions from Lua. Or I can implement some Lua features (like that genius 'and' and 'or' logic) in C.
Also, sometimes (but just sometimes) I use Lua object-orientiered features to structurise the things even more. I don't like other OOP languages, because of their weird and complicated syntax. If I need objects, I implement it myself.
Posted 23 November 2014 - 04:39 AM
I'm going to say the neutral thing and go with Python.
I don't like Objective-C (especially), or Java, or C#.def pythonIsAwesome(): if pythonIsAwesome == true: print "Python is awesome!"
No end statement! :D/>
How about…….
def checkPythonPrestige():
if(prestigeLevel == "So awesome you can't put it in numbers"):
a = raw_input("Do you agree? [Y/N]")
if(a == "Y" or "y"):
print("I agree! :D/>")
elif(a == "N" or "n"):
print("I wish you had the same opinion as me D:")
else:
print("I don't know what awnser that even is.")
checkPythonPrestige()
:D/>
That was off the top of my head :)/>
Posted 09 December 2014 - 01:24 AM
Did someone say no end statements?
As it just so happens, I was bored and wrote a Lua 5.2 custom compiler (Sorry, 5.1 fangirls) which allows for code like:
soooo, yeah. That's Alissa's Lua.
Also, I know that 'else' tags do need a { and }, will fix eventually.
As it just so happens, I was bored and wrote a Lua 5.2 custom compiler (Sorry, 5.1 fangirls) which allows for code like:
Code from screen.lua
local posix, curses = require( "posix" ), require( "curses" )
size = {}
function startwin() {
scr = curses.initscr()
size['scr'] = {}
size['scr'].maxy, size['scr'].maxx = scr:getmaxyx()
size['scr'].y, size['scr'].x = size['scr'].maxy + 1, size['scr'].maxx + 1
scr:mvvline( 0, 18, "|", size['scr'].y )
clear(scr)
}
function print( name, ... ) {
local text = table.concat( {...}, " " )
local words = {}
local lines = {}
local _size = size['scr'].maxx - 20
for word in text:gmatch( "%S+" ) {
for i=1, #word, size['scr'].maxx {
table.insert( words, word:sub( _size*(i-1) + 1, _size*i ) )
}
}
local _line = ""
for k, v in pairs( words ) {
if #_line + #v > _size - 1 {
table.insert( lines, _line:sub( 1, #_line - 1 ) )
_line = v .. " "
else
_line = _line .. v .. " "
}
}
if #_line ~= 0 {
table.insert( lines, _line:sub( 1, #_line - 1 ) )
}
local first = true
for k, v in pairs( lines ) {
if first {
first = nil
if #name > 15 {
name = name:sub( 1, 14 ) .. "+"
}
name = "[" .. name .. "]"
local pre = (" "):rep( 17 - #name )
write( pre .. name .. " | " .. v )
else
write( (" "):rep( 18 ) .. "| " .. v )
}
}
}
local _err = {
"Fatal error",
"Error",
"Warning"
}
function error( level, text ) {
print( _err[level], text )
}
function write(...) {
scr:clear()
scr:mvvline( 0, 18, "|", size['scr'].y )
local text = table.concat( {...}, " " ) --Can't tab with ncurses
for line in text:gmatch( "[^\n]+" ) {
for i=1, #line, size['scr'].x {
table.insert( size['scr'].lines, text:sub( size['scr'].x*(i-1) + 1, size['scr'].x*i ) )
}
}
local _out = {}
for i = #(size['scr'].lines) - size['scr'].y, #(size['scr'].lines) {
table.insert( _out, size['scr'].lines[i] )
}
size['scr'].lines = _out
for _, line in pairs( size['scr'].lines ) {
scr:mvaddstr( _-1, 0, line )
}
scr:refresh()
}
function endwin() {
if scr {
scr:close()
curses.endwin()
}
os.exit()
}
function clear(scr) {
size['scr'].lines = {}
scr:clear()
scr:refresh()
}
soooo, yeah. That's Alissa's Lua.
Also, I know that 'else' tags do need a { and }, will fix eventually.
Posted 10 December 2014 - 02:19 AM
Did someone say no end statements?
As it just so happens, I was bored and wrote a Lua 5.2 custom compiler (Sorry, 5.1 fangirls) which allows for code like:Code from screen.lua
local posix, curses = require( "posix" ), require( "curses" ) size = {} function startwin() { scr = curses.initscr() size['scr'] = {} size['scr'].maxy, size['scr'].maxx = scr:getmaxyx() size['scr'].y, size['scr'].x = size['scr'].maxy + 1, size['scr'].maxx + 1 scr:mvvline( 0, 18, "|", size['scr'].y ) clear(scr) } function print( name, ... ) { local text = table.concat( {...}, " " ) local words = {} local lines = {} local _size = size['scr'].maxx - 20 for word in text:gmatch( "%S+" ) { for i=1, #word, size['scr'].maxx { table.insert( words, word:sub( _size*(i-1) + 1, _size*i ) ) } } local _line = "" for k, v in pairs( words ) { if #_line + #v > _size - 1 { table.insert( lines, _line:sub( 1, #_line - 1 ) ) _line = v .. " " else _line = _line .. v .. " " } } if #_line ~= 0 { table.insert( lines, _line:sub( 1, #_line - 1 ) ) } local first = true for k, v in pairs( lines ) { if first { first = nil if #name > 15 { name = name:sub( 1, 14 ) .. "+" } name = "[" .. name .. "]" local pre = (" "):rep( 17 - #name ) write( pre .. name .. " | " .. v ) else write( (" "):rep( 18 ) .. "| " .. v ) } } } local _err = { "Fatal error", "Error", "Warning" } function error( level, text ) { print( _err[level], text ) } function write(...) { scr:clear() scr:mvvline( 0, 18, "|", size['scr'].y ) local text = table.concat( {...}, " " ) --Can't tab with ncurses for line in text:gmatch( "[^\n]+" ) { for i=1, #line, size['scr'].x { table.insert( size['scr'].lines, text:sub( size['scr'].x*(i-1) + 1, size['scr'].x*i ) ) } } local _out = {} for i = #(size['scr'].lines) - size['scr'].y, #(size['scr'].lines) { table.insert( _out, size['scr'].lines[i] ) } size['scr'].lines = _out for _, line in pairs( size['scr'].lines ) { scr:mvaddstr( _-1, 0, line ) } scr:refresh() } function endwin() { if scr { scr:close() curses.endwin() } os.exit() } function clear(scr) { size['scr'].lines = {} scr:clear() scr:refresh() }
soooo, yeah. That's Alissa's Lua.
Also, I know that 'else' tags do need a { and }, will fix eventually.
I tried to add this to LuaLua. There's actually a functional reason you can't do this. Take the following snippet of code that is valid in vanilla Lua.
for w in someFunction { a = 1 } do
-- ...
end
If we retabbed it to look like this, you might think it looks like it's using brackets for "do…end", and that the following "do…end" is just a normal chunk.
for w in someFunction {
a = 1
}
do
-- ...
end
So you see why you just can't use brackets in a lot of Lua statements. The fact that brackets can be table constructors, and the fact that functions can be called with table constructors instead of parentheses make it so that this much desired feature can't be implemented.
Posted 10 December 2014 - 08:04 AM
I've always been a Python person. Though, ironically, I rarely actually write entire projects in Python. Mostly, it's replaced Perl as my go-to language to get things done in a quick fast manner.
Behind Python is C#. It's like Java but with all the annoyances mostly removed or minimized. I've written a lot of projects in C# and I've been quite happy with the language overall, plus it's built-in array of types, data containers, etc.
Lua has really grown on me in the last few years. I always thought it was a really thread-bare language with few features, but I've grown to appreciate its simplistic styling and the subtleties within it. It's also super-easy to bolt onto an existing project, which is something I can't say for Python and it's CPython interface. Ugh.
Behind Python is C#. It's like Java but with all the annoyances mostly removed or minimized. I've written a lot of projects in C# and I've been quite happy with the language overall, plus it's built-in array of types, data containers, etc.
Lua has really grown on me in the last few years. I always thought it was a really thread-bare language with few features, but I've grown to appreciate its simplistic styling and the subtleties within it. It's also super-easy to bolt onto an existing project, which is something I can't say for Python and it's CPython interface. Ugh.
Posted 10 December 2014 - 04:12 PM
Mmm, Perl, I've had to write it in the past and I can do it, I just hate every minute of it:
Got to agree with the rest. I love Python for its extensibility but it runs like a snail. C# I use for almost everything now, there are even ways to use it as a scripting language which is really useful.
I kinda like Lua now, it has its quirks (why do I have to type local? or end?) but it has grown on me. I would never use it for anything non-esoteric though. Lisp is funny, I love the ideas behind it, mostly the idea of macros. I think D implements this very cleverly as well, the idea of running code when you compile to save yourself effort later on.
Put a thousand million monkeys in front of a thousand million keyboards and eventually one will write a valid Java program. The rest will all write Perl programs
Got to agree with the rest. I love Python for its extensibility but it runs like a snail. C# I use for almost everything now, there are even ways to use it as a scripting language which is really useful.
I kinda like Lua now, it has its quirks (why do I have to type local? or end?) but it has grown on me. I would never use it for anything non-esoteric though. Lisp is funny, I love the ideas behind it, mostly the idea of macros. I think D implements this very cleverly as well, the idea of running code when you compile to save yourself effort later on.
Edited on 10 December 2014 - 03:12 PM