jayferd
Re:Show HN: Untrusted, a JavaScript adventure game you play by modifyi...
on Monday April 07, 2014 @01:41PM (#7548011)
Content note: plays sound.
Did the quick ^W at work :|
This is essentially where I'm going with ix. Vim with an awesome haskell-like language underneath whose syntax is optimized for doing powerful stuff in command mode.
A prototype is at https://github.com/jayferd/ixl-prototype
Re:The worst thing about CoffeeScript
on Saturday January 25, 2014 @07:06PM (#7123120)
I don't know if this can be solved without a syntax change. As long as there is variable binding and variable mutation are conflated in the syntax, there's really no good way for the compiler to distinguish between the two. It's an unfortunate design decision that we may be stuck with if we want back-compat.
LiveScript is interesting, but seems to have Too Many Features for my tastes.
Re:What I Didn't Say
on Monday December 30, 2013 @07:21PM (#6988082)
ah, thanks, i didn't know that trick.
Re:The Disinformation
on Monday December 30, 2013 @06:56PM (#6987969)
why are we still listening to arrington again?
Re:What I Didn't Say
on Monday December 30, 2013 @06:52PM (#6987946)
Here's a collection of other writings by pg about women: http://sambiddle.kinja.com/paul-graham-writing-about-women-o...
This would be different if there were no context, but there is a lot of context.
Re:What I Didn't Say
on Monday December 30, 2013 @05:46PM (#6987592)
not sure why i can't reply to ars_technician, but fwiw sexism is a problem that we need protections against.
Re:I worked on the US drone program. The public should know what reall...
on Sunday December 29, 2013 @06:01PM (#6981901)
Sarcasm is a brilliant tool to use against derailing.
Re:Creating Read-Only References to Objects in JavaScript
on Saturday December 21, 2013 @01:29PM (#6947437)
function makeRef(x) { return function() { return x; }; }
Re:Sexism and Tech and Love
on Friday December 20, 2013 @09:19PM (#6945401)
> Please stop. This attitude is offensive to both men and women.
Re:Sexism and Tech and Love
on Wednesday December 18, 2013 @04:46PM (#6931065)
That's up to you. Maybe that will become more clear as you see the social power imbalance more clearly. Perhaps your framing of the whole situation would change, I don't know.
Re:Sexism and Tech and Love
on Wednesday December 18, 2013 @02:36PM (#6930024)
> It's just a fact that men think a lot about sex
Please stop. This attitude is offensive to both men and women.
Re:Sexism and Tech and Love
on Wednesday December 18, 2013 @02:27PM (#6929944)
Yes, turns out it takes some effort to be aware of power imbalance and work against it. Those words have different social meanings when spoken to a woman than when spoken to a man.
Re:I found Prezi's source code
on Tuesday December 03, 2013 @01:02PM (#6841918)
"...and all I got was this stupid T-shirt"
Re:Eliminating Code Smell with Grunt
on Monday December 02, 2013 @11:29AM (#6834609)
s/Grunt/JSHint/
Re:Eliminating Code Smell with Grunt
on Monday December 02, 2013 @11:28AM (#6834601)
I use make.
Re:C is Lower Level Than You Think
on Tuesday November 26, 2013 @02:48AM (#6799758)
This is a problem in most imperative-paradigm languages, unfortunately. The issue is in the semantics of the `for` loop, which make everything confusing both for the programmer and the compiler.
De Bruijn indices
Re:How to design a class
on Friday November 22, 2013 @05:48PM (#6784262)
What's really missing though is unions with destructuring `case`. Once you start coding in a language with proper unions, it's hard to go back. In python it might look something like this:
DataType = union({ 'type1': ['field1', 'field2'], 'type2': ['field3'] })
DataType.type1(val1, val2)
DataType.type2(val3)
# pretend syntax
case datum:
DataType.type1(a, b):
doSomethingWith(a, b)
DataType.type2(c):
doSomethingWith(c)
Re:A spreadsheet in fewer than 30 lines of JavaScript, no library used
on Friday November 15, 2013 @01:50AM (#6738108)
=parent.location='http://www.google.com/'
hey look, a page redirect :D
Re:I Bought An Apartment To Rent Out On Airbnb
on Friday November 01, 2013 @05:07PM (#6656431)
"I'm buying up this incredibly valuable resource to lease it to people who only need it temporarily so I can turn a profit! Cool, right?"
Monad.py
Dudebros as a sublime expression of the absurd
Re:Finding Out You’re a Sexist, Misogynistic, Homophobic, Classist, Ra...
on Wednesday September 04, 2013 @03:24PM (#6329806)
Uh, it is not at all vitriol. You read the thing right? It's about self-discovery and the discomfort we all feel when we find out we're supporting violent or oppressive systems.
Re:Largest Homeless Camp In US is in Silicon Valley
on Sunday September 01, 2013 @09:24PM (#6312983)
Those... get bulldozed all the time too, unfortunately.
Re:Largest Homeless Camp In US is in Silicon Valley
on Saturday August 31, 2013 @12:53PM (#6307282)
These look an awful lot like homes to be calling the people living in them "homeless". I wonder what it would look like if the city didn't keep bulldozing them?
CODE Keyboards
Re:Gmail Overhaul Has Marketers Saying 'Ack'
on Friday August 16, 2013 @01:16PM (#6225351)
'Syn'
Re:HTML.js – Befriend the DOM
on Tuesday August 13, 2013 @05:34PM (#6208397)
I'm not sure what you mean by "cases where the return value type is actually unknowable". Does that mean you only return an Element when it's something for which there can be only one on the page (like document.body)?
As far as APIs go, one way would just be to return a list always. The DOM, afaik, returns a special NodeList thing that isn't even an array. ( https://developer.mozilla.org/en-US/docs/Web/API/NodeList?re... ). What's the actual issue with using wrappers?