8 ms·
The author compares using a language and web framework he knows to one he does not know and never tried. Feel free to guess how the rest of the article went.
by Retric 18y ago
The author compares using a language and web framework he knows to one he does not know and never tried.
Feel free to guess how the rest of the article went.
PS: Why do people feel the need to post about subjects they don't know?
- trezor 18y agoFeel free to guess how the rest of the article went. Free tip: It involves ignoring all the shortcomings of PHP and highlighting all the shortcomings of Lisp.
- deleted 18y ago[deleted]
- DougBTX 18y agoEh? PHP is overly verbose and terribly inconsistent and lacks powerful methods of abstraction and proper closures and easy-to-use meta-programming goodness and Lisp-macro syntactic wonders; in that sense it's not a very powerful language.
- jrockway 18y ago+1 I think I am going to have to write a sarcastic reply to this post. "PHP is much simpler! First, you have to setup Apache just to get 'Hello world' working with PHP. That's OK though, because installing and configuring a web server is fun and exciting. After that, you can start work. Of course, you have no libraries, so you get to write everything from scratch. While you're doing that, be sure not to use $i as your loop iterator, because there is no lexical scope! Do you need closures? They don't exist! You don't need that for web pages, though; web pages require you to write spaghetti because it's just plain easier! Anyway, eventually you will want an editor with decent syntax highlighting and perhaps a REPL for prototyping. Oh wait, PHP has neither. That's OK though, because PHP is clearly better!!11!" I could go on, but I'd rather summarize this with one word: "blub". Oh, let me add one other thing. He says MySQL is a single apt-get away, but installing SLIME and Emacs was "too hard"? On my Debian, emacs22, slime, and cl-swank are all an apt-get away. In fact: $ apt-cache search '^php5' | wc -l 51 $ apt-cache search '^cl-' | wc -l 168 That's OK, though. If you know PHP and have no ability to program or learn anything new, CL probably isn't for you.
- nuclear_eclipse 18y agoNot that I disagree with your point, but as a PHP developer myself: 1 - PHP does not require Apache. There is a command-line PHP interpreter: `apt-get install php5-cli` allows you to do `php <filename>` and such just fine. 2 - PHP has a lot more libraries available than just what you find in your Apt repositories, such as PEAR, which is PHP's equivalent of CPAN. 3 - Just about every editor I know of has excellent syntax highlighting for PHP; some even go so far as to contextually highlight HTML/CSS/SQL code as it appears in the middle of your PHP code. 4 - As for a REPL, check out [phpsh](http://www.phpsh.org http://www.phpsh.org). 5 - Your point of not using $i for an iterator is absurd, although your point of scoping is not. Using $i for iterators is perfectly fine and sane, assuming the obvious act of not using iterator variables outside hte scope of what they're iterating, which IMO should be standard proctice anyways just for the purpose of clarity...
- jrockway 18y ago1 - PHP does not require Apache. There is a command-line PHP interpreter: `apt-get install php5-cli` allows you to do `php <filename>` and such just fine. Sure, but there is no "./server" that I can run in a directory of PHP files to bring up a testing server. You can run tests from the command-line, which is good, but you can't see web pages without a web server. What a pain.
- nuclear_eclipse 18y agoI still don't see how that's any different than any other language. Something somewhere has have a web server implemented in order for you to test things in your browser. And if you don't like Apache, there's always Lighttpd and other web server options. Probably the best thing for PHP though is that once you set up your trivial testing server, you never have to touch it again. You just keep refreshing the page, or pointing the browser at new pages, no matter how much code you write or file structures you change. It just works.
- jrockway 18y ago
- mixmax 18y agoCan you point me to somewhere where I can download a single click install lisp stack that includes a webserver? Preferably for windows, which is what I use at work. Can you point me to a site where all lisp functions are well documented with user comments? Can you point me to a place where I can find a bunch of lisp libraries that are maintained and in use that I can use for my projects? No?
- skolos 18y agoTry this one: http://www.sergeykolos.com/cusp/intro/ http://www.sergeykolos.com/cusp/intro/ Not everything you want, but at least an effort to make it close to your requirements.
- tjr 18y agoThank you for including the part about building an executable, and the little backstory on it. When I first started in Lisp, one of my early questions too was, "how do you make an executable?" For a seasoned Lisper, that question might seem foreign, but it makes perfect sense to a C programmer. I asked the question on Usenet, trying to explain that not everyone I wanted to give programs to had Lisp on their computer. In response, someone tried to persuade me that you don't do such things with Lisp. Someone else turned out to be a Franz salesman asking, "which platforms are you talking about that don't have Lisp? we can supply Lisp on any platform!"
- gruseom 18y agosomeone tried to persuade me that you don't do such things with Lisp This always puzzled me too. Admittedly it's less of an issue now that we can deploy programs over the web. But it's still kind of weird. Here's my speculative answer. The classic Lisp programmer doesn't care that much about building software for end users. He's more interested in amusing himself and, occasionally, other Lisp programmers. I don't mean to slam Lisp (which I love) or Lisp programmers (I am one). But I believe I have observed evidence of the above.
- 18y ago
- yawn 18y ago"The author compares using a language and web framework he knows to one he does not know and never tried." What doesn't he know? He's written at least one website in Lisp using SBCL+Hunchentoot.