News for hackers. Stuff that matters.
Re:Light Table - Embracing Abstraction by tisme on Wednesday September 26, 2012 @04:13PM (#4577772)
The video doesn't show any time marks so you'll have to interpolate the locations.

--

So the first thing I thought we would do is create a little custom git widget that shows the files modified in our repository.

So we add a custom object.

And we're going to write some clojure script code just to hold the state of our (circle??) the git status

We just need a way then to get that

So we ask the server for it

And... here we're just creating some html representation of our list of files

And then when we save

We're going to make sure we update

So if we run this

We should see

Yes, there we go we have a list of modified files

We can add some css to make it look prettier

And now I can just move this wherever we want

I'll put it down here

And let's actually open a file and modify it and prove that our widget is actually working

So, we have server.clj here

And when I save it

Yes, there we go

It's changed

And if I remove that modification, then it goes away, great!

Then I thought we should do something a bit more interesting than that.

I've been working on a game with my little brother

So let's build an environment to play that game in and work on it

It's written in Javascript so we're going to need a canvas element

So that we can put the game on the canvas

Canvas by default isn't visible so you dont't see it immediately

So Let's give it a background, black just so we can actually see that we added something.

here we go

And we'll move this over to this this side so don't have it in the middle of our workspace

And that as well

Let's run the game to make sure this is all working as expected

There's the game

there is the javascript file

execute it

there we go

Now we have the game running, You can see I can play it here

You can move around, some little bad guy shooting me. Cool!

now I talked about being able to build, to bring your abstractions into the environment

Let's control the game from light table

I add another custom object

We're going to create start and stop buttons for the game

We start writing the clojure script here

we create a little function to create a button

That has a label and an action

And here is our init which just returns the html that we want it to to be represented as

And you can see after executing it you get a start and stop

Some css here , that's a little too big

Let's actually shrink the font size a bit

that's still too big.. 11 60

Great, now if I click stop, he stops moving there you go

And If I click start he starts moving again

And you can see what this init function is doing is calling our javascript code

Move this guy down here

So let's take this up a notch

Let's actually bring one of the abstractions from the game directly in.

So games are usually composed of entities that get drawn to the canvas

So let's create a list of all the entities

to do that

We need some state for our entities

And a way obviously to add and remove them

And then we need a representation of them in html

We have this little item function

We're setting our on-add and on-remove functions within our game to our add and remove

Execute this and

Do the magic of some data binding here

We'll see that

Every time something gets shot a new entity is added to the canvas

So if I shoot this guy, he actually explodes into a bunch of shrapnel

let me show this

there you go

so there is a bunch of shrapnel that's been added

And as it sort of fades away it goes away again

Cool!

So we've actually created a little environment for our game here

the whole thing was less than about 50 lines of code

And it was completely trivial to build

there you go!

Fun little way to show how

You can extend light table

Re:Light Table - Embracing Abstraction by veb on Wednesday September 26, 2012 @04:20PM (#4577797)
No, you don't have to. It's just annoying when people give talks, or make interesting videos for a product and they forget about people who may be hard of hearing, Deaf or from overseas.

That's such a big chunk of the market that they're missing out on.

Re:Light Table - Embracing Abstraction by pc86 on Wednesday September 26, 2012 @04:50PM (#4577960)
It sucks that you have to put up with this, but let's not pretend it's a "big chunk."

According to the Journal of Deaf Studies and Deaf Education, an article published in 2005 cites 11MM HOH and deaf individuals in the United States[1]. The Population Reference Bureau cites 296MM US citizens in the same year[2]. It's important to note that according to the first source, "over half" of those that are HOH or deaf are over 65 - likely not the target market of this video.

Even if we were to completely ignore the demographic issue of who makes up the majority of HOH and deaf individuals, we're talking about just over 3.7% of the population in the US (I would assume it's roughly similar when extrapolated to the entire internet population).

I think that anyone for whom the HOH and deaf population was a target market would certain take every opportunity to make their materials accessible.

[1] http://jdsde.oxfordjournals.org/content/11/1/112.full - ABSTRACT [2] http://www.prb.org/pdf05/05worlddatasheet_eng.pdf - PAGE 2

Re:Light Table - Embracing Abstraction by dllthomas on Wednesday September 26, 2012 @04:55PM (#4577988)
It's a much bigger chunk if you include those with missing/broken speakers, easily annoyed roommates, a loud environment, or who are otherwise incapable of listening to sound, permanently or transiently.
Re:Light Table - Embracing Abstraction by alttag on Wednesday September 26, 2012 @05:18PM (#4578109)
I can't reply to the sibling comment (davidw's) about video (level cap?), but I vehemently agree. I can read much faster than most people speak, (and can't "skim" a spoken monologue), so I almost always prefer text to video.

I'm feeling increasingly like an old gaffer complaining about these "young 'uns" and their "yoo tubes" (at a middling 30-something), but I see this trend toward video when text would suffice as evidence of a societal lack of good (writing) education.

Sure, in the OP's instance, it's a presentation he made to someone else, so a video is probably easiest, but this was a good opportunity to rant.

EDIT: And now the reply link appears. Weird.

Re:Light Table - Embracing Abstraction by gizzlon on Thursday September 27, 2012 @04:09AM (#4579822)
.. but I see this trend toward video when text would suffice as evidence of a societal lack of good (writing) education

Think it's because there's so much written information now, I can't even read 1% of the stuff I want to. After reading "all day", good videos, e.g. talks, are refreshing.

Re:Light Table - Embracing Abstraction by dllthomas on Wednesday September 26, 2012 @05:40PM (#4578200)
My understanding is there's a relative level cap for the "reply" link, but no absolute level cap. So if you want to reply to something that lacks the reply link, click its "link" link to view it directly, and you can reply.
Re:Light Table - Embracing Abstraction by scott_s on Wednesday September 26, 2012 @06:27PM (#4578351)
It's a time delay, meant to discourage furious back-and-forths.
Re:Light Table - Embracing Abstraction by davidw on Wednesday September 26, 2012 @05:04PM (#4578035)
I loathe videos where text + pictures would suffice, and will not watch them if at all possible.
Re:Light Table - Embracing Abstraction by dllthomas on Wednesday September 26, 2012 @05:17PM (#4578101)
"Loathe" is way too strong but I also prefer writing to video most of the time. Still, I prefer video-with-subtitles to video-without-subtitles, if it's going to be video regardless, so I don't need to fish out headphones or whatnot.
Re:Light Table - Embracing Abstraction by dkersten on Wednesday September 26, 2012 @08:04PM (#4578668)
I like to scan articles quickly for keywords/key phrases/diagrams/code snippets. I'm often put off when something is in video for simply because this is not easy to do. Together with the sound issue in my other comment, this means that I often end up never watching videos that provide content I would otherwise have enjoyed or found useful.

Am I the one missing out? Probably, but I also pass a lot of content that I do like around to lots of people, so the authors also lose out on a potential fanbase/readership/whatever.

Re:Light Table - Embracing Abstraction by dkersten on Wednesday September 26, 2012 @08:00PM (#4578659)
Agreed - I currently do a lot of my work in a shared office space and I don't always have headphones. This is the place where I would watch a lot of videos (or at least take a peek, and if they're good, make a mental note to watch them later). A phenomenal number of videos don't get watched because I happen to not have sound for whatever reason at that specific point in time.
Re:Light Table - Embracing Abstraction by flatline on Wednesday September 26, 2012 @05:09PM (#4578062)
Interesting - 3.7% sounds quite large to me. Where is the acceptable cutoff for a site that is not catering to the hearing impaired? It is a large enough percentage of the population that it seems like definite loss to have that many people excluded from online video content, generally speaking. It is a very widespread problem.
Re:Light Table - Embracing Abstraction by aroberge on Wednesday September 26, 2012 @05:45PM (#4578221)
It is always much easier to criticize the work of others than to do similar work. Can't you be grateful that the author shared something of value, even if it is not perfect, rather than just deciding not to share because 1) there are no subtitles; 2) even if there were subtitles, they were only available in English; 3) the choice of colors is not optimal for people that are color blind; etc. Should they give up on sharing it, because they do not have the time to invest in making it better?
Re:Light Table - Embracing Abstraction by frio on Wednesday September 26, 2012 @05:57PM (#4578262)
Wow, this... surprised me. The lack of subtitles is a perfectly valid criticism. Going off on the guy because he asked for them is reasonably harsh.
Re:Light Table - Embracing Abstraction by aroberge on Wednesday September 26, 2012 @06:22PM (#4578335)
Do you have any idea how long it takes to add subtitles to a video? My point was, and still is, that it is always easier to criticize work of others (and complain when something is "missing") than doing the work yourself. If someone had come out and said: I've produced X videos and added subtitles to Y (where both X and Y are relatively large numbers) and I am disappointed that so few authors do the same ... then I would respect the statement as valid criticism.
Re:Light Table - Embracing Abstraction by frio on Wednesday September 26, 2012 @06:31PM (#4578365)
How can he do the work himself if he can't hear?
Re:Light Table - Embracing Abstraction by aroberge on Wednesday September 26, 2012 @08:12PM (#4578687)
You don't need to hear to produce your own videos AND add subtitles to them. Some people create, others criticize.
Re:Light Table - Embracing Abstraction by abraham on Thursday September 27, 2012 @02:21AM (#4579603)
_hard of hearing_ and _can't hear_ are very different.
Re:Light Table - Embracing Abstraction by dkersten on Wednesday September 26, 2012 @07:56PM (#4578643)
wow what a douchebag response. Its not this guys fault that he has hearing problems. Its a valid comment to make. The guy said he wished there were subtitles because he cannot hear whats being said and that he feels that people who don't add subtitles are missing out on a much larger audience. This doesn't sound ungrateful to me at all but a valid observation.

Can't you be grateful that the author shared something of value

Why should someone be grateful for content they cannot consume?

Should they give up on sharing it, because they do not have the time to invest in making it better?

He never said they shouldn't share it at all, he only said he wished they would add subtitles. Nowhere did he say "if they don't add subtitles, you know what, fuck it, they shouldn't share the video at all".

Re:Light Table - Embracing Abstraction by JoeCortopassi on Wednesday September 26, 2012 @06:06PM (#4578292)
"Wow, thank you tisme for taking the time to hand transcribe the video so I can understand what was going on. Must have taken a long time" ^FTFY
Re:Light Table - Embracing Abstraction by maxerickson on Wednesday September 26, 2012 @07:44PM (#4578609)
Prior to there being a transcription in the comment, there was an offer to do the transcription.
Re:Light Table - Embracing Abstraction by stickfigure on Wednesday September 26, 2012 @07:02PM (#4578463)
The author isn't forgetting people who are hard of hearing; he's just not addressing them. It's a perfectly legitimate choice to make. It sucks for you. It also sucks for the people who don't read Clojure. You can't blame the author because he isn't catering to your needs.

I've made webcast videos before. It's not easy. I also didn't caption them because it's a hell of a lot of work. Sorry. You can ask, but you can't expect.

Re:Light Table - Embracing Abstraction by tisme on Wednesday September 26, 2012 @04:41PM (#4577926)
> No, you don't have to.

Hehe, too late. Sorry ;)

Enjoy!

And I agree that there should be more consideration for people that are hard of hearing or deaf. Slides are a lot easer in this respect.

Re:Light Table - Embracing Abstraction by milesskorpen on Wednesday September 26, 2012 @04:35PM (#4577879)
While I think it would be great to provide the video to the whole market, I'm somewhat sympathetic — making a video takes a long time. Subbing it would make things take a lot longer. I could understand people deciding to just do an MVP which works for 90+% of the market.
Re:Light Table - Embracing Abstraction by stephengillie on Wednesday September 26, 2012 @04:26PM (#4577830)
Or people working in noisy places, or those without headphones or forgot them, etc.
Re:Light Table - Embracing Abstraction by metastew on Thursday September 27, 2012 @12:56PM (#4581581)
As a deaf HN'er, thank you for taking the time to transcribe the video. It was a big help.
Re:Light Table - Embracing Abstraction by batgaijin on Wednesday September 26, 2012 @04:23PM (#4577816)
That would be really great! I would definitely appreciate that.