Ian Bicking: the old part of his blog

Re: Orthogonality is Pretentious

Are you saying for example, instead of:

nl2br() atob() footobar()

We have string.replace(in, out)?

I'm not sure how that seperates newbies from pros, when I want to do something in Python I still dir(), check docs, google... instead of nl2br() I find replace() (Of course this is a retardedly simple example, but still...)

Comment on Orthogonality is Pretentious
by Brett

Comments:

That's actually a very good example, because it's truly at the level where those beginning PHP people are enjoying PHP. Sure, a_string.replace('\n', '<br>\n') seems easy enough to me and you, but has a bunch of details as a prerequesite, details that get in the way of a beginning programmer coming up with that expression on their own (or at least, it would be a real and true programming task for them, where it's just an idiom for you or me). Obviously a more experienced PHP programmer could come up with that on their own, but they are already hooked at that point. (And at the same time I think there is a substantial group of PHP programmers who do not completely understand the inner workings of something like nl2br()).

# Ian Bicking