Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
HeyImAlex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
HeyImAlex
10y ago
That moment when someone else already did your hobby project :congrats through tears:
92.
▲
by
HeyImAlex
10y ago
Definitely varies by the system, but, in my small-business internal-software experience, 99% of the time polling is good enough. Something feels innately ugly about polling, but it's simple, has failure modes that are easy to understan
93.
▲
by
HeyImAlex
10y ago
I don't know, different languages and environments need different things. I'm not sure that "package management" is as generic as it seems at first glance.
94.
▲
by
HeyImAlex
10y ago
Writing concurrent code in go takes a lot less thinking than js. Or... a different kind of thinking? But holistically I greatly prefer it for complex asynchronous code. Lack of generics on channels really hurts the library ecosystem though.
95.
▲
by
HeyImAlex
10y ago
> Or how to use {' '} to avoid having spaces rudely removed. I think you can type like you would do in html.
96.
▲
by
HeyImAlex
10y ago
Typescript is such a neat project. The js ecosystem is vast and diverse and the typescript team has the unique job of figuring out how to make common dynamic patterns type-safe and convenient. Like... that's so cool. Every little patte
97.
▲
by
HeyImAlex
10y ago
You're usually creating typed errors so that you can attach more structured information, so equality won't work anymore.
98.
▲
by
HeyImAlex
11y ago
It's used in the stdlib I think, you just need to recover the panics at your api boundaries.
99.
▲
by
HeyImAlex
11y ago
> There is no way I could have completed some projects with a small team, in a short amount of time if I had to use some like Go or Rust A fairly large internal php service at work just wasn't working well enough for us (for a lot o
100.
▲
by
HeyImAlex
11y ago
Further, very often we write code that isn't the code we need to write. I have wasted countless hours on needlessly efficient implementations of the wrong interface, or, on the other end of the spectrum, coming up with the perfect inte
101.
▲
by
HeyImAlex
11y ago
Until you want to align code on non-tab boundaries.
102.
▲
by
HeyImAlex
11y ago
What were you doing?
103.
▲
by
HeyImAlex
11y ago
If anyone is interested in PNG optimization in general, a wrote an article about it a while back. The deflate step is only one part of it! http://heyimalex.com/journal/png-optimization
104.
▲
by
HeyImAlex
11y ago
It does kind of matter, because compression isn't the only form of optimization that can be done. Consider a 32 bit png that is actually bilevel with no transparency. If zopfli just recompresses, PNGOut will still make smaller output b
105.
▲
by
HeyImAlex
11y ago
Think about it in terms of composability of validators; "having a key" is a property of the dict/object, not the value that is stored there. I feel your intuition, but experience says otherwise.
106.
▲
by
HeyImAlex
11y ago
Poster probably meant it makes writing non-mutative code easier. Never mutating by convention is how a lot of js is being written these days.
107.
▲
by
HeyImAlex
11y ago
Yeah, the event loop can be a constraint but it's easier to think about and harder to mess up compared threads or channels. And really how much are you giving up? Most of the things you actually want to wait on have an async api. Maybe
108.
▲
by
HeyImAlex
11y ago
Being the MITM isn't hard ("free public wifi"). That's one of the reasons we have HTTPS. If being MITM can get you around HTTPS then... that's not good.
109.
▲
by
HeyImAlex
11y ago
> Organizations like the NSA (and our future robot overlords) now only have to intercept our communications at a few sources to spy on us. If you had the hash of some content, couldn't anyone find all of the ips currently servin
110.
▲
by
HeyImAlex
11y ago
React is ultimately a framework for managing DOM mutations, so it would make sense that a pure logical model that doesn't touch the DOM also doesn't have a dependency on React.
111.
▲
by
HeyImAlex
11y ago
React encourages writing core logic in a DOM agnostic way. What you're saying is not only true of different frameworks; once code touches the DOM it's poison for reusability, and you can see it even inside of the react ecosystem.
112.
▲
by
HeyImAlex
11y ago
They're asking about an implementation detail.
113.
▲
by
HeyImAlex
11y ago
> Today, there’s a new trailblazer working tirelessly to alter the course of history. His name is Paul Elio. He is gearing up to become the next Henry Ford and this is the public’s first opportunity to invest in Elio Motors at the ground
114.
▲
by
HeyImAlex
11y ago
They are orthogonal; graph ql is for fetching data and is supposed to be an alternative to writing a new backend endpoint for every ui-thing that needs some slice of data, flux is a pattern for organizing data flow in the UI.
115.
▲
by
HeyImAlex
11y ago
They are the same I think, only one has extra parameters. At least in Python, @fn(...args) evaluates the function first and uses the result as a decorator. The guy who wrote the blog post you mention actually uses the parent's pattern
116.
▲
by
HeyImAlex
12y ago
Can't stand the clicking trackpad. Loved my $300 consumer grade Lenovo with buttons but my new thinkpad is so awful I've pretty much stopped using it. It never gets better, I haven't gotten used to it, and it's been six
117.
▲
by
HeyImAlex
12y ago
Honestly, smart move. I'm kind of embarrassed to say that I decided not to look into nimrod much, despite hearing great things about it from a few people, all because of the name. Figured that it would never gain any semblance of wide
118.
▲
by
HeyImAlex
12y ago
But you go to amazon because you want to buy something, not because you're feeling benevolent, so the expectation of needing to jump through the hoop is there and the necessity of doing it is real. Plus, once you've gone through s
119.
▲
by
HeyImAlex
12y ago
Came to write the exact same thing. I chatted with some other people on the react irc channel about it and interfacing with stores directly seems to be pretty common. It's been working well for me so far in the smallish app I'm wr
120.
▲
by
HeyImAlex
12y ago
Gulp needs a bunch of work IMO, too much emphasis on streams and not enough composability. Most of my tasks are gulp-esque through streams, and I use a lot of things from the gulp ecosystem, but gulp itself doesn't do a whole lot for m
More ›