I wouldn't suggest it as a language to a novice coder, but for a third or fourth language, it's a language you can actually get things done in without too much fighting, with passable performance and rapid test/fix cycles. Perl makes it easy to write unreadable code - but it also makes it fairly easy to write clean code, with very nice unit testing components, including one that checks for the presence of documentation, and another that actually checks code style against best practices. I can't agree at all with respect to Perl, either. Yes, it has issues with whitespace that some people freak out over, but the language makes it easy to produce clean, modular and very readable code. But Perl? One might as well write it in VBScript. And ALL of those can be made robust and into clear, simple, GUI. C/C++ can be written on Linux, Mac and PC systems. Perl is almost as bad as FORTH for write-once, read-never. What problem exactly are you having with Perl? When Java gets the equivalent of CPAN or even PyPI, I'll re-evaluate it. Java would have at least been portable, but I've always found the integration of Java with the unix environment to be hideously clunky, and again, the free software library availability is close to nonexistent. (C or C#, maybe.) In any case, library support is poor and nonportable for it. (Mind you, if you *don't* have good habits, Perl will cheerfully load the fully automatic shotgun and pre-aim it at your foot, but that's another story entirely.) Why, oh why, cannot people write these in C++, Java or Pascal (Delphi/FPC/Kylix)?īecause it's a lot faster to develop in Perl, it's portable (EBook::Tools runs successfully under Windows, MacOSX, and many flavours of Unix), and if you have good habits the resulting code is substantially more readable and easier to build on. Perl, Yet Another Reason To Practice Retroactive Abortion! Now eReader2HTML.py works fine, but the new version, which I renamed eReader2pml.py, seems to think all three lines are bad/wrong/flawed. I inserted the lines - as written - in the appropriate places, and, of course, Under Python 2.6 it don't work. (this step will produce a file book.pdb in the same directory) And drag and drop the book.pml file on the drop book application. Insert after line 479 keep the same indent as line 479įile(os.path.join(outdir, 'book.pml'),'wb').write(er.getText()) Insert after line 476 keep the same indent as line 476įile(os.path.join(outdir + 'ook_img', name), 'wb').write(contents) Insert after line 470 keep the same indent as line 470 Install DropBook or MakeBook (obsolete java command line tool) Dropbook/MakeBook (tools to make eReader books)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |