HNHacker News
TopNewBestAskShowJobs

NAFV_P

445 karma · joined July 27, 2013

A penniless amateur code-monkey.
submissionscomments
NAFV_P··on Why does Windows think that my wireless keyboard is a toaster?
All toasters are equal, but some toasters are more equal than others:

http://reddwarf.wikia.com/wiki/Talkie_Toaster

NAFV_P··on Extracting audio from visual information
The watery sounds you find when listening to low bit-rate mp3, there was a bit of that in the video, especially the "Mary had a little lamb..." skit.
NAFV_P··on Game of Hacks
> The code is unreadable (formatting) on a phone after 1.5 Manhattans.

I presume you mean http://en.wikipedia.org/wiki/Manhattan_(cocktail) ?

NAFV_P··on Show HN: QuoDB – Movie quote search engine based on subtitles
I typed in a few ARNIE quotes:

  Terminator:
    "nothing clean right" - no results
    "fuck you, asshole" - one result for Terminator, but the phrase occurs twice in the film.
  Predator:
    "If it bleeds, we can kill it" - Predator came up, and a few others (interesting).
  Total Recall:
    "Sue me, dickhead" - it got that one.
  Commando:
    "You're a funny guy Sully, I like you. That's why I'm going to kill you last." - no results.
I'm probably gonna spend all night on this.

EDIT: reformatted.

NAFV_P··on The Descent to C
> It is sufficient justification because the item has had significant attention within about the last year.

HN_FAQ > If a story has had significant attention in the last year or so, we kill reposts as duplicates. If not, a small number of reposts is ok.

Being a repost is not sufficient justification, as stated above.

EDIT: Cool Dang, I get ya.

NAFV_P··on Input: Fonts for Code
On the info page:

""" <div><span class="highlight">M</span></div>

<div><span class="highlight">M</span></div>

<div><spam class="highlight">M</spam></div>

<div><span class="highlight">M</span></div>

proportional fonts can make it easier to spot typos """

The example given demonstrates that a certain subset of typos can be caught using proportional fonts, but not all.

If a word has too many or too few characters in it, I think you are more likely to spot it utilising a monospaced font.

EDIT: the quote has been made more legible.

NAFV_P··on The Descent to C
> I don't understand why people would flag this. It's clearly not spam - do people really think this is not appropriate for hackers?

It has been posted before [0], but I don't consider that to be sufficient justification.

Perhaps it has been flagged because it is appropriate for hackers, the flaggers have not furnished us with any reasoning so it is anyone's guess.

[0] https://news.ycombinator.com/item?id=7134798

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> That is, is there some essence of your position which I haven't adequately addressed? If so, what is that essence?

That essence is something you and I have in common. I believe this thread sprouted because of how my original comment was interpreted. I think you are the first HN reader to actually give a decent word for word analysis of my comments. A lot of the time I just have to endure obvious misinterpretations, elaborations, misquotes or sometimes just plain fabrications. It's good to come across someone who takes time to read boring old English.

NAFV_P··on Introduction to Moose, Perl’s OO system
> Count which one occurs most frequently: people backing away like you've begun frothing at the mouth, people asking if you've ever heard of ANOTHER_TECHNOLOGY (usually Ruby, sometimes Python), and people who assume you're a sysadmin who occasionally scripts something (they'll ask if you've ever used Puppet or Chef).

If you were to 'speak' Perl verbatim, you probably would start frothing at the mouth (from exertion, not from a deadly disease).

NAFV_P··on “Theater” vs. “Theatre”: The Great New York Times Language Swap
Tokyo used to be called 'Edo'.

http://en.wikipedia.org/wiki/Edo

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> I'm confused. Maybe you posted the wrong link?

No, you're just confused. You mentioned the two statements in that link, but you have only described one. The other statement you referred to is from my original comment.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> Both of the statements in that link are just tautologies...

I do not understand, and there are four statements, not two.

> Right. And I'm saying that, in my experience teaching, it's better to teach CS and then let programming be something that kind of just falls out of that naturally, as opposed to focusing on programming itself.

Where did I say that the focus should purely be on programming?

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> There seems to be a misunderstanding of the word algorithm here.

I can assure you there is none , the misunderstanding is with my original comment: 'writing an algorithm'.

