Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?

Comment Like is Fine (Score 1) 127

I just took it to be something object oriented:

($happy_story)->like() = function () { echo 'Yay!!!' };
($sad_story)->like() = function () { echo 'I am sorry' };

(No the syntax above is not any particular language, which is good.)

Or as a layman would simply state, "It depends on the context."

Comment Re:Programming's a lot about design, so yes! (Score 3, Informative) 266

I would hire a gifted musician, painter, or journalist that shows the seed of understanding good design, over a humdrum programmer

False dichotomy. Sure a gifted musician may be better than a bad programmer. But why not hire a gifted programmer?

That's not a false dichotomy. A false dichotomy would be to say, "There are only gifted liberal arts majors and humdrum programmers." A gifted programmer would be wonderful, no doubt. Isn't that what I was saying a gifted artist might become?

What I was saying was, so important is a sense of design that it trumps college major, at least for entry-level programmer positions. Right now I'm looking for that PostgreSQL guy with 10 years of experience and a good sense of design, but . . . no dice.

Comment Programming's a lot about design, so yes! (Score 4, Interesting) 266

As a tech employer, I would not hire a liberal arts major for a technical position

As a programmer for ten years, I would definitely hire a liberal arts major for a programming position. After working alongside several and interviewing others, I have to echo the professor who wonders if his students have any kind of taste.

They may know the syntax. In fact anyone can learn that in a couple of weeks. What I keep running into, though, are programmers who can't program their way out of a paper bag, who would stare at me blankly if I quoted Brian Kernighan when he said "Controlling complexity is the essence of computer programming."

Actually lately it seems a liberal arts major is about as likely as a science major to know anything about design. But I will tell you that I would hire a gifted musician, painter, or journalist that shows the seed of understanding good design, over a humdrum programmer who's like, "If it runs it's good."

Comment Re:Maybe I'm too old (Score 1) 128

As a web developer, it's attractive to me because it would let me write my server-side and client-side code in the same language. It's a small nicety, not an earth-shattering advantage, which is why I haven't used Node yet.

In fact, I've grown so accustomed to Apache, with all its modules and short-and-sweet "programming" with just a few lines of declarative-language directives, that it's going to be hard to pull me to Node, or even Nginx for that matter. I guess maybe if I were writing a real-time chat or video streaming app for a large swath of users, or something like that.

Comment Quite a version jump (Score 1) 128

That's quite a jump in version numbers: from 0.12.7 to 4.0.0! Windows has got nothin' on that. From another article:

Having a converged project means converged release numbers which is why Node.js is jumping to v4.0 and avoiding overlap with any existing io.js version numbers.

This explanation doesn't persuade me. The version number is namespaced by the product name. It would have been Node 0.13, not io.js 0.13. I wouldn't have gotten confused.

I never heard about much version-number skipping until recently: Windows 10, PHP 7, and now Node 4. Has this always happened every now and then? It seems like before, doing just a dubious major-number increment, like from 3.4 to 4.0 instead of just to 3.5, would cause controversy.

Comment Put ads at the end (Score 1) 296

Put the ad at the end, not the beginning. It will be seen less but also hated less.

Do you really want to associate your brand with interruption and irritation?

When you click on a video, you're eager to see it, and here comes an add to kill the mood.

On the other hand, when you're done with a video, you're usually laughing or smiling or in a good mood, and there's maybe more of a lull as you try to decide what to do next.

Comment Re:Relevance? (Score 1) 158

At first my web stack was: 10% JavaScript, 60% PHP, 10% Apache, and 20% PostgreSQL.
Now it's more like: 30% JavaScript, 10% PHP, 20% Apache, and 40% PostgreSQL, as I learned more about those other layers.

I try to limit the PHP to just a thin connection layer to the database:

$db = new PDO;
$q = 'select a fairly refined query that does all the calculation and filtering';
$q = $db->prepare($q);

and as a templating language, using short tags and the alternate syntax:

<? foreach ($records as $r): ?>
        <td><?= h($r['id']) ?></td>
        <td><?= h($r['name']) ?></td>
        <td><?= h($r['note']) ?></td>
<? endforeach ?>

Comment Re:More and more abstraction (Score 2) 289

I agree. Something I read 10 years ago really resonated with me, and it refutes this whole idea. From The New Methodology (2005):

Separation of Design and Construction

"The usual inspiration for methodologies is engineering disciplines such as civil or mechanical engineering. . . . Many design decisions, such as how to deal with the load on a bridge, are made as the drawings are produced. The drawings are then handed over to a different group, often a different company, to be built. . . . This allows the construction to be less skilled intellectually, although they are often very skilled manually. . . . So what we see here are two fundamentally different activities. Design which is difficult to predict and requires expensive and creative people, and construction which is easier to predict.

". . . But here lies the crucial question. Can you get a design that is capable of turning the coding into a predictable construction activity? . . . The problem with a UML-like design is that it can look very good on paper, yet be seriously flawed when you actually have to program the thing. . . . This raises an important question about the nature of design in software compared to its role in other branches of engineering.

"These kinds of questions led Jack Reeves to suggest that in fact the source code is a design document and that the construction phase is actually the use of the compiler and linker. Indeed anything that you can treat as construction can and should be automated.

Comment Re:Is ANYONE editing this mess? (Score 1) 747

a) "an su." Write it like you'd say it

I've never heard it said ess yoo. I tried to google it but only found threads about sudo. They were split between soodoo and pseudo. No one was arguing for ess-yoo doo or ess-yoo dough. Come to think of it, there are several words like this:

Linux: lin nux, lie nux, lee nux
SQL: sequel, ess cue el /etc: et see, ee tee see, etcetera
Even punctuation has its variants.
More fun reading.