Better HN
topnewbestaskshowjobs
Log inSign up

ilyak

233 karma · joined Apr 8, 2009 (17y ago) · 299 submissions

Submissions

comment 17y ago · link · parent

"most things become popular for very good reasons" Sure. But those reasons are gone. Long gone. So please, wrap it out already.

"that is what a web server does" Did. Most PHP apps don't use /some-article.php and /another-article.php with relevant PHP files under those names, that would be bizzare. There surely is A routing FRAMEWORK those days.

"One PHP file per page is also not true" ...if you're using A FRAMEWORK.

"There is also no 'default templating', I can pipe to, or make PHP calls from the command line" So what? There's still default templating outside <? ?> And that's what you use unless you've got A FRAMEWORK.

Do you see a pattern here? The pattern is that you didn't read my comment, you used regexes instead. Sadly.

comment 17y ago · link · parent

We are tired of you being loudly tired of Desktop Linux, FAVO you.

comment 17y ago · link · parent

It would never work without frameworks:

The PHP's default templating (stick code into templates) sucks (unusable for anything serious).

PHP's default routing (/foo/bar.php, lookup the file) sucks (you really really want one entry point for your web app.

PHP's default code layout (one PHP file per page) sucks too.

Idiomatic PHP is unusable! So you'd NEED a framework. Maybe homebrewn one. And if you're going for a framework, why not start with Django or Rails?

Every large-scale project in PHP contains an ad-hoc implementation of at least half of Django.

comment 17y ago · link · parent

But it still has 1000+ functions in the default namespace?

And every file still starts with <? And if one of them doesn't, then your web app would fail epically because you were gzipping your output into your output stream (one and only one), and this extra space in one of files ruined your gzip.

To be fair, it's wonderful that complex PHP apps ever work. It's a complete surprise to me, I'd say they run-by-accident.

comment 17y ago · link · parent

I'd go ugly early by saying that so did Hitler.

comment 17y ago · link · parent

Well. Ruby?

comment 17y ago · link · parent

However I'd say he's directly responsible for the misery the most PHP development now is.

If he actually spent time reading about languages and designing his own, he would throw in function namespacing and function naming conventions and a good built-in abstraction for database access (with a strong bias against SQL injections and towards placeholders/variable binding from the day one), PHP would come out an okayish language and not an universal hate target.

There are some other blunders that he could just not make. And I'm not even dreaming about template system that makes sense now.

He didn't! Who the hell could do that if he wasn't going.

comment 17y ago · link · parent

Why not? I mean, rhino has methodNotFound-like thing, so you certainly can.

comment 17y ago · link · parent

"Also you forgot to write that" Okay. You want to argue with yourself not with me, to the point when you start rewriting my claims. So, you go and argue with yourself.

comment 17y ago · link · parent

You can easily pass an object into Javascript:

context.put(“rubyObject”, MyRubyClass.new)

Whether you would be able to call methods on it depends on whether the Snarl author did some (trivial) code magic or not, but it's certainly doable too.

Still I have no idea why would you want javascript in ruby in the first place.

comment 17y ago · link · parent

There's JSLint, you can surely build it in.

And it would have syntax colouring which basic lagged in.

comment 17y ago · link · parent

Sorry, but for programming language, popularity is everything. It's a social phenomenon, it grows superlinearly with number of users.

And languages become popular and unpopular for a reason.

For common lisp, those reasons are:

It's ancient.

Parties interested in it can't agree on anything so its development is stalled.

It claims to have a huge library which is tiny by 2009 standards, and doesn't have vital things like network i/o or unicode. Yes, implementations support those proprietarely, yet noone cares, because it's not in standard libs.

It has problems with reflection, which is doubly awful for a lisp.

CLOS is interesting, but for most uses smalltalkingly simple OO would be much more desirable.

Tool support is neliglible.

comment 17y ago · link · parent

Nope it isn't.

I've heard about CL, know a few things about it, and it's a failure nontheless.

Its problem isn't the unpopularity between Blub programmers; its problem is its unpopularity even between geeks. Even language geeks!

comment 17y ago · link · parent

Teach children to draw on a canvas in javascript.

You can easily make a page with a javascript editor and immediate evaluation if you wish, and simplified api.

comment 17y ago · link · parent

I'd say that, in the world of politics, yes.

comment 17y ago · link · parent

China is the only major state left who is claiming to be communist; therefore, China now defines "communist".

comment 17y ago · link · parent

Clojure is two years old and already has more useful software being written in than CL.

CL is a failure, admit it.

12345
10