> You may know non-computer algorithms as "routines" or "procedures".

Like the algorithm "make a nice, hot cup of coffee", which is executed billions of times each day by biological computers known as humans.

EDIT: wrt my naff spelling.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> But -- to the refutation of your core argument -- it's definitely never insinuated in TG that the ideas don't exist independently of the programming. Such an insinuation, that geometry does not exist independently of a programming environment, is as absurd as the notion that algorithms can't be written without a machine.

Was that my core argument? My original comment (as pointed out by the omnipresent DanBC) was poorly phrased, and was rephrased as:

https://news.ycombinator.com/item?id=8126115

> If you can teach the student to think precisely and unambiguously about a single algorithm, the unrelenting logic of the machine is no stumbling block; quite the opposite, actually.

Of course it isn't a stumbling block, logical thinking is required for both, which would also explain why they are both difficult.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> My point was that "copy an algorithm into programming language X" isn't something which needs to be taught in the first place, and isn't an economically valuable skill because literally anybody can be taught this skill in a few weeks.

That depends on the language, I doubt you could learn much about programming in a few weeks, it requires lots of practise.

> If I had to choose between teaching why an avl balanced binary search tree works and forcing students to implement in a chosen programming language from pseudocode, I would choose the former every time. The intellectual maturity is far more valuable -- and harder to acquire -- than the rote skill.

You are giving yourself a hard choice, just demonstrate both sides.

From personal experience, I've been looking at bst's recently. While messing around in my code, out of the blue I decided to write the struct for the node like this:

  typedef struct avl_node_typed {
    avl_node_typed *left, *right;
    void *data;
    unsigned height, population; /* avl algorithm requires height, not number of nodes */
  }avl_node;
Then I realised that using this algorithm:

  avl_node *search_index(avl_node *node, int index) {
    int x=0;
    if(node->left)
      x=node->left->population;
    if(index>x)
      return search_index(node->right, index-x-1);
    else if(index<x)
      return search_index(node->left, index);
    else
      return node;
  }
I could access the nth node in a tree. I had rediscovered the algorithm of order statistic trees, which can be treated syntactically like an array (this can be applied to all ordered trees, not just avl). During this time I was looking up knowledge on avl trees and coding away on my machine. If I was purely focused on the algorithmic side, I don't think I would have found it.
NAFV_P··on Kids and parents turn to coding to boost college, career prospects
Harold Abelson, yeah? I was wondering what an assembly programmer would say to this.

> Learning the problem solving skills to create new algorithms is not so trivial, and often can't be self-taught.

Getting someone to put themselves 'in the shoes of a computer', is just as difficult.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> Is there a particularly pressing reason to teach students who to translate pseudo-code from Wikipedia into <insert favorite language>?

Yes, an avl balanced binary search tree can run faster on an artificial computer than on a natural one.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> That's confusing usage of "write an algorithm". There used to be a distinction between "programming" (creatig program structure; sequence selection iteration and all tha stuff) qnd "coding" (taking those paper notes and translating them into the particular programming language being used).

Apologies for being vague, I presumed the phrase 'writing an algorithm' was sufficiently precise.

> It's easy to find people who could create an algorithm but who cannot also code.

I rephrase that: It's easy to find people who could create an algorithm but can only target a specific architecture, human grey matter.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> You never followed directions until you learned how to program?

Of course I did (sometimes reluctantly). Before I learned programming, I couldn't 'write' an algorithm in a file and get a computer to follow those directions instead.

> I learned addition, multiplication and division algorithms before I even got a computer.

I know, subtraction is so damn hard to get right isn't it.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> I teach introductory programming to college freshmen. We usually spend the first few classes talking about, writing, and refining algorithms in clear and simple English before we even start talking about the programming language they're to learn.

Explaining algorithms to someone in clear and simple English will enable them to understand those algorithms, but a computer does not understand English. To 'write' an algorithm for a computer to perform, you need to code.

NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> Even today, if you're designing a truly novel algorithm, you're very likely to spend the bulk of your time not coding, and then coding only at the end as a sort of check to make sure you ideas work out.

If you cannot code, you cannot check that your ideas work out on a computer.

> Which is to say, from my observation, coding-as-problem-solving is not very effective until after you've thought things through in more general, mathematical terms.

