Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exogen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
exogen
9y ago
Not exactly the entire story. Browsers don't care about the extension, true, but they still need to know whether to parse the script as a module or not, by using: <script type="module">
182.
▲
by
exogen
9y ago
I have no idea why you keep bringing up <table>. It is totally unlike CSS Grid and completely unrelated in every way. CSS Grid is for layout, not tabular data. It allows you to move the presentation of your elements around at differen
183.
▲
by
exogen
9y ago
CSS Grid does the opposite of what you claim – it fixes the mixing of concepts that previously tied HTML elements to their layout, not make it worse.
184.
▲
by
exogen
9y ago
What are you even talking about? It's a semver-MAJOR release. Nobody is going to accidentally upgrade to 4 and have everything break, unless they are very confused and cavalier with bumping their dependencies. So people relying on old
185.
▲
by
exogen
9y ago
It would be odd to me to describe webpack as "shaping up against" Brunch. Brunch is basically niche by comparison – by # of installs, webpack is roughly 172X more popular. webpack not only has more features, but I wouldn't ex
186.
▲
by
exogen
9y ago
Some previous discussion on the GitHub release, which HN incorrectly flagged as a dupe: https://news.ycombinator.com/item?id=16456855
187.
▲
by
exogen
9y ago
Here's one datapoint, from building the single JS entrypoint for this simple demo site: https://exogen.github.io/layup/ First build: Parcel: 23.9s, 422K output size webpack 4: 9.6s, 399K output size
188.
▲
by
exogen
9y ago
I didn't mean webpack specifically, rather that module bundlers themselves are a worthwhile pursuit.
189.
▲
by
exogen
9y ago
It's not a global setting, but rather something individual module authors can enable in their `package.json` – or, if you're working with a module that hasn't specified it, you can tell webpack to treat that module different
190.
▲
by
exogen
9y ago
Naw, it has to do with tree-shaking imports. webpack might have a different option for what you describe – if not, most linters certainly do. `sideEffects` explicitly tells webpack whether it's safe to remove unused exports from a modu
191.
▲
by
exogen
9y ago
webpack team, great work on this! The new `sideEffects` option is the big one we've been waiting for – lots of bundles are going to be much smaller. People like to gripe about webpack and JS bundlers in general. At my last company, bef
192.
▲
by
exogen
9y ago
The biggest win I've noticed from CSS Grid so far has been from `grid-template-areas`. (The `grid-column` and `grid-row` syntax used in the article is kind of an alternate way to spell this, but I prefer using the `area` properties.) E
193.
▲
by
exogen
9y ago
I always found myself interested in learning more about design patterns, thinking they'd help me solve problems smarter/faster. But it never seemed to work out – I usually just ended up preferring to write things several different
194.
▲
by
exogen
9y ago
"anything that gets banned must be righteous" (you know, like scamming people)
195.
▲
by
exogen
9y ago
Doesn't get more "public transport" than using a public sidewalk via free manual transport. ;) (The fact that you can feasibly walk to work is an even bigger benefit.)
196.
▲
by
exogen
9y ago
The most immediate benefit is never having to think about and munge class names. Your Button.scss would typically look like: .Button { ... } .Button--primary { ... } .Button--small { ... } .Button--alt { ... } And then
197.
▲
by
exogen
9y ago
When this was released I even made a YouTube mashup to that effect :) http://vmashup.com/lNMOknGm
198.
▲
by
exogen
9y ago
One improvement might be to use a pronunciation dictionary and map the emojis to actual sounds rather than characters. Having recently needed such a thing, I found that there are two widely available datasets: CMUdict and Moby Pronunciator:
199.
▲
by
exogen
9y ago
You are now being completely dishonest. First article: > Priebus did not cite any evidence to back up his apparent bombshell. > The White House said in a statement to the Daily News that Priebus "was addressing hacking generally,
200.
▲
by
exogen
9y ago
I don't know what you think I said, but yes, sure, investigate all of them, that sounds great? What is your point exactly? Nobody ever said Russia is unique in this regard. That doesn't make it a waste of time to investigate the e
201.
▲
by
exogen
9y ago
No, every kid and mom and pop store is not creating a network of false identities to sway public opinion and incite violence. Your hot take that kids trying to get Likes is the same thing, so we shouldn't care or do anything about it,
202.
▲
by
exogen
9y ago
Yes, I was talking about GraphQL.
203.
▲
by
exogen
9y ago
I love GraphQL and use it quite a bit, but the "graph" part of it is a bit of a misnomer given all the existing graph database and query technologies. It doesn't really offer anything in terms of interacting with RDF triples
204.
▲
by
exogen
9y ago
That doesn't sound like a very big deal. Average people are suffering actual material harm at the hands of predatory companies and you're worried about startup founders?! "The poor startup founders, they have slightly less of
205.
▲
by
exogen
9y ago
Yes, that all sounds fine. Protect average people, not startups trying to get rich. Yes. Yes. Yes. Life does not revolve around startups. Yes. Also, the people applying for home loans weren't compulsive gamblers. The banks literally to
206.
▲
by
exogen
9y ago
Who's losing their life savings or ending up in financial ruin in this scenario? Also I've never even heard of a "predatory investor", I'm pretty sure you just made that up.
207.
▲
by
exogen
9y ago
Predatory companies love people like you. Now people have lost their homes and grandparents are being swindled out of their retirements – good thing the government allowed companies to do whatever they want! Corporations are awesome! It was
208.
▲
by
exogen
9y ago
The meat of the project is a crowdsourced database of examples for each program. So naturally there can be multiple clients for that database implemented in various ways. That doesn't seem too complicated. You choose and install one of
209.
▲
by
exogen
9y ago
Many authors are strangely against it for some reason. One time I sorted my node_modules by size and opened issues for the top offenders, you can see their resistance here: https://github.com/crypto-browserify/sha.js&#x
210.
▲
by
exogen
9y ago
That’s an interesting approach to it (modifying how the package.json is processed). If anyone is wondering if their current package manager supports this, it does if you are using Yarn. Yarn has a `resolutions` field to override subdeps (ei
More ›