Paul C. Anagnostopoulos
Nap, interrupted.
- Joined
- Aug 3, 2001
- Messages
- 19,141
No, a guy much more screwed up than that. I think his name is Wall or some such.Kevin said:Wouldn't, biblically speaking, the Devil's Mentor be god?
~~ Paul
No, a guy much more screwed up than that. I think his name is Wall or some such.Kevin said:Wouldn't, biblically speaking, the Devil's Mentor be god?
You can't. Well, if you PM me I'll send you the spec. It's my own language, which compiles to TAWK. TAWK is an extended version of AWK produced by Thompson Automation. Unfortunately, they don't support it any longer.Unnamed said:It's not the first time you mention that (Gossip), but Wikipedia and Google came empty again. Where can I find information about it?
You are correct about Python, but Perl is the work of the Devil's Mentor.
Purely out of curiosity, why such disdain for Perl?
I'd never use it for a major project, but I find its easy to learn the basics and there's more free documentation than you can shake a stick at. I use it much in the same way I'd use a Swiss Army knife, handy and great for small and/or repetitive tasks.
I like Python a lot. I REALLY like it that indent determines scope. No sloppy indenting in code, since it wouldn't even work that way. I've had a much easier time reading Python code because of that.
Conversely, I found Perl had a very steep learning curve initially. It's fine if you're already familiar with the stuff it's designed to replace like sed, grep and awk, but otherwise, it takes a bit of getting used to.
Thanks for the offer, but I was just curious to see an example.You can't. Well, if you PM me I'll send you the spec. It's my own language, which compiles to TAWK. TAWK is an extended version of AWK produced by Thompson Automation. Unfortunately, they don't support it any longer.
If you're looking for a quick and dirty solution for simple math, why not just use Excel? It has VBA behind the scenes if you have logic that can't easily be done in spreadsheet.
It's a classic example of some guy's twisted language design that he foisted on the world. Anyone who can't tell me the collective term for the characters $, @, %, and & has no business using the language. And even with that, Wall misused the term. It's an abomination of hacks and kludges. Maybe the total redesign that is Perl 6 will be better.Zizzy said:Purely out of curiosity, why such disdain for Perl?
Here's some code that gets a list of files in a directory (all_files), builds a set of the .pdf files (pdf_file), determines a special sort order for the files (pdf_sort) along with an explanatory note, and then lists the files in that order. determine_file_note() is an example of a function that returns multiple values. You need to know that in a function, undefined names of 1 or 2 letters* are automatically defined as local variables.Unnamed said:Thanks for the offer, but I was just curious to see an example.
#macro emit (rest body)
format(#body, standard_output)
#mend
constant file_format = " ~18S ~S\n";
function file_report ()
{
local all_files := directory_files(pdf_file_dir);
foreach f in all_files do
pdf_file[downcase(file_name(f))] := nil if file_ext(f) = "pdf";
foreach f in pdf_file do {
(pdf_file[f], s) := determine_file_note(f);
pdf_sort[s] := f;
}
if empty? pdf_file then fatal("No PDF files in the directory.");
foreach s in alphameric_order pdf_sort do
emit(file_format, pdf_sort[s], pdf_file[pdf_sort[s]]);
}
If you are on a budget, C++ is the way to go. You can get a compiler for free. For XP I would either grab the free version of VC++, or go with MinGW, which is the port of gcc to Win32.
There are also a ton of free libraries for math programming. Check out, for example, the gnu scientific library (GSL). For that matter, I even wrote a C++ math library.
The point is, while C++ is not the easiest language for math programming, it is the most powerful (which is to say, it is equally as powerful as anything else available), and you can do pretty much anything you need for free.
Dr. Stupid
Just to stick my oar in one more time: The D&D book is entirely adequate if you like textbook-style books - it has more coloured boxes and checklists (and questions, if you like that sort of thing) than you can shake a stick at. It also rejoices in what seems like a billion different typefaces to illustrate the different parts of a program. This has the opposite effect of what's intended - making it harder to read the code than if it was unadorned.If you decide to program in C, Dietel and Dietel's "How to Program in C" is absolutely excellent.
But at least no crusades or jihads yet.Marting said:Who says programmers don't have enough sects?
Absolutely right on, man! I often ask authors why they want to use bold for language keywords. "It helps to read the programs." If the reader doesn't understand the language well enough to recognize the keywords, he's got bigger problems, my friend.JamesM said:It also rejoices in what seems like a billion different typefaces to illustrate the different parts of a program. This has the opposite effect of what's intended - making it harder to read the code than if it was unadorned.
EDIT: Also please don't use visual BASIC, or anything with the word BASIC in it for that matter. In words of one greater than I, "It is practically impossible to teach good programming style to students that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." (Edsger W. Dijkstra: Selected Writings on Computing: A Personal Perspective)
For example, a tokenizer with state transition logic. Jump around between those states, baby!Rockoon said:This is the same guy who absolutely refuses to use a GoTo even when a GoTo is the best tool for the job. He would have had a point if languages offered a flow control paradigm for every job.. but they don't.. and he has absolutely no point in regards to modern Basic designs which is actualy forgivable considering he wrote all that junk prior to modern Basic design.