Better HN
topnewbestaskshowjobs
Log inSign up

skilldrick

238 karma · joined Jan 14, 2010 (16y ago) · 61 submissions

Submissions

1.

Show HN: Easy Forth(skilldrick.github.io ↗)

122 points · by skilldrick · 11y ago · 24 comments

2.

Show HN: Easy Forth(skilldrick.github.io ↗)

10 points · by skilldrick · 11y ago · discuss

comment 14y ago · link · parent

Hey, thanks. Yeah, I haven't yet fully explained all of the simulator.

0xfe is a random number - a new random byte is generated on every instruction.

0xff contains the ASCII code of the last key pressed.

My simulator is adapted from the one at http://6502asm.com/beta/index.html - that has a help screen with some more info. I mostly cleaned up the (atrocious) JavaScript and added a memory monitor and disassembler (and implemented a few instructions they'd left out).

comment 14y ago · link · parent

> A friend of mine used to refer to code that was more art than engineering as “clever.”

I see "clever" code as the opposite of good engineering and art. Beautiful code isn't "clever". An elegant engineering solution isn't "clever".

5.

Three years on(skilldrick.co.uk ↗)

2 points · by skilldrick · 15y ago · discuss

6.

Closures vs Objects: FIGHT(skilldrick.co.uk ↗)

1 points · by skilldrick · 15y ago · discuss

7.

Understanding typeof, instanceof and constructor in JavaScript(skilldrick.co.uk ↗)

2 points · by skilldrick · 15y ago · discuss

comment 15y ago · link · parent

> As someone who conjured this exact thing up in another language after reading SICP

Me too! http://jsfiddle.net/skilldrick/vT2mC/

I didn't get very far with it though - the combined issues of JavaScript's lack of tail-call optimisation and its verbose lambda syntax made building streams to painful.

This looks like an interesting approach, though you'll never get around JS's heavy lambdas (unless you use CoffeeScript or something).

9.

If the only tool you have is Java, everything looks like a class(skilldrick.co.uk ↗)

1 points · by skilldrick · 15y ago · discuss

comment 15y ago · link · parent

Cheers. I guess you could call it an internal DSL, but I wouldn't call it an interpreter - all it's manipulating is the arguments object, it doesn't manipulate any strings. I'm sure string manipulation isn't the only thing that identifies an interpreter, but it doesn't seem like that to me.

11.

Making inheritable objects in JavaScript without objects(skilldrick.co.uk ↗)

3 points · by skilldrick · 15y ago · 2 comments

12.

Podcasts I listen to(skilldrick.co.uk ↗)

3 points · by skilldrick · 15y ago · discuss

comment 15y ago · link · parent

I'd recommend coming back and reading it when you've learned a bit more Ruby then. If you've "just started" then you probably don't yet have the experience in Ruby to understand what it means.

I understand that at a first glance this looks like basic stuff that doesn't explain anything useful, but with a bit more experience you'll see that it's fundamental to understanding how Ruby will react in certain situations.

comment 15y ago · link · parent

Haha I love it :)

comment 15y ago · link · parent

It's a bit like saying "I see a lot of women have jobs these days - does that mean that feminism is more than just a fad?" You're not going to get any helpful responses if you ask something inflammatory (and I think it shows maturity that no-one's flamed you).

Anyway, what would you gain from asking a bunch of Ruby developers whether Ruby is "just a fad"? This is hardly the best venue for that question.

Incidentally, I didn't downvote you, just thought I'd try to explain why nobody responded to you.

comment 15y ago · link · parent

> Note that this is a basic explanation, and glosses over higher-level concepts like the eigenclass/metaclass (I’ll leave that for a later post).

comment 15y ago · link · parent

It's essential to know this stuff to really understand how Ruby works. If you want to know which method is going to get called then you need to grok the object model. Classes in Ruby are much more than "fancy structs with allocation", and thinking of them in that way means you'll be losing out on a lot of Ruby's power.

18.

Understanding the Ruby object model(skilldrick.co.uk ↗)

43 points · by skilldrick · 15y ago · 19 comments

19.

Reflections from a Kindle owner(skilldrick.co.uk ↗)

2 points · by skilldrick · 15y ago · discuss

20.

Easy functional programming in JavaScript with Underscore.js -- part 2(skilldrick.co.uk ↗)

2 points · by skilldrick · 15y ago · discuss

21.

Easy functional programming in JavaScript with Underscore.js -- part 1(skilldrick.co.uk ↗)

5 points · by skilldrick · 15y ago · discuss

22.

Test-drive your JavaScript(skilldrick.co.uk ↗)

1 points · by skilldrick · 15y ago · discuss

comment 15y ago · link · parent

Completely OT, but when I saw your comment, I new I recognised your handle, but couldn't think why. I finally worked it out though - you answered my first ever Stack Overflow question in 2009! http://stackoverflow.com/questions/418465/is-a-preference-fo...

comment 15y ago · link · parent

What an arrogant comment. If you'd read the post, you would have seen that I said it's often not the bottleneck, but there are times when you need to get stuff out of your head as quickly as possible.

This "typing is not the bottleneck" is such a cliché - I nearly wrote about it in the article. It presupposes that programming is some kind of pipes-and-filters activity where we're thinking and then typing and then compiling. I don't know about you, but when I'm programming I work in different states. Sometimes it actually is about getting the code into the computer as fast as possible. Not all the time, but sometimes.

comment 15y ago · link · parent

Thanks. I'm on Ubuntu and did

    sudo apt-get install gtypist

comment 15y ago · link · parent

> any advice?

GNU Typist, and real discipline. Force yourself to do it their way.

comment 15y ago · link · parent

I don't think not being able to touch-type will get you fired (if you can type fast anyway), but I don't agree that "it doesn't matter".

comment 15y ago · link · parent

It's probably worth clarifying here that touch-typing is different to typing-without-looking-at-the-keyboard-(much). As knowtheory said, many presume that they're the former, when they're actually the latter.
123