Kahlil (Kal) Hodgson
- About: Leaking memory all over the place.
Recent Actions
-
Posted Testing and Validating HTML Templates to Kahlil (Kal) Hodgson
Here’s a little trick I’ve been using for a while to help ensure that a large unit test all your templates: the trick is to make it really easy with a helper class:
package M…
-
Posted Hubble, Bubble, Toil and Trouble: Catalyst, Bootstrap and HTML::FormFu to Kahlil (Kal) Hodgson
I thought I would share a little trick I use to get these three complex and
Catalyst
andHTML::FormFu
are a powerful combination that allows you to tie the form displaye… -
Commented on On the relative readability of Perl and Python
Perl gives me more ways to write the same thing, so I get to choose which is the most readable....
-
Posted A Catalyst Service Bus (from scratch) to Kahlil (Kal) Hodgson
In the following I describe how to build (from scratch) a simple Catalyst applications.
Here I'm using the term service bus to describe an application that provides web services to other applications (rather than, …
Comment Threads
-
QM commented on
On the relative readability of Perl and Python
In several places above there is still a small typo: != ‘bob’ should be ne ‘bob’.
-
Nathan Grigg commented on
On the relative readability of Perl and Python
You can always do
if test: i += 1
, no newline required. This is about the same as the Perl example.For list comprehensions, nothing is preventing you from using line breaks to make things more readable:
values = [x.value for x in list if x.value > 4 and x.name != 'bob']
-
Joel Berger commented on
On the relative readability of Perl and Python
No, the example had a print (well say) in it too, including that it must be three lines, but again that’s just a nit
-
Manuel Ceron commented on
On the relative readability of Perl and Python
I’m a Python developer but I started coding Perl full time since a little bit more than a year. It’s true that Python has many quirks. That happens with any language that is more than 20 years old. But I think Perl probably has more quirks than Python.
I think one reason why people think that Python is more readable is because it’s simpler. Both syntax and semantics are simpler. Less operators, less constructs, less ways of doing things. In practice this means that you can understand any Python code after an afternoon. While the same thing for Perl takes years.
… -
jjolla888 commented on
On the relative readability of Perl and Python
All languages suck. I have only come across one syntax that I mostly like (unfortunately you cant do much with that particular one).
So Perl v Python arguments centered around syntax are somewhat irrelevant. You will find godawful things in both of them.
For me, the only things that matter are:
(i) lots of powerful libraries (ii) good documentation (iii) helpful communities (iv) speed [for some things]
My main toolkit is made up of Perl, Python, Go, and C.
Perl nails (i), (ii), and (iii). It is the super-glue that allows me to write small prog…
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.