Your Favorite Programming Language

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Your Favorite Programming Language

Post by kikito »

I like javascript. There are some very nice videos from Douglas Crockford that explain it very well. It has lots of similarities with Lua, and I would say that it does some things better than Lua.

I also like lisp. The language is itself a data structure, and that's wicked. But I don't like its syntax, and I don't use it better much.

I like python. Starting with its name. Guido is a very wise individual. I based some parts of middleclass on python's object model. But...

... the warmest place in my heart, for now at least, is for ruby. It's objective was making programmers happy, and, in my case at least, it delivers.
When I write def I mean function.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Your Favorite Programming Language

Post by slime »

Lua. Simple, clean, lightweight. <.<
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Your Favorite Programming Language

Post by vrld »

I am surprised that so few here say Lua. Because Lua is just awesome.
It's fast. It's flexible. It's expressiveness is overwhelming. Embedding Lua in other projects is easy (there is even a binding to embed Lua code in perl). It has first-class functions, allowing for functional programming style. It has tail recursion. It has coroutines, Metatables are awesome. The list goes on.

I really like (Common) Lisp. Learning it is a pain if you already know how to program, because everything is different in Lisp-land. But the reward is worth it. I would like to call Lisp my favorite, but I don't know it well enough yet.

Like giniu, I also like Haskell. First seeing it blew my mind (vigenere cyper in one line? sure thing), although as with Lisp, I don't know it well enough to say it's my favorite.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Your Favorite Programming Language

Post by TechnoCat »

giniu
Party member
Posts: 221
Joined: Mon Nov 30, 2009 4:44 pm

Re: Your Favorite Programming Language

Post by giniu »

TechnoCat wrote:Java
Java is too old, Java2K is more robust than plain, old, Java :P - to quote
Homepage wrote:Java2K is not a deterministic programming language, but a probabilistic one. Even for built-in functions, there is only a certain probability the function will do whatever you intend it to do.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Your Favorite Programming Language

Post by Taehl »

Lua! It lets me do anything I can dream of, and is even pretty darn fast about it (even without LuaJIT).

If I /really/ need raw power for something, I'll jump to the opposite end of the spectrum and go with L.in.oleum. For the uninitiated, it's an unstructured, untyped, procedural, register-based, CROSS PLATFORM assembly language. It runs about twice as fast as C, on average. It looks something like this (this is a subroutine):

Code: Select all

"calculate velocity"		(find a floating-point velocity from registers a, b, and c)
	[fvel] ,= a; [ftime] ,= b; [faccel] ,= c;
	[fvel] ,* [ftime];
	[ftime] ,* [ftime];
	[ftime] ,* [faccel];
	[ftime] ,/ 2f;
	[fvel] ,+ [ftime];
leave;
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Your Favorite Programming Language

Post by tentus »

PHP + MySQL. Every day I get to find clever new ways to deliver content over the tubes, and the vast majority of my work hinges on those two.
Kurosuke needs beta testers
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Your Favorite Programming Language

Post by BlackBulletIV »

Wow, a lot of interesting languages here (some I've never heard of, like Vala) and a lot of posts, lol.
nevon wrote:
BlackBulletIV wrote:The funny thing is, the line "Readability counts" is included in the The Python Zen.
I think they're probably referring to the forced indentation (which I actually like) and the dynamic typing (every time I have to write "public static void main (String args[])" I throw up a bit in my mouth).
Yeah, you're probably right there. Yeah I know, typing that in Java is a pain. C++ does it better "int main()" or if you want args "int main(int argc, char** argv)". Although I must admit, pointers took quite a while to get the hang of.
giniu wrote:On the other hand, static typing is life saver if done right,
I totally agree there. I've had so much trouble with Lua because of the lack of static types. But the one thing I hate about static types, at least in an object model, is that you have to go to sometimes great lengths to remain compliant with the system (like creating multitudes of interfaces and abstract classes). The funny thing is, I still, for the most part, use dynamic typed languages like a static typed language, as my first language was ActionScript (static typed).
Robin wrote:But my Python programs are usually more readable than Lua programs. If you're doing it right, Python code will look like poetry, rather than a program listing.
Is that because there's no forced indentation in Lua? For myself I find the programs a more readable in Lua, mainly because of the "end" keyword.
kikito wrote:... the warmest place in my heart, for now at least, is for ruby. It's objective was making programmers happy, and, in my case at least, it delivers.
I thought you'd probably say Ruby. That's a plan to check out sometime, I've heard many good things about it. But first there's so many other things to learn, like more advanced C++ and Objective-C.
Taehl wrote:If I /really/ need raw power for something, I'll jump to the opposite end of the spectrum and go with L.in.oleum. For the uninitiated, it's an unstructured, untyped, procedural, register-based, CROSS PLATFORM assembly language. It runs about twice as fast as C, on average.
Hmmmm, that looks interesting. I've hardly ever seen an assembly language before (I know what they are however). That's a really nice speed.
tentus wrote:PHP + MySQL. Every day I get to find clever new ways to deliver content over the tubes, and the vast majority of my work hinges on those two.
That's one I wasn't expecting. A while ago, PHP used to be my favorite language... but I'm a little tired of the inconsistency and procedural style of it. However, for web work, that combination is still what I use.

Can I ask a question about Lua. How does everyone else feel about that lack of bitwise operators, compound operators (this one is driving me nuts), and proper ternary statements (yes I know you can do some tricky stuff "and" and "or", but seriously, that's not great to read).
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Your Favorite Programming Language

Post by nevon »

BlackBulletIV wrote:Can I ask a question about Lua. How does everyone else feel about that lack of bitwise operators, compound operators (this one is driving me nuts), and proper ternary statements (yes I know you can do some tricky stuff "and" and "or", but seriously, that's not great to read).
I miss bitwise and compound operators, but that's just a convenience thing. I really don't think it's that big of a deal. I never use ternary statements in other languages anyway, so I don't miss that much.
giniu
Party member
Posts: 221
Joined: Mon Nov 30, 2009 4:44 pm

Re: Your Favorite Programming Language

Post by giniu »

BlackBulletIV wrote:That's one I wasn't expecting. A while ago, PHP used to be my favorite language... but I'm a little tired of the inconsistency and procedural style of it. However, for web work, that combination is still what I use.
If you use php for web work, you might want to take a look at that (Haskell :P) solution - Snap Framework - it has some interesting performance results - especially it's interesting how Ruby on Rails is outperformed, together with other solutions like LAMP or even Node.js :P
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests