Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exogen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
exogen
8y ago
I see you have never had to implement Promises in userland. :) setImmediate is one of the more popular polyfills in fact, all the workarounds you mentioned either have downsides or are ugly hacks. It's useful to anything that has a sch
152.
▲
by
exogen
8y ago
> Microsoft has hardly offered much as far as competition and diversity goes since IE6, basically the only web "innovations" they're responsible for is a bunch of IE-specific APIs that didn't work in any other browser
153.
▲
by
exogen
8y ago
> Also, with css in js I believe that pseudo elements and animations are an issue Here you might be remembering a particular, older technique known as "inline styles." This is probably the oldest CSS-in-JS technique, and has gr
154.
▲
by
exogen
8y ago
I'm going to assume that SASS Modules are a SASS adaptation of CSS Modules, because it seems like "modules" might have multiple meanings in the SASS world? So please tell me if this is wrong! I've used CSS Modules and en
155.
▲
by
exogen
8y ago
While that is a benefit, I think that's underselling it a bit. It certainly enforces more organization & discipline, but some benefits are more concrete and technical. :) For example: sending down only the critical styles needed to
156.
▲
by
exogen
8y ago
As someone who works for a popular consultancy that helps out developers at big companies and reviews their code: ANY library you can point people to and say "do it this way" is an absolute godsend. You really do not want large nu
157.
▲
by
exogen
8y ago
Reusability, which software folks generally consider to be a good thing. Let's say you used Axios directly in your components. That means every component needs to (1) set up its own state to track the request status (like whether it&#x
158.
▲
by
exogen
8y ago
The article covers this, I recommend giving it a more careful read. Let's say you went this route. You've covered English and a handful of other languages (which have a special pluralization rule for 1 , then everything else). So
159.
▲
by
exogen
8y ago
As someone who used to write SPARQL queries for a living with some of the most established players in the Semantic Web game, the idea of SPARQL and GraphQL serving the same purpose is pure misconception (usually by folks who haven't ye
160.
▲
by
exogen
8y ago
I guess I see what you're saying that web components can seem be consumed as expected from a React app. I thought we were talking about not using React at all. But I would expect this still would not work as expected with props like
161.
▲
by
exogen
8y ago
I realize you can set properties, obviously. Those are not the same as using attributes, which is what React's props are more equivalent to. e.g. you can't do <my-button onClick={...some function here...} />. So using i
162.
▲
by
exogen
8y ago
That uses React to attach onClick, so obviously yes. I'm saying without React. You said: > The only difference between if this were a web component vs a React component is that the consumer would not capitalize the name. Instead of
163.
▲
by
exogen
8y ago
Not at all true. Where's your onClick? People want their buttons to actually do things, right? With Web Components you're back in the land of saving element references, querySelector, addEventListener, and string-only attributes.
164.
▲
by
exogen
8y ago
Unfortunately no, because `import` is special syntax that just happens to look like a function call. It's not actually a function/object/etc. in the global scope. Here's what Google's guide to `import` says about it
165.
▲
by
exogen
8y ago
The interesting part is that it's officially part of the ECMAScript spec and HTML standard, and this library is just polyfilling it temporarily until more browsers implement it – so eventually you can use the exact same syntax and func
166.
▲
by
exogen
8y ago
Because if you read the post, the author is clearly making this change on moral grounds, that are only incidentally political to folks who choose to reduce it to that (like you did). Specific immoral actions are named, not political ideolog
167.
▲
by
exogen
8y ago
My point was that ideologically and morally motivated software licenses are already well established in the software ecosystem. This is not new. Whenever someone posts a link about Emacs do you see people saying "it would be hilarious
168.
▲
by
exogen
8y ago
Counterpoint: is Stallman not an activist, one who many of the same people panning this license change would claim to support? > Members of the free software movement believe that all users of software should have the freedoms listed in
169.
▲
by
exogen
8y ago
GitHub absolutely does not require that. If GitHub required you to grant them nontransferrable ownership of code hosted there, that would be insane and nobody would use it. Thankfully it's much more reasonable. :) Here's what GitH
170.
▲
by
exogen
8y ago
sub·sid·i·ar·y /səbˈsidēˌerē/ a company controlled by a holding company.
171.
▲
by
exogen
8y ago
And? So what? OSI approved licenses are particular ends to particular means. They are not the only ends to the only means. Theo de Raadt's take isn't automatically morally righteous. Honestly, it just sounds like a nineteen year o
172.
▲
by
exogen
8y ago
I have a Foobot which is a consumer-friendly version, less like a professional instrument and more like a smart speaker. The neat thing is that it has an API, so I was able to build my own pretty dashboard showing PM, VOCs, and CO2 in my ap
173.
▲
by
exogen
8y ago
Just FYI, you can query GraphQL with cURL, too. It's just HTTP, it doesn't require any fancy special clients. `fetch` in the browser works fine for talking to GraphQL as well.
174.
▲
by
exogen
8y ago
But you didn't address the existing rationalization: explain to me why the minimum ages exist in the first place, and why that same rationalization shouldn't exist for older people in their more out-of-touch and declining years.
175.
▲
by
exogen
8y ago
If we're taking that route, the Constitution itself is already ageist: you need to be at least 25 to be a rep, 30 to be a senator, 35 to be president/VP. So it's already an established idea that age plays some role in fitness
176.
▲
by
exogen
8y ago
> I'm not sure how HOCs vs render props "leads people to make poor design decisions". This surprises me. A render prop doesn't force any particular component interface. You just get a function and do whatever you want
177.
▲
by
exogen
8y ago
> Those are style guide / app architecture concerns that are going to be specific to each team. Exactly, but it's Redux's fault that it actively adds like 5 new styleguide/app architecture concerns to worry about in y
178.
▲
by
exogen
8y ago
Not OP, but my day to day job is helping teams with their migration onto React (often for big sites you've used or have at least heard of). Here goes, although these probably aren't anything new to you: – As far as I understand, R
179.
▲
by
exogen
9y ago
I find this viewpoint ridiculous on the face of it. Consider outright propaganda that does not directly harass, libel, or slander another person or group. Propaganda on the order of "1984". Harmless? A giant news corp. convinces a
180.
▲
by
exogen
9y ago
I'd say it's more like comparing a horse to a car: Horses were never really "vehicles." We just misappropriated them that way, because they just happen to be big and move around and we can sit on them. Cars are purpose-m
More ›