HNHacker News
TopNewBestAskShowJobs

cmallen

82 karma · joined January 31, 2010

submissionscomments
cmallen··on Black Perl
This isn't really part of the usual work environment. Just because you can import a library and go nuts with it doesn't mean it's an everyday part of the language.

I mean really, kind of missing the point don't you think?

It's not even like Haskell makes it trivial to mutate the pointers in a natively Von Neumann-esque manner.

Monads don't count either.

Example: how often have you seen unsafe C# code (pointers) used in a production web app?

Counterpart to the above: How often do you see pointers used in C? All the time

Presenting the pathological case isn't refuting what I'm saying, it's just affirming it by showing how far you have to go out of your way to abuse your memory access, whereas in C, it's just a part of how you code. (Functors, for example.)

cmallen··on Can someone explain to me advantage of the Ipad over ASUS EEE multi-touch
>I would never consider Asus EEE obscure

I'd never heard of a multi-touch model before.

This is utterly beside the point. I just want the title of the post to link to the subject under discussion.

I don't want meta-discussion hand-wringing.

Just a link. This is YCNews, not the US Senate.

cmallen··on Ask HN: Anyone went from PHP to Python?
From my experience, going from .NET to Django/Python, the documentation on MSDN was superior.

I hate to say it, but that was what I encountered. The paucity of the documentation on Django is one of my primary irritations with it.

I still strongly recommend checking out Python and Django. Excellent and productive environments.

cmallen··on Can someone explain to me advantage of the Ipad over ASUS EEE multi-touch
In future, could you link the alternative product in question? I understand that it sounds incredibly lazy but I tend to scan many threads at a time and going on a google-hunt for something you wish to discuss makes my panda cry.

Not to mention that finding obscure taiwanese/chinese products can actually be mildly non-trivial at times.

cmallen··on Black Perl
I'm confused, are you a cuttlefish or a scuttlefish?
cmallen··on Black Perl
>IMO, this argument is a red-herring: you can write bad code in any language.

I would be delighted to see you cause a segfault in Haskell without taking advantage of an implementation bug.

The point isn't that you can or cannot write bad code in any language, it's not that simple. It's a matter of how difficult a language's semantics, type-checking, logical structures, and faculties make it to traverse the spectrum towards bad code.

Python has clean indentation baked in at the implementation. All major interpreted languages don't allow you to muck around with pointers.

Functional languages strongly discourage mutability. Object oriented languages are really just a foil for context scoping in various ways combined with somewhat sanitary code-reuse that is less likely to introduce type or memory sharing bugs.

It really bothers me when people say, "you can write bad code in any language". Of course you can, but that ejects the subtlety and reality of the matter into vacuum. You cannot disregard the effect of the programming environment on the code, and the supposed canard of Perl's write-once read-never is not false but rather, a tendency that it facilitates.

I mean, have you seen the number of operators in Perl?

http://tinyurl.com/badvbx (large 300 dpi jpg, Period Table of Operators in Perl)

While this makes Perl the king of golfing, the mental context it consumes to remember all the operators someone else may use in their code (but that you do not) makes reading their code a non-trivial task.

This is precisely the thing people complain about when comparing (unfavourably) C++ to C. There's just too much syntax and too many complicated interactions that make it nearly impossible to reason about what the code does, let alone any degree of referential transparency.

Potentially one of Lisp's most powerful attributes is as you may have heard, the lack of syntax. The one ever-present syntactic feature in Lisp (paren) is widely mocked as well by detractors!

Perl is awesome. It's erudite. It's a fantastic means of parsing and manipulating text (I vastly prefer Perl to awk/sed abuse except for in-line commands.) Perl documentation is really good too.

All the meta of what makes a languages pleasant to use, is mostly there for Perl, but the language itself is a syringe of heroin and rat poison, just begging you to abuse the power.

And don't mention CPAN. People who accuse Python libraries of being written by amateurs haven't seen the manifest horrors that exist in CPAN. Rubyists have it good by comparison.

Can we please drop the "you can write bad code in any language" line now?

← PreviousPage 2 of 2