- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
CAPTCHA: haero -- the new flying rabbit.
Admin
be happy that it is not in visual basic 6.0
Admin
I'd rather have VB6 than anything like Perl or Java.
Admin
Looks like you got some CodeSOD in your Feature Article, there.
Admin
Admin
Okay. Name me one thing that's better in Python (indentation doesn't count) or PHP, just one thing that makes Perl worse.
Perl as a language is very efficient in separating the wheat from the chaff. It looks like your preconceptions have been made by evaluating code written by the chaff.
Admin
He totally should have used Fibonacci lengths:
That would have been so much more impressive a display of knowledge! Not to mention more extensible!
Admin
Yes. You are so right. Because writing it in Python would have made it sooo much better:
Wow. What a difference!
Admin
Big deal. People who don't know x will get it wrong..for any value of x. So what you're saying is that you keep your own personal DailyWTF for $JOB, and you're blaming it on Perl?
Admin
Trade'ya.
Admin
Much like your redundant usage of "also" and "too", the term "scripted languages" doesn't convey any meaningful information. I'd expect someone bragging about fifteen years of programming experience to have identified that long ago.
Admin
"good PHP"? PFFFTAHAHAHAHA! PHP is defined by it's reference implementation, which is written in C. C has implementation-defined and undefined aspects, which the PHP reference implementation uses. PHP defined through translation using an Intel compiler on an x86/64 architecture may be very different to PHP defined through translation using a gcc compiler on an ARM architecture. Depending upon how you look at it, there are either a large number of "PHP languages" due to subtle differences in compilers and/or architectures, or the "PHP language" is vague, unportable or buggy.
Admin
faoileag was clearly talking lines of code being a poor measurement of expressiveness, not optimisation. If you were to run the same Java program on a VM from fifteen years ago, it's probably take about a week. Does it make sense to attribute speed to language? Not really, no.
Admin
Stop confusing implementation and specification...
Admin
You're just pulling my leg now. No one in correct frame of mind would select VB6 over Java. What chemical imbalance is your mind going through? drink some coffee. that is knowing to correct most imbalances.
Admin
Completely disagree. FRIST!'s the only meme that still makes me laugh. Reminds me of a dog I used to have. Wagged his tail so hard he fell over whenever someone he hadn't seen for a while came through the door.
Also, your on the internet, old man, so watch you're grammer! Comparators like smartah and wisi should always take "then" not "than" as there preposition, especially in comments that comment on memes.
(Oh the glare, the glare, my eyes, the glare, it hurts!)
Admin
Dude, you have no idea. What makes Python awesome is that it gives you a way to deal with new lines!
linebreak1 = """ """
linebreak2 = """
"""
...
Try doing that in perl.
Admin
Admin
Admin
Good PHP? Good PHP!? ... BURN THE HERETIC!!
Admin
@Bananafish @CharlesF
Props for making COBOL work to do your bioinformatics scan (presumably chunking up groups of codons in DNA/RNA/Protein???)
As to the assumption that "Java can do anything, better". No, it can't, not always. COBOL has a thing called "redefine" that lets record definitions overlay each other. Of course, as somebody pointed out, you can also do this in C with a union. I'll add in Pascal, with a variant record, for completeness. (I'm sure there are other Algol derived languages that do this as well, but I know Pascal & C)
Since there are a small number of symbols, we just need what are essentially byte arrays (rather than unicode), and a way to re-anchor the start of the current region quickly. Using the alternate record interpretation allows a quick jump ahead to the next "check point" within the array. Perhaps pointers in C or Pascal would have been better at doing this, but the guy made something work, quickly on large data sets.
(large data sets are something Java sucks at, though it's good at haphazardly concatenating together result sets from a database, which did the heavy lifting, into a markup template)
Maybe you could use a byte array in Java, and an index value to skip around in it, but I suspect it would still be substantially slower than the old-school manual memory management languages. It would likely be faster than reading data as String in java and doing substring calls on it, but still a fair amount slower than the "archaic" languages some of us learned once upon a time.
Signed, Roboprog, a Pascal, er XBase, er C, er Perl, er Java, (and whole bunch of other crap) programmer
Admin
Bash is great, and 300 lines is not that long. I'm at a fortune 500. We probably have over a thousand bash scripts for batch processing, many of which are several thousand lines of code. That's my favorite part of our code base :)
Admin
Well I don't have to keep one for C++, C or Python…