Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lrichardson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
lrichardson
12y ago
Question: I know that the `:visited` exploit is handled by the browsers so that you can't figure out by javascript what is going on... but what if you used just CSS to figure it out? For instance, what if you generated the CSS which h
32.
▲
by
lrichardson
12y ago
relevant: "It’s Insanely Easy to Hack Hospital Equipment" (wired.com) [article]: http://www.wired.com/2014/04/hospital-equipment-vulnerable/ [hn thread]: https://news.ycombinator.com/
33.
▲
by
lrichardson
12y ago
When I was designing our office I had dreams of having giant wall-covering white boards everywhere. Of course, to save costs, we tried using the shower board material from Home Depot like this post is suggesting. The ghosting ends up being
34.
▲
by
lrichardson
12y ago
I haven't had a chance to try purescript yet, but I have looked at it. Really though, I love JavaScript, and don't have much desire to use another language that that transpiles into it...
35.
▲
by
lrichardson
12y ago
@platz, yes, this is correct. When currying and/or composing functions, it becomes more difficult to determine the input/output types of the function since the function signature won't be right there. I'm borrowing the
36.
▲
by
lrichardson
12y ago
This is very interesting. I'm not so sure this wouldn't trip me up some times though. What if the first argument you are expecting, is supposed to be a function? I would think that would be a pretty common scenario... Unless I&
37.
▲
by
lrichardson
12y ago
I was thinking about whipping together a perfJS for the curry function and putting it in the post but ended up not... I might make one and post it back here. --- UPDATE: I made this jsperf: http://jsperf.com/curry-function
38.
▲
Functional JavaScript, Part 4: Function Currying
(tech.pro)
27 points
by
lrichardson
12y ago
|
23 comments
39.
▲
by
lrichardson
12y ago
I guess I didn't mean for it to be misleading, but I wrote the example like I did on purpose to show that in OCaml, the arguments are curried by default... that there is no need to have the `fun` keyword 3 times. The misleading part wa
40.
▲
by
lrichardson
12y ago
Yeah, I think I sometimes weave back-and-forth. I try to avoid thinking about "micro-optimizations", but can't help myself. As I'm writing this series I'm compiling together a small and opinionated library that uses
41.
▲
by
lrichardson
12y ago
Yes and no. Some of this is that JavaScript is just not very well equipped to do functional programming. For instance, the nesting of functions in JavaScript is not only verbose to write, it also introduces a lot of noise in the code. One p
42.
▲
by
lrichardson
12y ago
That is great feedback. I am actually working on creating a "functional" version of the 2048 game, along with my own implementation of the AI solver, as part of this series. Kinda goofy, and maybe not a "real world" sit
43.
▲
by
lrichardson
12y ago
Having read the book, I can definitely recommend it. Along with the book, Braithwaite created [allonge.es][1], a functional js library which follows much more closely how I would create a FP utility library in JS (versus, something like lo-
44.
▲
by
lrichardson
12y ago
author of the article here: this is part 3 of what will likely be a 6+ part series... as a result, this post is still sort of "laying the foundation", before getting to some of the "fun stuff". In any event, would love
45.
▲
by
lrichardson
13y ago
I remember being pitched this idea at START pitch day - I really think it is a great idea. I agree with the comments above: "OpenTable for camps" is a much better (or at least more recognizable) comparison than Expedia. Congratu
46.
▲
BQL: A SQL Superset Language Proposal
(tech.pro)
2 points
by
lrichardson
13y ago
|
0 comments
47.
▲
by
lrichardson
13y ago
driverless cars. I think google is years ahead of everyone else here, and it will be a product that will be high price, high margin. And the market is huge. I really don't see how google could walk away from that one without gobs of ca
48.
▲
by
lrichardson
13y ago
this is honestly the most annoying thing about go for me. Really hard to do a quick google search for an answer to something!
49.
▲
Working with Typed Arrays in Knockout.js
(tech.pro)
3 points
by
lrichardson
13y ago
|
0 comments
50.
▲
Meet the New Tech.Pro
(blog.tech.pro)
2 points
by
lrichardson
13y ago
|
0 comments