2 ms·
> use emacs, lisp and the trusted framework you already know It took me 2 years to finally get comfortable with Emacs to the point I trust doing stuff in it, a
by bad_user 16y ago
> use emacs, lisp and the trusted framework you already know
It took me 2 years to finally get comfortable with Emacs to the point I trust doing stuff in it, and I still don't know what I'm going to do if I ever start working in a language that doesn't have an editing mode available (it's not Textmate where you can define a syntax file in an hour).
For a whole month I studied Clojure, trying to wrap my head around it. I still have problems.
And now if I'd want to do stuff in Clojure, all web frameworks available suck for me (no, I don't like Compojure) ... which would mean I'd have to write my own ... or use Django, Rails 3, or even asp.net mvc 2 (even that is preferable).
Of course, being the yak-shaver that I am, I'll probably attempt to write a web-framework for Clojure of my own, but not when the clock is ticking.
On PHP ... doing PHP programming / copying popular websites was my first job. It took me exactly 1 week for going from a complete zero to someone that could get the job done.
I don't love PHP as there are truly better options out there, but libraries/frameworks are more important than languages. If Java frameworks would've been designed with an eye towards their users and not to please managers, it would've crushed all other high-level languages by now (and it did in many ways).
- joubert 16y agoWhy not just write servlets in Clojure?
- bad_user 16y agoBecause I just don't need dumb request dispatch. There are a couple of things a web-developer needs ... data-models, with validations, form/request handling with validations (forms that render themselves are a plus), authentication/authorization (OpenID/Facebook/whatever support should be available of course), CRUD generating (I don't want to work on stupid admin interfaces that show tables of existing items more than 10 minutes), session handling, caching support backed in, a nice templating language that doesn't suck ... and a (lazy) ORM querying language would be nice (bonus points if it has integration with NoSQL databases). And all of them nicely integrated of course, as I don't want to lose time trying to figure out how to blend them in. That's not much to ask, and these are problems devs have struggled with in the last 10 years ... it is unacceptable to work just with servlets.
- swannodette 16y agoClojure has solutions for many of things your are talking about. If you don't want go looking for them, fine. All you're illustrating here is your ignorance of the "other side" and your unwillingness to find out. Clojure doesn't suffer for capability or libraries. It has that in spades and then some. The main thing missing is a site that documents how to use these pieces in concert to accomplish common web programming tasks.
- jasonlotito 16y ago> The main thing missing is a site that documents how to use these pieces in concert to accomplish common web programming tasks. You know, not to get dragged into a stupid language debate, but for any language, a proposed solution without documentation is not a solution.
- cageface 16y agoClojure (or any functional language) doesn't have a tiny fraction of the libraries/frameworks/documentation that PHP does. Design a language that only the top 25% of the programmers in the world are smart enough to use and you'll get 2% of the infrastructure blub languages have. The challenge is to prove that those smart programmers working in that smart language are still more productive than the average programmers that started with the problem 75% solved out of the gate. For basically solved problems like CRUD webapps you won't be able to do this. For harder problems like scheduling air travel you might but then you're working in a problem domain too difficult for at least 3/4 of the working programmers today so you're in an even smaller niche.
- zephjc 16y agoClojure (or any functional language) doesn't have a tiny fraction of the libraries/frameworks/documentation that PHP does. Well, you get all those Java libraries out there for free ('free' as in automatically, not necessarily 'free' as in without paying)
- mhd 16y ago"Clojure (or any functional language) doesn't have a tiny fraction of the libraries/frameworks/documentation that PHP does." PHP is pretty bad when it comes to reusable libraries. PEAR is a pretty unusable mess, the Zend "framework" is a bit better, but still not that all-encompassing. Core PHP is a huge hodgepodge of very bare wrappers around C libraries, without a decent module system or OO layer. The documentation is often centered around newbie questions and most frameworks really reinvent the wheel -- and quite often Ruby on Rails (which is pretty painful considering the PHP execution model). I'd rate the library repositories of Perl, Ruby and Python above that, and even with some paradigm mismatch, Clojure's access to Java libraries is at least on par with PHP (PHP/C vs. Clojure/Java).