threecreepio | 6 years ago | on: Never Use White Text on Black: Astygmatism and Conference Slides (2017)
threecreepio's comments
threecreepio | 6 years ago | on: What ORMs have taught me: just learn SQL (2014)
threecreepio | 6 years ago | on: Google Feedback on TypeScript 3.5
That's not really a typescript issue though, and it works great with libraries that don't use string templates. From what I've seen the angular community hasn't really prioritized a typecheck-able templating language.
threecreepio | 13 years ago | on: Ouya: A New Kind of Video Game Console
I wouldn't bet on that being a final controller, the video shows references to the buttons by letter, O, U, Y and A. (Can see them along the bottom of the screen while showing Canabalt)
The colors also appear to be the same as my old xbox-360 controller, but I don't keep up with consoles, so you may be right about that.
threecreepio | 14 years ago | on: Brief Video: Rewriting JavaScript into CoffeeScript
What I was trying to express was that I don't generally run into this issue in ruby because the similar looping constructs don't behave this way, and don't carry the same kind of unexpected side-effects:
def test(lst) lst.each{|i|do_stuff(i)} end
this method will return "lst" back to me, it won't create any new arrays of the do_stuff(i) results, the same goes for for/while loops, whereas: def test(lst) lst.map{|i|do_stuff(i)} end
will return the block results. The key difference being that the map method always creates an array and returns it, even if I would have a return; after, so it is consistent.The only situation where I get into the problem is with looping, and after some time using CoffeeScript, only rarely, so it may just be one of those things you have to put up with. Still crops up occasionally after refactoring though.
I would not want to get rid of implicit returns, and would far rather continue dealing with the loop problems than that. Would just love it if those weren't the only options.
threecreepio | 14 years ago | on: Brief Video: Rewriting JavaScript into CoffeeScript
When trying to port over some applications to coffeescript, I had to revisit a whole lot of my functions to add in an empty return; line after code like:
test: (m) ->
m(i) for i in this.set
Since I didn't really expect them to build up and return arrays of the results of invoking m, which at times could result in a method that would generate gigantic arrays that I would subsequently throw away, killing my performance.I probably should have expected that, sure, and if you don't have to deal with too much data it probably won't matter.
threecreepio | 14 years ago | on: Coding Horror: The End of Pagination
In the end we had to replace the endless bit with a big "load more" button though, for unrelated reasons.
threecreepio | 14 years ago | on: .Net Developer Shortage
But it takes the Microsoft stamp to get a lot of these people excited.
threecreepio | 14 years ago | on: Tell HN: Suspicious but well-meaning new spam accounts?
I feel plenty worse seeing users like http://news.ycombinator.com/user?id=EllieAsksWhy , with all their comments silently marked as 'dead' and made invisible without them having any idea what's going on, than I do having to ignore a few spammers.
(edit: note, you have to mark "showdead" as "yes" in your profile to see what i'm talking about)
threecreepio | 14 years ago | on: Introducing a new data structure, streams, in Javascript
threecreepio | 14 years ago | on: You can't google 9999999..99999999999999999999999