Become a fan of Slashdot on Facebook


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:embedded dev (Score 2) 218

Why there isn't a proper alternative [WebAssembly?] absolutely befuddles me.

Why someone would need assembly for web client-side coding befuddles me.
When I need to write something fast I use Perl. When I need something to run fast, I use C.
Different languages are good for different situations.

Comment Re:Glueing things together is how I teach OO desig (Score 2) 237

I remember having a TA once challenge me - I had written an algorithm to operate iteratively, rather than recursively, because I had noticed the program would run out of memory if I did it the other way when fed large data sets - because to him, recursion was theoretically perfect and not using it was a personal affront. The fact that my code worked and his crashed after 4-5 minutes didn't matter.

Tail recursion optimization usually takes care of problems like that, assuming the problem was running out of stack.

Comment A poor workman... (Score 5, Insightful) 281

... blames his tools. Crap code an be written in any language. Good code can be written in PHP. While not my first choice of languages, I have found myself on PHP projects and been fairly comfortable using it although during moments of frustration put in comments such as "These following 10 lines could be written in the following one line of Perl...".

Comment Re:Yes & the sheer amount of existing code/fra (Score 1) 414

I strongly agree with the parent. My favorite language implements this in a similar way to the parent's favorite:

my @items = (1, 15, 27, 3, 54);
my @result = grep { $_ > 10 } @items;

I appreciate coding in a language that allows me to quickly and understandably (yes, Perl can be understandable... or not :-) get my thoughts into code. I used to enjoy coding in Lisp for the same reason (still would, if I could use Lisp at work these days). I enjoy coding in Java also, but the difference is noticeable.

Submission + - Make the case for Perl Deprecation (

helixcode123 writes: I (and likely many other Slashdot Perl coders) have been happily using to make our lives, or at least the part of our lives that spend writing server-side web apps, simple and trouble free. Easy to programmatically generate HTML, web forms, and so on. So I happened to be coding remotely today, and bring up the CPAN page only to find that it is now being deprecated in favor of other packages, mainly templating systems and frameworks.

Now, obviously templating systems and frameworks have their place, but I've always enjoyed the flexibility provided by the API. I'll often set HTML element classes according to data values, and likewise set content-releated elements according to the nature of the data. The trouble with templates is... they are templates. If content is highly conditional on the data, then I'm not sure how a template system would be better suited than the API provided by

So can any of my fellow Perl programmers give some advice to those of us that see no deficiencies in Are we just being old fogies unwilling to embrace the new and better, or are we wisely wary of the "it's better because it's new" bandwagon?

Comment Re:How to totally screw up my ability to code: (Score 1) 181

Musician and programmer here (see shameless plug below). I completely agree. One of my colleagues always has music playing in one of our coding labs. It's nice music, often Mozart, but it just yanks my concentration. When I code I like to be able to immerse myself in it. Music keeps me buoyed up at the surface.

Slashdot Top Deals

It appears that PL/I (and its dialects) is, or will be, the most widely used higher level language for systems programming. -- J. Sammet