Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jjcm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
781.
▲
by
jjcm
5y ago
For passing upwards I typically fire a custom event, with data in the detail field. For passing downwards, I have the parent delegate attribute changes on the children as much as possible. This limits you to only passing string values downw
782.
▲
by
jjcm
5y ago
I'm using a static html file for the full app. The client side selectively removes/adds html for each of the pages depending on the url. Upside to this approach is that static = fast. Downside is if I prerender then the routes don
783.
▲
by
jjcm
5y ago
Super easy to incorporate with React. Just use react to pass attributes, like so: class App extends React.Component { render() { return ( <my-component custom-attribute={value}></my-component>
784.
▲
by
jjcm
5y ago
I’ve been using webcomponents heavily in my latest project. Built out a full SPA using vanilla js. They are not without problems, but GitHub is using them perfectly. GitHub isn’t pushing them to do what they aren’t yet good at. They’re amaz
785.
▲
by
jjcm
5y ago
I’ve had mixed results. Page speed is excellent - I built out an SPA with ~60 or so components and my uncached first paint happens in about 400ms. Cached I get 250ms (this is on prod so it includes the server latency). SEO is more difficul
786.
▲
by
jjcm
6y ago
I’m one of the rare ones who had covid in Australia, but also spent time in the states during the pandemic so I’ve seen both sides, and experienced how a positive case is addressed here in Aus. Australians care far, far more. I saw more peo
787.
▲
by
jjcm
6y ago
I ran a weekly trivia challenge when I was in high school. I'd offer up an obscure question, and the first to answer it won a free pizza. The one question that remained unanswered at the end of the year was, "what happened on Sept
788.
▲
by
jjcm
6y ago
[Warning: Not Safe For Prod] Pug and Stylus for html / css preprocessors, especially if you're new to coding. I used to teach a lot of web dev classes to non web devs (mainly designers looking to upskill). One of the worst parts o
789.
▲
by
jjcm
6y ago
If you're a fan of the classic shells and cheddar, try stir frying some diced shishito peppers and adding them in next time. As I age I find straight mac and cheese a bit too heavy these days. The peppers compliment and add to the flav
790.
▲
by
jjcm
6y ago
I'm seeing it fine in both Safari and Safari Tech Preview for what it's worth. Versions 14.0.3 and 14.2 respectively.
791.
▲
by
jjcm
6y ago
An invert-rotate approach to a dark mode works great until you have any sort of layering (i.e. modals). This is where it really falls apart. Shadows become glows, and make it much harder to differentiate between layers. If you're going
792.
▲
by
jjcm
6y ago
I've been working on the dark mode implementation for Atlassian for the last year and a half, so this is right in my wheelhouse. This post is excellent advice for a small app, but if you have any production sized app or a larger team,
793.
▲
by
jjcm
6y ago
Does this use the native OS’s current default browser renderer? If so is windows using edge or chromium under the hood?
794.
▲
by
jjcm
6y ago
Including cable providers is fine. The issue is how this money is structured. It needs to be a loan where the debt is forgiven once you reach certain milestones. The issue with the money earlier was there wasn't any teeth when it came
795.
▲
by
jjcm
6y ago
Guess we should turn off mashup.fm and redirect to here ay?
796.
▲
by
jjcm
6y ago
> Why would you ever do this? There are still situations where you want a gif. Your approach works fine if you're writing your own code, but if I want to embed a looping animation on a Confluence page, it isn't a viable option
797.
▲
by
jjcm
6y ago
Not necessarily, as it's treated differently by the browser. Animated WebPs will autoplay without a `muted` or `autoplay` attribute. Under the hood they're no different than a webm video, with the exception of no support for audio
798.
▲
by
jjcm
6y ago
Meta comment: one thing I find particularly interesting here is the 4th point on their infographic - 23% of people don't feel safe getting around SF. What amazes me is how SF responds to the endemic issues that are slowly destroying th
799.
▲
by
jjcm
6y ago
Potentially, but under this law these are likely to also encounter the same issues that Facebook and Google are facing right now. Facebook and Google are only the first named companies affected by this, though the rules are far reaching. I
800.
▲
by
jjcm
6y ago
I live in Australia and while I'm excited to see less Facebook use, I see a lot of comments saying things like, "good, Facebook monetized an addiction model and this curbs that". While true, the proposed law that has pushed t
801.
▲
by
jjcm
6y ago
Largest impact, sure. But architecturally it was a relatively simple formula - compromise a widely used package and sleep on it until it was pervasive enough to be a valuable hack. I disagree with this being the most sophisticated though. U
802.
▲
by
jjcm
6y ago
Reddit is a top ten site in the US, but is valued at a fraction of its competitors. The main worry I have for reddit moving forward is how do you monetize a userbase that is HIGHLY resistant to change. They're pushing heavily into thei
803.
▲
by
jjcm
6y ago
Very cool - would love to see this use :focus-visible[1] though for active effects rather than :focus. The background effect feels distracting when clicking the buttons. [1] https://developer.mozilla.org/en-US/docs/
804.
▲
by
jjcm
6y ago
On a daily basis I use Windows/OSX/Ubuntu interchangeably depending on what type of computer I'm on (desktop/laptop/server, respectively). Up until I set up a similar environment to the author, dev on Windows was al
805.
▲
by
jjcm
6y ago
Gaming. If you look at the author's posts on twitter, you'll see he's heavy into gaming / game dev. There simply aren't other platforms for this. OSX is atrocious with anything gaming related. Linux is getting there
806.
▲
by
jjcm
6y ago
As Closi mentions in the sibling comment, the customers are the ones paying the money. What you've described is exactly what I'm talking about - the UX is optimized for whoever is paying. Your example is a perfect showing of this.
807.
▲
by
jjcm
6y ago
I'd actually argue otherwise - UX has gotten tremendously better in the last decade. Online products have been moulded perfectly towards improving the use case for their customers. The main issue though is that you aren't the cust
808.
▲
by
jjcm
6y ago
As usual, thanks for your excellent moderation here on HN dang. You're going above and beyond with the timeline of past submissions.
809.
▲
by
jjcm
6y ago
Aside from the spirit / intent of this law, the way it is written is extremely poor / downright dangerous. Whether or not this law applies to your business online is not based on a set of metrics/rules/requirements, it&#
810.
▲
by
jjcm
6y ago
Potentially, but realistically not unless the engine has reached a critical mass. Per the draft code[0] whether or not it applies to your company is up to the Treasurer[1] - see relevant section: https://i.imgur.com/7RSqXDJ.
More ›