[QUOTE=reeferdk;20411875]Good luck finding a job as as a LUA web programmer.. I think the demand for programmers in PHP, ASP.net, ruby etc. is alot bigger than LUA web programmers..[/QUOTE]
It's "Lua". It's not an acronym.
And of course you won't find work as a Lua web developer, Lua is tiny on the web. That doesn't mean you can't use it for yourself, if you enjoy programming.
The second you become proficient in just about any other programming language you'll come to realise how terribly designed PHP is.
[QUOTE=reeferdk;20411875]Don't get me wrong, your precious LUA might beat PHP when it comes to speed, but don't forget that PHP includes TONS of usefull stuff (Like database drivers for more or less all types of databases) so you don't have to waste time writing your own. Thus saving your employer money and time. (Cost-benefit is important for most companies and the 0.0000001 second advantage of using LUA simply isn't viable)[/QUOTE]
This has nothing to do with the programming language, now we're back at frameworks.
[QUOTE=reeferdk;20411875]The only real arguments you come with is syntax (wich can be a matter of preference) and speed (Which isn't a big dealio if you configure your server properly)[/QUOTE]
It's not just about syntax, it's about language power and features. Lua has first class functions, prototype-based object-orientation (which is a matter of preference, but Ruby and Python (and C#, by all means) do class-based OO much better than PHP), default-to-global which gets rid of all those $'s, full lexical scoping including closures, an excellent and remarkably simple C API for extension, and lastly, yes it is heaps faster.
[QUOTE=ddrl46;20341221]PHP does not suck. Lua is crap compared to it.[/QUOTE]
Sadly, PHP is inconsitent in function arguments, has redundant functions which do the same and lacks abilities I like from other languages.
PHP Example:
explode(separator,string) - First the separator is inserted, than the actual "data" you perform on the actions
strstr(haystack,needle) - First, the "data" you perform on the action is supplied, then the needle
In lua, you have the convention of "data you perform an action on always being the first argument".
string.find(data,needle)
Reason: The first argument in such a function is the "self" argument so you can also do stuff like
my_string:find(needle)
Another neat thing is, lua collects functions in tables which is quite similar to keeping them in namespaces where in php everything is horribly global. (strstr is harder to remember than string.find)
Still I dislike the Lua syntax but that's secondary. Anyway, PHP in my eyes has to be replaced by something different.
[QUOTE=reeferdk;20411875]but don't forget that PHP includes TONS of usefull stuff (Like database drivers for more or less all types of databases) so you don't have to waste time writing your own.[/QUOTE]
Sorry, but you're full of bullshit. [url=http://www.keplerproject.org/luasql/]LuaSQL[/url].
Installing the database access layer of your choice on Lua is a matter of installing a Lua package, and that will take a minute or two. Then it's globally available in any application you write.
Of course, in PHP you have to specifically compile your interpreter MySQL-enabled or you're completely screwed. Much more logical than doing "easy_install postgresql_psycopg2" (python) or whatever, right...?
Come back when you know what you're talking about!
Lua as a web language would be an interesting project, but they'd really have to ramp up the ease of implementation. Kepler is a pain in the arse to get going!
So you have means of making a connection to a database through Lua, big deal! (It would be useless as a web-language if it didn't have some kind of DB support).
As it is at the moment Lua doesn't seem like the better choice (Good luck finding a job as a Lua - web programmer)
Im not saying that Lua is bad, i'm just saying that theres no reason to throw PHP out in the trash for the advantage of some language that NO ONE uses in this industry.
[QUOTE=zyxxyz;20412515]Come back when you know what you're talking about![/QUOTE]
Likewise chap!
Looks pretty nice, but I personally dislike Lua's syntax, so I guess I'll stick with PHP until I find a good reason to switch over.
[QUOTE=reeferdk;20413394]So you have means of making a connection to a database through Lua, big deal![/quote]
It is a "big deal" when you come here spouting nonsense and making yourself look like an idiot.
[quote]As it is at the moment Lua doesn't seem like the better choice[/quote]
And in my personal opinion, it is not - web development for Lua is still very young, but projects like Kepler develop continuously.
[quote]i'm just saying that theres no reason to throw PHP out in the trash for the advantage of some language that NO ONE uses in this industry.[/quote]
[url=http://lua-users.org/wiki/LuaUses]Nobody uses Lua in computer development?[/url] It's a very mature and stable scripting language, and there's no reason it shouldn't be adapted into web dev!
[quote](Good luck finding a job as a Lua - web programmer)[/quote]
Dismissing a language because the job market for it is not huge isn't a good idea (nor is it a concern for hobbyist programmers like myself).
Let me just give you an example of how [url=http://basecamphq.com/]Basecamp[/url] was built on Ruby when absolutely no one was using it for web development. Afterwards, the core framework used was extracted into the open source [url=http://rubyonrails.org/]Ruby on Rails[/url] project, which now powers hundreds of Web 2.0 services like Twitter. The fact that Lua isn't very mature yet doesn't mean that it's out of question.
[QUOTE=zyxxyz;20413716]
[URL="http://lua-users.org/wiki/LuaUses"]Nobody uses Lua in computer development?[/URL] It's a very mature and stable scripting language, and there's no reason it shouldn't be adapted into web dev!
[/QUOTE]
- I said no one uses Lua in THIS industry (This industry being web development)
[QUOTE=zyxxyz;20413716]
Dismissing a language because the job market for it is not huge isn't a good idea (nor is it a concern for hobbyist programmers like myself).
[/QUOTE]
- If you want to make a living of it, then its a good idea. but if you want to fool around with stuff, without the prospect of earning money in the end then i guess Lua is a good choice in web development...
[QUOTE=zyxxyz;20413716]
Let me just give you an example of how [URL="http://basecamphq.com/"]Basecamp[/URL] was built on Ruby when absolutely no one was using it for web development. Afterwards, the core framework used was extracted into the open source [URL="http://rubyonrails.org/"]Ruby on Rails[/URL] project, which now powers hundreds of Web 2.0 services like Twitter. The fact that Lua isn't very mature yet doesn't mean that it's out of question.[/QUOTE]
- I agree, but untill then im sticking with PHP and the occational ASP.net
[QUOTE=aVoN;20412470]Anyway, PHP in my eyes has to be replaced by something different.[/QUOTE]
Pretty much this, or an entire re-think of function naming and so on, but that'd piss everyone off.
I do _LOVE_ the Lua syntax though.
[QUOTE=Dragory;20413463]Looks pretty nice, but I personally dislike Lua's syntax, so I guess I'll stick with PHP until I find a good reason to switch over.[/QUOTE]
This topic is full of reasons for switching to some normal language. And that "0.000001 seconds" difference may be quite big on servers under heavy load.
Sorry, you need to Log In to post a reply to this thread.