Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
guscost
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
85 ms
·
931.
▲
by
guscost
9y ago
Corrupt institutions are trying to claim ownership of science? What a surprise...
932.
▲
by
guscost
9y ago
Just gonna leave this here for y'all: https://en.wikipedia.org/wiki/Robustness_principle
933.
▲
by
guscost
9y ago
Crazy like a fox! Seriously, I do think there's a targeted use case for this kind of convenience extension (protozoa itself is only 100 lines, it can be embedded pretty much anywhere), but I understand that it is totally counterintuiti
934.
▲
Show HN: Protozoa-tsx, a JSX-to-JSON adapter for protozoa
(github.com)
5 points
by
guscost
9y ago
|
2 comments
935.
▲
by
guscost
9y ago
:thumbsup:
936.
▲
Show HN: Protozoa, a micro-app generator
(guscost.github.io)
7 points
by
guscost
9y ago
|
2 comments
937.
▲
Future-driven development
(guscost.com)
1 points
by
guscost
9y ago
|
0 comments
938.
▲
by
guscost
9y ago
Also, the choice to tightly couple the "real" DOM with the program state is really interesting.
939.
▲
by
guscost
9y ago
You can even do React with JSX this way (but please still build for production systems): https://gist.github.com/guscost/27736c5f0913184695492ac40fd3...
940.
▲
by
guscost
9y ago
A totally valid use case for this would be to embed a few dynamic widgets in an otherwise-static HTML page. I've been trying that pattern a bit today. It works well, and seems to be a natural fit for this kind of framework. If anything
941.
▲
by
guscost
9y ago
Actually, there's a better method for embedding in an element: Just put the <script> wherever you want, but include an `id` in the configuration object that matches a <div> in your page.
942.
▲
by
guscost
9y ago
Here's how I understood it... The DOM elements aren't stateless, but they will behave like they are if you update every attribute that can change in the `$update` function. Really all you're doing is mutating the DOM object
943.
▲
by
guscost
9y ago
If you prefer, you could set up more compatible event handlers with jQuery or whatever in the `$init` function instead of using attributes.
944.
▲
by
guscost
9y ago
I think a message bus plus a bunch of autonomous mini-DOM element trees could be pretty cool. It might lead you to flatten the DOM too much for big apps though, not sure. EDIT: Whoops, it's pretty trivial to nest components and describ
945.
▲
by
guscost
9y ago
Ah yeah I think, I read a bit more and the idea of using pure functions to generate the mostly-JSON spec is actually really neat. But how can you handle many events and complex custom side-effects without adding bigger and bigger functions
946.
▲
by
guscost
9y ago
OK, first of all this is awesome . Great idea and I'll definitely try it out for a prototype soon. Second, this is a pretty normal ES5 framework though. It's just declarative, or based on convention, or whatever you want to call
947.
▲
by
guscost
9y ago
In my experience XAML can be a massive footgun if you don't know what you're doing. Sure, world-class geniuses are using it to build (still) the best IDE on the planet, but on your everyday development team it can backfire. One
948.
▲
by
guscost
9y ago
> until you need to make your algorithm go faster, at which point you need to target a real platform, not an imaginary one. ...also at which point you will be thinking "maybe I could have learned how to do this in a controlled envir
949.
▲
by
guscost
9y ago
Are you kidding me? It's not that I'm not political, but this isn't a place for doing anything with politics, it's for hacking and talking about that. Go away with this crap. Politics is OK to get into but I skip over an
950.
▲
by
guscost
9y ago
Neat - I kind of intuitively knew about B. from playing KSP, but the other two are interesting.
951.
▲
by
guscost
9y ago
Can a multimedia person make the video fixed on the servers instead?
952.
▲
by
guscost
9y ago
Every new person makes any crypto system less secure ;)
953.
▲
by
guscost
9y ago
At first I was just upset seeing another piece of speculative PR, I guess, so I had to make a salty comment. Of course your example is true too.
954.
▲
by
guscost
9y ago
⃰Unfortunately, still only after factoring in regulations.
955.
▲
by
guscost
9y ago
Go's difficulty comes from predicting a future game state, which is discrete and highly multiplicative . Novice players play on smaller boards. So humans are definitely going to lose to (relatively) simple discrete computation machi
956.
▲
by
guscost
9y ago
That's an interesting and scary idea, but keep in mind that a lot has happened since WWII. Back then industrial-mechanical cryptography was seen as this magic wand that made all communications completely inscrutable. Then the Polish an
957.
▲
by
guscost
9y ago
Eh, unlike some of the other conversations, politics is a saturated market. I'm not sure you'd hear anything new here, and it won't stand out in the noise anyway. Curious though, what would you hope to hear discussed? Geopoli
958.
▲
by
guscost
9y ago
What I should have included is the idea that just like with physical exercise, moderation is necessary. You don't see doctors recommending sitting all day to avoid wear and tear, because then you'll get blood clots and all sorts o
959.
▲
by
guscost
9y ago
Definitely, Linear Algebra is next up, and it is seriously needed.
960.
▲
by
guscost
9y ago
Thanks for writing this. It sounds like what I've experienced in this kind of work isn't just accidental. I am working on leveling up math skills to be able to understand the process for TensorFlow etc, but I get the feeling that
More ›