I don't see how that relates to my comment, I specifically referred to 'writing' an algorithm, as in implementing the algorithm in code, not devising the algorithm in the first place.

NAFV_P··on Most Math Problems Do Not Have a Unique Right Answer
I believe this is based on an old Greek method...

  #define DECK 11

  double z() {
    const double s=2.0, c=0.1;
    double arr[DECK], low=1.0, up=s, inc=c;
    int j, k;
    for(j=0; j<15; ++j) {
      for(k=0; k<DECK; ++k) {
        *(arr+k)=low+(double)k*inc;
      }
      for(k=1; k<DECK; ++k) {
        if( *(arr+k-1)*(*(arr+k-1)) <s && *(arr+k)*(*(arr+k)) >s ) {
          low=*(arr+k-1);
          up=*(arr+k);
          break;
        }
      }
      inc*=c;
    }
    if( s-low*low < up*up-s )
      return low;
    else
      return up;
  }
This particular example only works to fifteen decimal places (roughly the limit on the precision of a double).
NAFV_P··on Kids and parents turn to coding to boost college, career prospects
> Broad computer-science skills that include technological awareness and analytical thinking are more important than narrow programming skills, Hartovi said.

"Learning how to code in any one particular [computer] language is not going to be worthwhile beyond 10 or 20 years," he said. "Learning how to problem-solve using algorithms and how technology works and how it's built is going to last a century at least."

I fail to see how you could write an algorithm if you don't know how to code.

NAFV_P··on A Buddhist monk confronts Japan’s suicide culture (2013)
Revelations 21:8 (King James Version)> But the fearful, and unbelieving, and the abominable, and murderers, and whoremongers, and sorcerers, and idolaters, and all liars, shall have their part in the lake which burneth with fire and brimstone: which is the second death.

It mentions sorcerers, other versions of the bible mention practitioners of magic. So basically most people who read HN are condemned to the Lake of Fire.

NAFV_P··on Now Then – the hidden systems that've frozen time and stop us changing the world
> In 1987 the growing paranoia finally burst out. The trigger was a BBC television series called The Secret Society made by an investigative journalist called Duncan Campbell.

In 6 half-hour films Campbell pulled what had been happening all together - and drew a frightening picture that still haunts the imagination of the liberal left.

Some Americans were already paranoid back in the mid 70's - Francis Ford Coppola's "The Conversation", with that well known and often mis-parsed phrase - "He'd kill us if he got the chance".

NAFV_P··on Ten Thousand Years
> Sidenote, I'm sometimes a little befuddled that we would be afraid of putting radioactive material in the ground. The ground is already full of the stuff, and we don't spend much time worrying about an earthquake spitting up a boulder of yellow cake in our backyards. Ok, the concentration is different, but sometimes it seems like worrying about putting salt in the oceans.

Not only is the concentration different, but also the composition. I haven't heard of plutonium occurring in nature.

NAFV_P··on How recursion got into programming: a comedy of errors
> Stack limits are pretty large. It's a natural way to express many problems such as graphs (and their subsets trees).

Coincidentally, I had a stack overflow while working on some trees a few months ago, it ate all my ram within about 2 seconds. Although my stack was sizeable, my program was blind and unaware of the stack limit.

NAFV_P··on No skin thick enough: The daily harassment of women in the game industry
> "They filled my Tumblr mailbox with the usual anon posts like, ‘Die, you fucking cunt!’ And, ‘You'll know when I rape your mouth hole, bitch!’ When I turned off anonymous messages, they made new Tumblr accounts and continued to spam me. Later, they discovered the link to my personal webpage and sent hate mail through there. I still get an occasional random hate message through my website."

There is an assumption that all these anonymous posts are from men, but there is the possibility that some are from women.

I've read a few articles like this, but I cannot remember one which looks at sexism from a world wide web oriented viewpoint.

NAFV_P··on Psychedelic mushrooms put your brain in a “waking dream,” study finds
How about: http://en.wikipedia.org/wiki/Naked_Lunch
NAFV_P··on The Two Cultures of Mathematics (2000) [pdf]
Or the fence sitters lean one way or the other depending on their mood/requirements.
← PreviousPage 2 of 23Next →