4 ms·
Without being able to see this code that was easier to write in Python than Lisp it's impossible to say for sure, but it seems likely that the differentiating f
by pg 19y ago
Without being able to see this code that was easier to write in Python than Lisp it's impossible to say for sure, but it seems likely that the differentiating factor was libraries, not the core language.
- bootload 19y ago"... it seems likely that the differentiating factor was libraries, not the core language. ..." Absolutely the libs make the difference. [0] But are there other forces going on that limit language choice and adoption? I'm thinking of say Perl. Perl has CPAN, which kicks pythons pants , hands down when it comes to the variety of usable tested modules. Is it the Perl syntax or core language that scares off the hackers? My own pet theory is that it's not the hackers who ultimately decide the language(s) they use at work. Additional libs don't matter as much as the initial (fad) language the code base is written. It is the companies (and PHB's) that hackers ultimately work who determine language choice. In the end hackers just give up. One more reason to "start a startup". You can choose the best tool(s) for the job. [0] A friend of mine, a strictly "ANSI-c" man wondered how I could code the rings off him. Then I showed him the Python libs I could choose from. He had to download the source code, compile it, learn how to use it at 'c' level and then do the job. For example regular expressions.
- cstejerean 19y agoLibraries are important but code has to be easy to read. You have to be able to easily read the example code for the library you want to use or to read other's code and learn from it. That's what scared me away from Perl and really why I still mainly use Python over Lisp. But each person finds different things easy or hard to comprehend. It mainly depends on your background and what kind of patterns the brain becomes accustomed to.
- Tichy 19y agoMaybe the hacker who can produce error free code in Perl does not exist? If even hackers sometimes make programming errors, perhaps most of them were smart enough to eventually figure out they could minimize that problem by moving away from Perl. Most companies I know actually asked their developers which language they should choose. Typically there is a decision eventually to concentrate on a limited set of languages, but choosing that or those languages is not usually being done without consulting the developers.
- bootload 19y ago"... perhaps most of them were smart enough to eventually figure out they could minimize that problem by moving away from Perl. ..." It does require dev's have to be better programmers. There are plenty of ways to make Perl code safe. Maybe you have to work harder at it? "... Typically there is a decision eventually to concentrate on a limited set of languages, but choosing that or those languages is not usually being done without consulting the developers ..." I agree with the limiting of languages. But I've yet to see languages chosen purely for good technical reasons. [0] And this is one reason I think Lisp gets pushed out. [0] PHB's dont like you re-writing code from scratch so you could be forced to work with what ever was previously chosen ~ http://www.joelonsoftware.com/printerFriendly/articles/fog0000000069.html http://www.joelonsoftware.com/printerFriendly/articles/fog00...
- cstejerean 19y agoLisp code is written to be easily parsed and manipulated by software. Python is written to be easily parsed and manipulated by humans. When I first came to Python I didn't need to become an expert Python programmer to understand Python source code without much effort. But I still haven't gotten to the point of looking at a piece of Lisp code and right away having an idea of what it does. Eventually your brain recognizes the patterns (but heck if you write assembly long enough you start to see the patters of common C control structures). But I think it all depends on the problem at hand. Certain things I can write faster in Java than Python (occasionally static typing and interfaces can make large programs easier to keep in one's head and work with). Most things I can write easier in Python. And a few things I can write easier in Lisp (primarily writing programs that manipulate trees and essentially create mini-languages).
- curi 19y agoin lisp you write trees. in other languages, you write weird things that get turned into trees, seemingly by magic. other languages seem easier to understand, to most people. this is because they have a lot of experience with all that magic -- it has become a tradition. if you're better at normal languages, go ahead and use them. i don't care. but they are not objectively easier to read, they are much harder and more complicated.
- greendestiny 19y agoYeah I know the lisp trees thing is something that gets said a lot, but I really don't see how inexplicable the transformation of other languages into trees is. Ultimately in lisp you have the most flexibility in manipulating the tree, but a little study in compilers and formal languages and its obvious that all languages are describing trees. Objectively easier to read? Thats a strange road to go down. Theres no reason that languages with grammars that generate strange and wacky trees might not suit a human's ability to describe formal solutions better. I think the reason people find languages like C easier to understand is all in the state handling anyway.
- curi 19y ago
- BrandonM 19y agoFor me, the Python module system and documentation wins hands down. I keep telling myself that at some point, I'm going to dive into Lisp and never look back, but Python's module system is very easy to use, and this lends itself to a very nice standard library as well as easy-to-install libraries. Not to mention that every module is well-documented often with real world examples a Google search away. With Lisp, I have honestly tried to find good documentation on its module system, and I have tried my best to understand the workings of ASDF, but when it comes down to it, I just don't have the time to muck around with stuff that is so much more difficult. The simple fact is that if I need to get something done, it's going to be in Python for the time being, and who knows when I'll get to the point where I'm not coding against a deadline, the point where I'll be able to waste some time really learning Lisp.
- davidw 19y agoMaybe there is a relationship between code being easy to approach and friendly even to non-brilliant-hackers, and those hackers going on to produce libraries that, while they may not be brilliant, do manage to do useful things, thus making the language more appealing for future decision makers, who are then even likelier to choose the more approachable language with more libraries. If there is also a culture of quality, it will keep the non-brilliant coders honest, and from adding actual bad code.